Simple API for running external processes.
Project description
This is a convenience wrapper around the subprocess module.
Usage
Run a command, get the response:
>>> r = subp.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 = subp.run('uptime | pbcopy') >>> r.command 'pbcopy' >>> r.status_code 0 >>> r.history [<Response 'uptime'>] Forked from: https://github.com/kennethreitz/envoy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
subp-0.1.1.tar.gz
(4.1 kB
view details)
File details
Details for the file subp-0.1.1.tar.gz
.
File metadata
- Download URL: subp-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40252f71be6dccafce52303dc538502ef7cbd35701ef706c62be1bf2acb7a54e |
|
MD5 | af7416aced0f05faf2d9212308a459a3 |
|
BLAKE2b-256 | c78e96f6bc8f4fcf96ecf13ddc9dd516ec8ed2471af953545c0626f155231931 |