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)
Built Distribution
Close
Hashes for python_bunny_mq-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f2c9dab03617e1d019572d5a2a7243cc4fa185929cc9da8ac957c83d10ce6b3 |
|
MD5 | f5ffa656428682f440ea41b2b2c4f59f |
|
BLAKE2b-256 | 138bef23f36b7003cbaeb791a7d78a41878990d3133f7a0d141f6f271d655c53 |