Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/not-kennethreitz/envoy
Python Subprocesses for Humans™.
https://github.com/not-kennethreitz/envoy
Last synced: about 2 months ago
JSON representation
Python Subprocesses for Humans™.
- Host: GitHub
- URL: https://github.com/not-kennethreitz/envoy
- Owner: not-kennethreitz
- License: mit
- Archived: true
- Created: 2011-08-27T17:29:37.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2017-01-15T17:21:58.000Z (almost 8 years ago)
- Last Synced: 2024-04-14T12:12:34.311Z (7 months ago)
- Language: Python
- Homepage: https://pypi.python.org/pypi/envoy
- Size: 105 KB
- Stars: 2,271
- Watchers: 91
- Forks: 256
- Open Issues: 14
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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.
.. image:: 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
[]