charmonium.async_subprocess
See the documentation of the main function:
async def run(
args: Sequence[StrBytes],
cwd: Optional[Path] = None,
env: Optional[Union[Mapping[StrBytes, StrBytes]]] = None,
env_override: Optional[Mapping[StrBytes, StrBytes]] = None,
capture_output: bool = False,
check: bool = False,
text: Optional[bool] = None,
) -> subprocess.CompletedProcess:
"""An async clone of `subprocess.run`.
Suppose you have Python script that orchestrates shell commands,
but it's too slow, and you've identified commands which can run in
parallel. You could use `threading`, but that has GIL problems, or
`multiprocess`, which has a high startup-cost per worker. You are
already spinning off subprocesses, which the OS will run
concurrently, so why not use async/await programming to express
concurrency in a single thread?
Note this function does not permit you to communicate
asynchronously, just to run commands asynchronously.
This function supports a subset of the signature of
`subprocess.run`, that I will expand based on need. If you need
some functionality, submit an issue or PR.
"""
Metadata
Release files for charmonium.async-subprocess 0.1.7
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 |
|---|---|---|---|---|
| charmonium.async_subprocess-0.1.7.tar.gz | 3.2 kB | Without provenance | Details for charmonium.async_subprocess-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| charmonium.async_subprocess-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for charmonium.async_subprocess-0.1.7-py3-none-any.whl |
Total release size: 6.8 kB
Release files / charmonium.async_subprocess-0.1.7.tar.gz
| Download URL | charmonium.async_subprocess-0.1.7.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a5c86cebe5f7b74237925b9ed0092079fe8c0abee90b4cb8331771e16ae7064
|
|
BLAKE2b-256 checksum How to use checksums |
9d59071c6aa5f44b4f8adc1e75dd61db41bcc8c31ffadf9ed8f39e873f9113e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.9.6 Linux/5.11.0-40-generic
|
Release files / charmonium.async_subprocess-0.1.7-py3-none-any.whl
| Download URL | charmonium.async_subprocess-0.1.7-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8818ce120d3e116e46fd98f1c0d124f36d9c495df9d61307753248ebc2443f48
|
|
BLAKE2b-256 checksum How to use checksums |
f7b39feb5b2cd8bf7cc460d091b225091aea02bb302f95767f2e2417abd549bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.9.6 Linux/5.11.0-40-generic
|
Security for charmonium.async-subprocess 0.1.7
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.