from subprocess import run
The subprocess extension to run processes.
>>> from subprocess import run
>>> run('uname -r').stdout
3.7.0-7-generic
>>> run('uname -a').status
0
>>> print run('rm not_existing_directory').stderr
rm: cannot remove `not_existing_directory': No such file or directory
>>> print run('ls -la', 'wc -l')
14
To use pipe from the shell.
from subprocess import run
run('grep something', data=run.stdin)
$ ps aux | python script.py
Install
You can install it from PyPi, by simply pip:
$ pip install subprocess.run
to test it, launch python
>>> from subprocess import run
Supported platforms
Python2.6
Python2.7
Python3.3
PyPy2.1
Tests
>>> python setup.py test
Metadata
Release files for subprocess.run 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| subprocess.run-0.0.8.tar.gz | 4.1 kB | Without provenance | Details for subprocess.run-0.0.8.tar.gz |
Release files / subprocess.run-0.0.8.tar.gz
| Download URL | subprocess.run-0.0.8.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5760270139acc4cc4058184e539f5b613dbe0073d84ee43247c2e0fc5c04db4e
|
|
BLAKE2b-256 checksum How to use checksums |
16fcfe70ed1cc117b8351ca40fad918ebb7230e85039d9cd449eebdfc2ebaa81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for subprocess.run 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.