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.8
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
File details
Details for the file muffin-donald-0.10.0.tar.gz
.
File metadata
- Download URL: muffin-donald-0.10.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0453f9cd86786e90cee7d9eac75b85a5d2e59f01071fe79570c31f1701dd320 |
|
MD5 | 7464d57e0d2f4e14ec3ebc7e2a7e038c |
|
BLAKE2b-256 | 930d6bd0a8b75f9e526872bf2f705808ccd8636585b077100bf286240ebd1691 |
File details
Details for the file muffin_donald-0.10.0-py3-none-any.whl
.
File metadata
- Download URL: muffin_donald-0.10.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5f3d677ca273d163dbb1f3c9c4256db5b5036b92402b7a664f8ee886b91c69b |
|
MD5 | 9e222da7ab299fe72b79b51e34735ba6 |
|
BLAKE2b-256 | f4ba4c5b2a6a487a0c43576b4c22996721711b7c820efeb7a60c9a7f2e3f75c5 |