Skip to main content

Library for using RabbitMQ with python (async/sync).

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy_mq-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

easy_mq-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file easy_mq-0.1.0.tar.gz.

File metadata

  • Download URL: easy_mq-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for easy_mq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab199b86ec0d18bbd43b236c1d5061fc623ae5e8fa02e6a40e567a49f7708848
MD5 b5b2f72b1898e8b96bb69f1c56c85460
BLAKE2b-256 203fca4ceac8d6ddb66ddaac21b9c15265cf709e1b36f001c0a10d270ffbd97e

See more details on using hashes here.

File details

Details for the file easy_mq-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: easy_mq-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for easy_mq-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a451e2cd8dcac254f9b06c90b8ea8278fef39574d2717f17569689f07dbf38eb
MD5 15393177fe737e4c5c7962f0246ec847
BLAKE2b-256 dc9892b19ecea313d5c163cfbb9597eedda84de671a0d00efbd6a0a79dabfec5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page