The sarge package provides a wrapper for subprocess which provides command pipeline functionality.
This package leverages subprocess to provide easy-to-use cross-platform command pipelines with a Posix flavour: you can have chains of commands using ;, &, pipes using | and |&, and redirection.
The sarge package requires Python 2.6 or greater, and can be installed with the standard Python installation procedure:
python setup.py install
There is a set of unit tests which you can invoke with:
python setup.py test
before running the installation.
The latest version of sarge can be found here:
https://bitbucket.org/vinay.sajip/sarge/
The latest documentation (kept updated between releases) is here:
http://sarge.readthedocs.org/
Please report any problems or suggestions for improvement either via the mailing list or the issue tracker.