It's a plugin for Muffin framework which provides support for external APIs
Project description
Muffin-Donald – Its a plugin for Muffin framework which provides support for asyncronous tasks
Requirements
python >= 3.9
Installation
Muffin-Donald should be installed using pip:
pip install muffin-donald
Usage
Initialize and setup the plugin:
import muffin
import muffin_donald
# Create Muffin Application
app = muffin.Application('example')
# Initialize the plugin
# As alternative: tasks = muffin_donald.Plugin(app, **options)
tasks = muffin_donald.Plugin()
donald.setup(app)
And etc
Options
Name |
Default value |
Desctiption |
log_level |
INFO |
Logger Level |
log_config |
None |
Logger config |
backend |
'memory' |
Backend name (memory, redis, amqp) |
backend_params |
{} |
Backend params |
worker_params |
{} |
Worker params |
worker_lifespan |
False |
Fun the application lifespan events with worker |
start_worker |
False |
Auto start a worker in the current process |
start_scheduler |
False |
Auto start a scheduler in the current process |
You are able to provide the options when you are initiliazing the plugin:
donald.setup(app, start_worker=True)
Or setup it inside Muffin.Application config using the TASKS_ prefix:
TASKS_START_WORKER = True
Muffin.Application configuration options are case insensitive
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/muffin-donald/issues
Contributing
Development of Muffin-Donald happens at: https://github.com/klen/muffin-donald
Contributors
klen (Kirill Klenov)
License
Licensed under a MIT 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
Hashes for muffin_donald-0.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c5826a483e27105f261bed2553aecbe823a76e6ea8c1ac0685285984ec31250 |
|
MD5 | eb386b6dd5d14614a393d545fcf651c5 |
|
BLAKE2b-256 | ab0f435868d09870bac14d455b9580253fd696341579eab8224654077e28f4aa |