A Python package that provides a simple and intuitive interface for spawning, managing, and interacting with processes
Project description
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_process-1.0.15.tar.gz.
File metadata
- Download URL: python_process-1.0.15.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e49e4c0a3e72e1334e6308223ae7c84af11aef57de8cc55bd03ff00f618b417
|
|
| MD5 |
a8c7773a03055862a7ee4f7cd929d0ac
|
|
| BLAKE2b-256 |
3a4a180ad5f5339551aff64573ee537e9e5eaf3358b557189aa26efb5e5ed8b1
|
File details
Details for the file python_process-1.0.15-py3-none-any.whl.
File metadata
- Download URL: python_process-1.0.15-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
411d05e3d0684f48a8be2675a2ceb5eaf3348ecf39e783684de4519e37801068
|
|
| MD5 |
93564b20bec5df34b605f3f2ed3bad88
|
|
| BLAKE2b-256 |
5930f3e2627e996d8310cbf38d8e9e5c167e4ba339f5abe16c6c6d5a7960d9a8
|