Asynchronous subprocess runner
Project description
daak
In the Tausug language, daak means to command or order. daak is a small pure python library that can execute a subprocess and grab the stdout and stderr asynchronously.
It has limited support for handling input, mostly for when a sudo password is expected.
Installation
Through pip
pip install daak
Usage
The main class to use is called Run
import asyncio
from daak.process import Run
def which(prog: str):
return Run("which", args=[prog]).run(throw=False)
async def main():
_, process = await which("poetry")
print(process.returncode)
if __name__ == "__main__":
with asyncio.Runner() as runner:
runner.run(main())
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file daak-0.1.2.tar.gz.
File metadata
- Download URL: daak-0.1.2.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fab11ab64c07ef5d60cff0a4c65219e56ff18039a4ce76a00cad9cc8cba393e
|
|
| MD5 |
18ebbff2bd2a94055d543943f0ba4ff5
|
|
| BLAKE2b-256 |
49c8b92d62b23c64382613b36063d8106781a8b7c1547d78a9a3185041628fd7
|
File details
Details for the file daak-0.1.2-py3-none-any.whl.
File metadata
- Download URL: daak-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3153235961e820a9aecc523874e5f008b8330b0ac8cbfa7ab2d1a1008ce533ac
|
|
| MD5 |
40ab14b10a1adc3706c1e8c357742670
|
|
| BLAKE2b-256 |
642e8d077f6ee446870ba3ea3fd0a9d9a5abf56c81c395f6abcf4339b7cec5c4
|