Donald – A simple task engine for Asyncio.
The main goal for Donald to run async/sync code without blocking main loop.
Donald supports synchronous and asynchronous paradigms. The package is running coroutines and functions in multi loops. Donald could run periodic tasks and listen AMQP queues.
Requirements
python 3.3+
Installation
Donald should be installed using pip:
pip install donald
Usage
From shell:
$ donald --help
From synchronous python code:
donald = Donald() donald.start() donald.submit(<coro or function>) donald.schedule(<seconds>, <coro or function>)
From asynchronous python code:
donald = Donald() await donald.start() result = await donald.submit(<coro or function>) await donald.schedule(<seconds>, <coro or function>)
Listen AMQP
AMQP:
donald = Donald() await donald.start() # Send task to queue await donald.queue.start(False) await donald.queue.submit(<coro or func>, *args, **kwargs) # Listen tasks await donald.queue.listen() await donald.listen(<AMQP URL>)
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/donald/issues
Contributing
Development of starter happens at github: https://github.com/klen/donald
Contributors
klen (Kirill Klenov)
License
Licensed under a BSD license.
Release files for donald 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Donald-0.0.9.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Donald-0.0.9-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / Donald-0.0.9.tar.gz
| Download URL | Donald-0.0.9.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51d8bb309f762ae31fce6c52672dff7a5a85ca4368d5a33a0992cb43ea3790de
|
|
BLAKE2b-256 checksum How to use checksums |
3a77e1d7a9bc94ce79fd663b7fecbcabd1794e9d91ad6f5a5ce0f60f7af02431
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Donald-0.0.9-py2.py3-none-any.whl
| Download URL | Donald-0.0.9-py2.py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e4f09176d1991b2d24a15a45a1c75a464195969d1d33967740bbdde599e009e6
|
|
BLAKE2b-256 checksum How to use checksums |
4e326a88cc453dd33e01c3fe19838b665f7e359ca8fdcd6068a5b74646edf157
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |