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.1.tar.gz
(2.5 kB
view details)
File details
Details for the file envoy-0.0.1.tar.gz
.
File metadata
- Download URL: envoy-0.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2f948955256988022d2ea93aa77d79051643d0a655f7dc98f390a2d6e16a345 |
|
MD5 | 24e33c85af89b813da878f74ec9a7e31 |
|
BLAKE2b-256 | 3617dfece4bec541239af8141f84bf59bb7580fc5985c80348a552651a4b4b7a |