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
bunnymq-0.0.11.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for bunnymq-0.0.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e9750931c95a8f7502c2acb8aeb73b8752b077c61bbd85531a4a4d818da7ac0 |
|
MD5 | 109696f3dc126b43afd32317c01a6aec |
|
BLAKE2b-256 | c24dcfce31e99733ce862a611fe00a2157830e1da419b37eaf2e9e6533cfeb09 |