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.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


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

Uploaded Source

Built Distribution

muffin_donald-0.12.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file muffin_donald-0.12.0.tar.gz.

File metadata

  • Download URL: muffin_donald-0.12.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for muffin_donald-0.12.0.tar.gz
Algorithm Hash digest
SHA256 32c6366ec022ad514d1bcf30c2cb6bc3cebf3676c82ada7c37c2c0d71accbc1f
MD5 d10e1063d39c82818a9506fac6124808
BLAKE2b-256 d8bb46f131a259a9b793ec38fce1680de7787a899a444d6483c7869e2f91227d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: muffin_donald-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for muffin_donald-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02364a9f4656b907130c39deb2b1c4faaff78196d1ec516395684c637fe371da
MD5 ed6dab741cb75b832bc1783cf8c9ad88
BLAKE2b-256 a9488396e178da5ab51a8107a5ee117e786e4253be9096f2d0df639ec05d22b6

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