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

autostart

True

Auto start tasks workers

fake_mode

False

Run tasks immediately (testing)

num_workers

<CPU_COUNT> - 1

Number of workers

max_tasks_per_worker

100

Maximum concurent tasks per worker

filelock

None

File lock path

loglevel

INFO

Logger Level

queue_exchange

tasks

Tasks queue exchange

queue_name

tasks

Tasks queue name

queue_params

{}

Queue params

You are able to provide the options when you are initiliazing the plugin:

donald.setup(app, num_workers=2)

Or setup it inside Muffin.Application config using the DONALD_ prefix:

DONALD_ROOT_URL = 'https://api.github.com'

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

Uploaded Source

Built Distribution

muffin_donald-0.5.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: muffin-donald-0.5.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for muffin-donald-0.5.0.tar.gz
Algorithm Hash digest
SHA256 0a0ec9159b95c8ad1d693bb8cd7f6bf624c554236e4ce8ef71bd6163ac6e8194
MD5 c0c0b41e1a7d566b0879e6bf8da8c6d1
BLAKE2b-256 7ec89d408ae06408f59b3abd3ecf77b89e2fa746f90dbefd954ea40d81adb083

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for muffin_donald-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c77db7a3f197eea650c5504facd7ec66085e66ee03a041d8e45953f8c566ff42
MD5 40c747ca424b4a8f1728e8168cbbec05
BLAKE2b-256 270ec8e650bf359c58fc2c0d0f180bcc78d973a067dca99869fbf08a72de47a7

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