bunnymq-0.0.9
توضیحات
Simple messaging with RabbitMQ and Python.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bunnymq-0.0.9 |
| نام | bunnymq |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | havefish |
| ایمیل نویسنده | havefish@protonmail.com |
| آدرس صفحه اصلی | https://github.com/havefish/bunnymq |
| آدرس اینترنتی | https://pypi.org/project/bunnymq/ |
| مجوز | - |
# BunnyMQ
[](https://travis-ci.com/havefish/bunnymq)
[](https://pypi.python.org/pypi/bunnymq/)
[](https://pypi.python.org/pypi/bunnymq/)
Simple messaging with RabbitMQ and Python.
Head over to the [tutorial](http://havefish.github.io/bunnymq/) to get started.
This is a small library inspired by the Python standard library [queue](https://docs.python.org/3/library/queue.html) module and the [hotqueue](https://github.com/richardhenry/hotqueue) library. Primarily geared towards programmer happiness :slightly_smiling_face:
Basic Usage:
```python
>>> 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:
```python
>>> for item in queue:
... print(item)
... queue.task_done()
```
## Features
* Simple usage
* Automatic serialization and deserialization of Python objects
* Adding custom serializers or turning serialization off is trivial
* 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](https://www.rabbitmq.com/)
* [Pika](https://pika.readthedocs.io/en/stable/)
نیازمندی
| مقدار | نام |
|---|---|
| - | pika |
نحوه نصب
نصب پکیج whl bunnymq-0.0.9:
pip install bunnymq-0.0.9.whl
نصب پکیج tar.gz bunnymq-0.0.9:
pip install bunnymq-0.0.9.tar.gz