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.6.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for python_bunny_mq-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9d3b1b87383befcc6e6761e77434768f2ba5a38a743f28ccf4da0569baaed2e |
|
MD5 | 23a9b38dc281b836cf9df2496e10e80c |
|
BLAKE2b-256 | a52a242fb338dd3a13317063408e96996bdb243312e1527a9de9d61c8a2e1d35 |