Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

Latest commit

 

History

History
39 lines (25 loc) · 760 Bytes

README.rst

File metadata and controls

39 lines (25 loc) · 760 Bytes

Envoy: Python Subprocesses for Humans.

Note: Delegator is a replacement for Envoy.

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'>]