Skip to content

vgavro/asyncio-subprocess-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages