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

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

Uploaded Source

Built Distribution

muffin_donald-0.8.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for muffin-donald-0.8.2.tar.gz
Algorithm Hash digest
SHA256 f43890b30e5dd5a74004dce462055dd1353de67d0a0ccef5594f97c01e1ed4db
MD5 7976accb2faa06dd8166c7f4df7ec091
BLAKE2b-256 70eac9374fc65656d2ca351114f9915be0d12231d5f33505cbf62173605640f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for muffin_donald-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd26a91c5e433bdb53e0dcd58c5336023b78fb69ca98d6a083e4e9f5b6e3e5d1
MD5 432bad7389b6e273049da846bba3b6fb
BLAKE2b-256 a22ade674be27af1d9b987b695951a68c58bb80c4d5c13b391902dd215591960

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