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
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
Close
Hashes for asyncio-subprocess-run-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfb6d5be90a6c34f8177211dad4ae4b24dcb9d3ed499c5aefe7d1a9ac39436f9 |
|
MD5 | 752f6e9daa4fcfb97979a53ae5e9863b |
|
BLAKE2b-256 | 871cf87f7ddd1cdd2295133510fbae8201e20cd613f516fa723b20c52b4ff1e4 |
Close
Hashes for asyncio_subprocess_run-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49f7739a10b0b9808e2045ccbbdf2fcbc1d178e31ebdf1b506c897d969c8bf65 |
|
MD5 | 590ad623d8c5d3e5d6071dd36c1f6017 |
|
BLAKE2b-256 | bb3b690f875fcf73a9c6ab854d9fd3300f54284c370b70c80be85a18d5963484 |