Skip to main content

Ultra-lightweight (no-dependency) message queue for intra-process pub-sub communication.

Project description

Python Bunny MQ

Python-based package that implements a no-dependency, ultra-lightweight intra-process message queue. This works inside a single process.

  • This is useful when you need a lightweight pub-sub system.
  • For example, the author is using it in development to send messages to local handlers.
    • These handlers are ultimately deployed to AWS and are invoked as a lambda function via SQS, so the dev-time "bunny-mq" will not be used.
    • In this case we use dependency injection to inject the correct MQ facade based on a FAST_API_ENV environment variable.
  • It is backed by python's multiproducer, multiconsumer queue.

 

 

 

 

 

 

 

 

 

 

 

 

 

Homepage

https://pypi.org/project/python-bunny-mq/

GitHub

https://github.com/tangledpath/python-bunny-mq

Documentation

https://tangledpath.github.io/python-bunny-mq

Installation

pip install python-bunny-mq

Getting started

Development

Linting

Linting is done via autopep8

script/lint.sh

Documentation

# Shows in browser
poetry run pdoc python_bunny_mq/
# Generates to ./docs
script/build.sh

Testing

  clear; pytest

Building and Publishing

Building

scriopt/build.sh

Publishing

Note: --build flag build before publishing

script/publish.sh
# poetry publish --build -u __token__ -p $PYPI_TOKEN

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

python_bunny_mq-0.1.5.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

python_bunny_mq-0.1.5-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

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