Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python Subprocesses for Humans™.
Python
branch: master

This branch is 1 commit ahead, 14 commits behind kennethreitz:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
envoy
ext
.gitignore
.travis.yml
AUTHORS
MANIFEST.in
README.rst
setup.py
test_envoy.py

README.rst

Envoy: Python Subprocesses for Humans.

Note: Work in progress.

This is a convenience wrapper around the subprocess module.

You don't need this.

https://github.com/kennethreitz/envoy/raw/master/ext/in_action.png

But you want it.

Usage

Run a command, get the response:

>>> r = envoy.run('git config', data='data to pipe in', timeout=2)

>>> r.status_code
129
>>> r.std_out
'usage: git config [options]'
>>> r.std_err
''

Pipe stuff around too:

>>> r = envoy.run('uptime | pbcopy')

>>> r.command
'pbcopy'
>>> r.status_code
0

>>> r.history
[<Response 'uptime'>]
Something went wrong with that request. Please try again.