SHCMD
Note: Work in Progress.
This lib aims to provide a Human friendly interface for subprocess.
If you need piped subprocesses, give envoy a try.
Usage
import shcmd
with shcmd.cd("/tmp"):
# get result directly
assert shcmd.run("pwd") == "/tmp"
# get streamed result packed in a generator
streamed = shcmd.run("ls", stream=True)
for filename in streamed.iter_lines():
print(filename)
# get full stdout/stderr
print(streamed.stdout)
print(streamed.stderr)
Metadata
Release files for shcmd 0.5.4
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 | |
|---|---|---|---|---|
| shcmd-0.5.4.tar.gz | 10.6 kB | Without provenance | Details |
Release files / shcmd-0.5.4.tar.gz
| Download URL | shcmd-0.5.4.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b8c1af5dbc9f9009517b1b1a0653ee2fbe5449b1de77bb599e5df704668ba5c
|
|
BLAKE2b-256 checksum How to use checksums |
dd0c0cfc1436037aa15e47da4ec38882984525100b2bc30e1ad6e0a04698442d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for shcmd 0.5.4
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.