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.2.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

Donald-0.2.1-py2.py3-none-any.whl (10.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for Donald-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d965df5dc7e79469aa5e2c700d6a7d8fa9deb91b488957e1f1cc167940c3b1b3
MD5 dfef592c69ab34c42b0b5268e7f1456d
BLAKE2b-256 0890d8f2f3f2a80932724c662d5abf3be295b45ee176a041c096d448c8a66598

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Donald-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cb0b327a6f67deb3872267726a8699003baeb523f27829e8e47b3575cf695f49
MD5 6d13b6413cd9a20631529d5d1157d666
BLAKE2b-256 a0078f5c303879160bafa13b52a049767ca493c4d5faf838a75e0b18418b03c5

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