Skip to main content

http://github.com/vgavro/asyncio-subprocess-run

Project description

asyncio-subprocess-run

This is asyncio drop-in replacement for subprocess.run, which is expected to be in asyncio.subprocess.run, but it isn't.

For documentation see https://docs.python.org/3/library/subprocess.html#subprocess.run

Install

pip3 install asyncio-subprocess-run

Usage

from asyncio_subprocess_run import run


async def get_uid():
    return int(
        (await run(['id', '-u'], check=True, text=True, capture_output=True))
        .stdout.strip())

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

asyncio-subprocess-run-0.0.2.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

asyncio_subprocess_run-0.0.2-py3-none-any.whl (3.2 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