winterstream / sh

Simple shell combinators to do UNIX shell-like things in Python.

This URL has Read+Write access

sh /
name age message
file LICENSE Loading commit data...
file README
file sh.py
README
sh is the start of a little shell combinator library for Python, which allows you
to write things like:
  ls() | grep('cow') | grep('dog')

The sneaky part is that shell commands are implemented as monads (since that's
pretty much what they are in UNIX shell scripting).

I am writing this library to make some things easier when writing setup.py
scripts, but I can well imagine that it will be useful for other things.