Skip to main content

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

Tests Status PYPI Version Python Versions

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

muffin-donald-0.10.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

muffin_donald-0.10.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file muffin-donald-0.10.1.tar.gz.

File metadata

  • Download URL: muffin-donald-0.10.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for muffin-donald-0.10.1.tar.gz
Algorithm Hash digest
SHA256 1343008f6a2797aa877aa5be216ded1da70198ca4ce1d3cf590dfc74d57aa15f
MD5 bdc832deca64d2f469027a46ea4b710d
BLAKE2b-256 1f684c2f4a73466b3c9d5d0eccfdc77b5af0c565e947725c4b65a48e531b6ec1

See more details on using hashes here.

File details

Details for the file muffin_donald-0.10.1-py3-none-any.whl.

File metadata

File hashes

Hashes for muffin_donald-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d87fc4b291f923dc92b77a2745af0b9a200240f032067527ba1a4d6fa540c52
MD5 2f313d3b430795d2bb280732cd1b3d8f
BLAKE2b-256 aed98d668c9ee46e8030cb2f916c8c553bfe8a3686176ad93ca2c961f626f5d1

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