Donald is here
Project description
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.
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 Donald-0.2.8.tar.gz
.
File metadata
- Download URL: Donald-0.2.8.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56cb5a3d95104a873ec000e739f45650a12d9758265ed99cec943a085d954166 |
|
MD5 | 02bcbfce522368a8510b2a001153778c |
|
BLAKE2b-256 | f1a898a23290603c343c112e0eb0c5159a31765d473803ab35ca12ce5e2470a2 |
File details
Details for the file Donald-0.2.8-py2.py3-none-any.whl
.
File metadata
- Download URL: Donald-0.2.8-py2.py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdb60efe12f9d6d53d95044c96514f858ff24b38d374aec20e73c5c86dc2b35e |
|
MD5 | 434cefdedea90a60243572af70f88ba3 |
|
BLAKE2b-256 | 991658bccebddbcacde9d21b57d6118abbead8be353b7d4166e7f9cbe9442dc3 |