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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

muffin_donald-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: muffin_donald-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for muffin_donald-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4ed54d9b32f4dd4ae87b82229ce7db6c2fff96e721d3fd92a22d48d254190b47
MD5 0a91a391f824f6de497d8ea5d6fe0329
BLAKE2b-256 ed25831d1b1f80130cff8512acf3d5dc665e6f9925d142495c8a07f3b4ad9b23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: muffin_donald-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for muffin_donald-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c93ba98a31aeb617511525925acf5f343bc5e83590af5c354f7ccc04c57ac615
MD5 702ddbeffd1881d09df814b3a9a9c5a1
BLAKE2b-256 26b92429fae3bcfff60ae42c9688fdf4e10cd348d628c5413f48c65ce108c2ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page