Skip to main content

A Python package that provides a simple and intuitive interface for spawning, managing, and interacting with processes

Project description

python-process

Build status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_process-1.0.15.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

python_process-1.0.15-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

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

Hashes for python_process-1.0.15.tar.gz
Algorithm Hash digest
SHA256 7e49e4c0a3e72e1334e6308223ae7c84af11aef57de8cc55bd03ff00f618b417
MD5 a8c7773a03055862a7ee4f7cd929d0ac
BLAKE2b-256 3a4a180ad5f5339551aff64573ee537e9e5eaf3358b557189aa26efb5e5ed8b1

See more details on using hashes here.

File details

Details for the file python_process-1.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for python_process-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 411d05e3d0684f48a8be2675a2ceb5eaf3348ecf39e783684de4519e37801068
MD5 93564b20bec5df34b605f3f2ed3bad88
BLAKE2b-256 5930f3e2627e996d8310cbf38d8e9e5c167e4ba339f5abe16c6c6d5a7960d9a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page