easy-mq-0.1.2
توضیحات
Library for using RabbitMQ with python (async/sync).
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | easy-mq-0.1.2 |
| نام | easy-mq |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Halvor Bø |
| ایمیل نویسنده | halvor@recrut.no |
| آدرس صفحه اصلی | https://github.com/recrut-as/easy_mq |
| آدرس اینترنتی | https://pypi.org/project/easy-mq/ |
| مجوز | - |
# EasyMQ
*Library for using RabbitMQ with python.*
This library was made to create a unified interface for async and sync message queues in Python. This project was made to manage queues between an async server and a sync server.
To be implemented:
- Message class
- More advanced features (these will be implemented as needed)
### Sync
```python
from easy_mq.queue import Queue
Queue.connect('url')
q = Queue('queue_name')
q.put('message')
for message in q.revivaid():
print(message)
```
### Async
```python
from easy_mq.queue import AsyncQueue
AsyncQueue.connect('url')
async def main():
q = AsyncQueue('queue_name')
q.put('message')
async for message in q.revivaid():
print(message)
import asyncio
asyncio.run(main())
```
### To run tests
```bash
source scripts/test.sh
```
نیازمندی
| مقدار | نام |
|---|---|
| - | pika |
| - | aio-pika |
نحوه نصب
نصب پکیج whl easy-mq-0.1.2:
pip install easy-mq-0.1.2.whl
نصب پکیج tar.gz easy-mq-0.1.2:
pip install easy-mq-0.1.2.tar.gz