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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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