Skip to main content

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

Metadata

Release files for subp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for subp 0.1.1
File Size Uploaded
subp-0.1.1.tar.gz 4.1 kB Details

Release files / subp-0.1.1.tar.gz

Download URL subp-0.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
40252f71be6dccafce52303dc538502ef7cbd35701ef706c62be1bf2acb7a54e
BLAKE2b-256 checksum
How to use checksums
c78e96f6bc8f4fcf96ecf13ddc9dd516ec8ed2471af953545c0626f155231931
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page