Pieshell: Combination of the expressiveness of shell pipelines and the power of python iterators
Egil Möller
redhog.org at gmail.com
Sun Jan 10 13:59:33 EST 2021
Hi!
I've written a python package that lets you combine python code and shell pipelines:
Pieshell is a Python shell environment that combines the expressiveness of shell pipelines with the prower of python iterators.
It can be used in two major ways:
As an interactive shell replacing e.g. bash
As an ordinary python module replacing e.g. subprocess.Popen
>>> list(ls("-a") | grep("-e", ".py"))
["foo.py", "bar.py"]
Shell pipelines, like the one above, are ordinary Python iterator objects.
Git repo: https://github.com/redhog/pieshell
Installation: pip install pieshell
Start the interactive shell: pieshell
Hope you found this interesting,
RedHog
More information about the Python-list
mailing list