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

Uploaded Source

Built Distribution

Donald-0.1.0-py2.py3-none-any.whl (10.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for Donald-0.1.0.tar.gz
Algorithm Hash digest
SHA256 236de11b6edea68e1ec68a309433863dc33e8a397065d9f4451534d890a1a4f7
MD5 adc62a685aac1c91df10f85c32392671
BLAKE2b-256 8981f4272bb5d41eba9a933921111f458123bb69b38d8f797352b886f34dbf7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Donald-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 248ce321ad093b2eb3a7ee6cecdfff94ff1f70e1915ab88e2b3a273a10019afe
MD5 18b5c69e760a3a779d1808ee306266b6
BLAKE2b-256 b6b1cbb361a8bff6df5d25655a8e82cc2ba1f69d2033c0b23e97662ce3d2efa7

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