LeanMQ
🔥 Just getting started – show your support!
If you find LeanMQ interesting, consider giving it a ⭐ star on GitHub!
It helps others discover it and motivates ongoing improvements.
LeanMQ is a lightweight, message queue library with minimal dependencies for internal or async microservice communication. It provides a simple but powerful implementation using Redis Streams with support for —
- Dead Letter Queues: Automatic handling of failed messages
- Message TTL: Set expiration times for messages
- Atomic Transactions: Send multiple messages in a single transaction
- Consumer Groups: Support for multiple consumers
- Message Tracking: Track delivery attempts and failures
Read the docs
Installation
pip install leanmq
Quick Start
# Set up a webhook server
from leanmq import LeanMQWebhook
webhook = LeanMQWebhook()
# Register a handler
@webhook.get("/order/status/")
def process_order_status(data):
print(f"Order {data['order_id']} status: {data['status']}")
# Start processing webhooks in a background thread
service = webhook.run_service()
# In another service, send a webhook
webhook.send("/order/status/", {
"order_id": "ORD-12345",
"status": "shipped"
})
Find rest of the docs here.
License
Apache 2.0 - see LICENSE.md for details.
Copyright
Copyright (c) 2025 Augustus D'Souza
Metadata
Release files for leanmq 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| leanmq-0.2.0.tar.gz | 17.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| leanmq-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.5 kB
Release files / leanmq-0.2.0.tar.gz
| Download URL | leanmq-0.2.0.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22c5c7086b6c97de81d1c29fe1bc0a1497d01ecee7dd9fc00dadc1b0e1436613
|
|
BLAKE2b-256 checksum How to use checksums |
ded2152d9e95dfaa21fd853d39831a31210ab150b16d1f3e6af08c1020841f9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 17, 2025.
Transparency logRelease files / leanmq-0.2.0-py3-none-any.whl
| Download URL | leanmq-0.2.0-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a050c64faed1b87417138ac9ae3eb83b106e76185705a4e74aecc111446b14f
|
|
BLAKE2b-256 checksum How to use checksums |
be3bd073c471604bdd1cef9395c3c1dc90c365ef21429fe75b03c4a4eaa166e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 17, 2025.
Transparency log