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.4.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for python_bunny_mq-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e041776ae701c078df7f2f224dbbaaf74e8ba517e25815e35d918bb559984807 |
|
MD5 | 57b3506b3ae058862a5e775a625ffb18 |
|
BLAKE2b-256 | 320be64aa03167973202a02554a7af8f6f8d645403dd5711820699762b73b6d6 |