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
from easy_mq.queue import Queue
Queue.connect('url')
q = Queue('queue_name')
q.put('message')
for message in q.revivaid():
print(message)
Async
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
source scripts/test.sh
Release files for easy-mq 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| easy_mq-0.1.2.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easy_mq-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / easy_mq-0.1.2.tar.gz
| Download URL | easy_mq-0.1.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7dfdfa6845d4881565ee813c8369818920cebee08054a2727eaf083102690766
|
|
BLAKE2b-256 checksum How to use checksums |
05ccf48b09b02e39579f82e58d962c1e073fcbe78041940b8d33d15208735db6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
|
Release files / easy_mq-0.1.2-py3-none-any.whl
| Download URL | easy_mq-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eee5ea0a61c91e4cb90b0d689428ce62322319d0688de2a8acbf2d377055181f
|
|
BLAKE2b-256 checksum How to use checksums |
65d6b72e5503e2ca478d3fb2a5b909116869cbf5f7f84e71192223c6baa09ae9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
|