Simple API for running external processes.
Project description
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'>]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
envoy-0.0.3.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for envoy-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 789d274f8bc00401848678c0ee18199c1a57901749ed6b1a03a3ea53ec72ceef |
|
MD5 | d4ea7533bdea3edcde1b441ac34e1f50 |
|
BLAKE2b-256 | 3671b6ca37dd6bfe6ec851ee385e824fd4e459f2744caa2b8e7533555dcdeb8b |