Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Easily set up shell pipelines in Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
piper
.gitignore
README.md
__init__.py
setup.py

README.md

piper: Easily set up shell pipelines in Python

Example

from piper import CommandPipeline
commands = [["command1", "arg"],
            ["command2", "arg"],
            ["command3", "arg", "another arg"]]
p = CommandPipeline(commands)
for line in p.stdout:
    print "Read a line: %s" % line
p.close()
if p.failed():
    raise Exception("Pipeline failed")

Installation

piper is distributed as a standard Python package. You can download the tarball here: https://github.com/DarwinAwardWinner/piper/tarball/master

Simply install it using your normal Python package installer. Probably pip or easy_install or setup.py.

Something went wrong with that request. Please try again.