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
File details
Details for the file asyncio-subprocess-run-0.0.2.tar.gz
.
File metadata
- Download URL: asyncio-subprocess-run-0.0.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfb6d5be90a6c34f8177211dad4ae4b24dcb9d3ed499c5aefe7d1a9ac39436f9 |
|
MD5 | 752f6e9daa4fcfb97979a53ae5e9863b |
|
BLAKE2b-256 | 871cf87f7ddd1cdd2295133510fbae8201e20cd613f516fa723b20c52b4ff1e4 |
File details
Details for the file asyncio_subprocess_run-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: asyncio_subprocess_run-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49f7739a10b0b9808e2045ccbbdf2fcbc1d178e31ebdf1b506c897d969c8bf65 |
|
MD5 | 590ad623d8c5d3e5d6071dd36c1f6017 |
|
BLAKE2b-256 | bb3b690f875fcf73a9c6ab854d9fd3300f54284c370b70c80be85a18d5963484 |