3 ms·
The sh module is really excellent, and it lets you take the best parts of bash (the external commands, pipes) and ditch the bad parts (string handling, general
by lars512 8y ago
The sh module is really excellent, and it lets you take the best parts of bash (the external commands, pipes) and ditch the bad parts (string handling, general programming). I think it’s what you’re looking for.
https://amoffat.github.io/sh/ https://amoffat.github.io/sh/
- tarruda 8y agoI wrote https://github.com/tarruda/python-ush https://github.com/tarruda/python-ush for my own scripts. It was inspired by "sh", but my version supports native "lazy" pipelines (using python operator overloading) and other nice features not provided by sh. Also it works seamless between Unix/windows I was also planning to extend it to support python3 asyncio, but never got around it