Comment

Comment by j88439h84

A similar idea is Mario, for Python code in shell pipelines. Its most novel feature is (optional) async commands, so you can pipe in a list of urls, make many concurrent requests, and then process them in a single line.

    cat urls.txt | mario async-map 'await asks.get ! x.json()' apply len
https://github.com/python-mario/mario

Nushell also seems cool, it's somewhat similar to Powershell. https://github.com/nushell/nushell

parent j88439h84 6 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton