envoy 0.0.2
Simple API for running external processes.
Note: Work in progress.
This is a convenience wrapper around the subprocess module.
You don't need this.
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'>]
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| envoy-0.0.2.tar.gz (md5) | Source | 2011-10-15 | 3KB | 2475 | |
- Author: Kenneth Reitz
- Home Page: https://github.com/kennethreitz/envoy
- License: MIT
- Package Index Owner: kennethreitz
- DOAP record: envoy-0.0.2.xml
