Skip to main content

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.

Build Status Coverals Version Downloads

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

Donald-0.0.10.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

Donald-0.0.10-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Donald-0.0.10.tar.gz.

File metadata

  • Download URL: Donald-0.0.10.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Donald-0.0.10.tar.gz
Algorithm Hash digest
SHA256 aa01c0ebbc510c90727e643ff67380461b32779612ce13ab5bcf6697b24fdc46
MD5 06843c0a6b3c8b43bb31f3433e2b6a53
BLAKE2b-256 57e496428f196a6530a4006f34819d072e9e950ef08ee49ec55773e418ab2fc9

See more details on using hashes here.

File details

Details for the file Donald-0.0.10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Donald-0.0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0288e84cca78f91f631b94b743d44751b7eeca41ec1f08f9576f8ab6f5e302b0
MD5 7397b66ce1a0295a67cdbc68a1a43040
BLAKE2b-256 4d44cd36b8fb5e85b3177e1797e16c397fd923a0d032b50876f4742719e422c7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page