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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: muffin-donald-0.0.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for muffin-donald-0.0.4.tar.gz
Algorithm Hash digest
SHA256 807c8fa824378eec86d0c051af5afb6aa9aa516c2323b459b96efdf214f780e9
MD5 e1c9e2286a0d0b4dd51804d0eeab1d43
BLAKE2b-256 cef264b7e9e071ac00f053c6e88a77634585a51bec03f4defbee3891f5cbb424

See more details on using hashes here.

File details

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

File metadata

  • Download URL: muffin_donald-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for muffin_donald-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 868105acd0f0c80c1d169dbaf9d2bc583a0ffddd0e4971b75643907a99f1460b
MD5 3efa6b21c345bd1f88c42c0ec7b1d138
BLAKE2b-256 bb958c6095e32fde65c5c3e3b0014eeff4eed13a812e43e26a77214757edb7f5

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