Simple messaging with RabbitMQ and Python.
Project description
BunnyMQ
Simple messaging with RabbitMQ and Python.
Head over to the tutorial to get started.
This is a small library inspired by the Python standard library queue module and the hotqueue library. Primarily geared towards programmer happiness :slightly_smiling_face:
Basic Usage:
>>> queue = Queue('test')
>>> queue.put(1)
>>> queue.put('hello', priority=8)
>>> queue.put({'a': 1})
>>> queue.get()
'hello'
>>> queue.task_done()
>>> queue.get()
1
>>> queue.requeue()
Iterating over a queue indefinitely, waiting if nothing is available:
>>> for item in queue:
... print(item)
... queue.task_done()
Features
- Simple usage
- Automatic serialization and deserialization of Python objects
- Automatic retry while publishing
- Automatic handling of connection failures while consuming
- Easy parallelization by starting multiple workers to share the load.
Install
pip install bunnymq
Requirements
- Python 3.6+
- RabbitMQ server
- Pika
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bunnymq-0.0.12.tar.gz.
File metadata
- Download URL: bunnymq-0.0.12.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.23.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2771ac9b4a02b244b65d6844f7f1224c28f2ac0a4f12b04f795f87034be538e6
|
|
| MD5 |
0195fe048eaaa89da8a14399876f7d04
|
|
| BLAKE2b-256 |
27b0c287b3911300c3e3272bb38f94d727a2e7699017c6f7040982180b39157c
|
File details
Details for the file bunnymq-0.0.12-py2.py3-none-any.whl.
File metadata
- Download URL: bunnymq-0.0.12-py2.py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.23.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23225facc2bad64434bc3db11b586d62f3ca7e0daeadf92602e6b99e67b35deb
|
|
| MD5 |
ea7769e56420cde63f27e1e6620ed25a
|
|
| BLAKE2b-256 |
85c08ba249f0ab85aef2a1279af639266d4a965e2edaf84a2e3534dbb31478dd
|