python-process
A Python package that provides a simple and intuitive interface for spawning, managing, and interacting with processes.
Help
See documentation for more details
Install
To install python-process, simply use pip:
$ pip install python-process
Usage
You can find more examples in the documentation.
Synchronous API
from process import Process
def main() -> None:
with Process("echo 'Hello World!'") as process:
print(process.output()) # b'Hello World!\n'
if __name__ == "__main__":
main()
Asynchronous API
import asyncio
from process.asyncio import Process
async def main() -> None:
async with Process("echo 'Hello World!'") as process:
print(await process.output()) # b'Hello World!\n'
if __name__ == "__main__":
asyncio.run(main())
Metadata
Release files for python-process 1.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_process-1.0.15.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_process-1.0.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.9 kB
Release files / python_process-1.0.15.tar.gz
| Download URL | python_process-1.0.15.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e49e4c0a3e72e1334e6308223ae7c84af11aef57de8cc55bd03ff00f618b417
|
|
BLAKE2b-256 checksum How to use checksums |
3a4a180ad5f5339551aff64573ee537e9e5eaf3358b557189aa26efb5e5ed8b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / python_process-1.0.15-py3-none-any.whl
| Download URL | python_process-1.0.15-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
411d05e3d0684f48a8be2675a2ceb5eaf3348ecf39e783684de4519e37801068
|
|
BLAKE2b-256 checksum How to use checksums |
5930f3e2627e996d8310cbf38d8e9e5c167e4ba339f5abe16c6c6d5a7960d9a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|