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.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

easy_mq-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easy_mq-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for easy_mq-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7dfdfa6845d4881565ee813c8369818920cebee08054a2727eaf083102690766
MD5 fde1319bccf636e749c9080c2cf37dcf
BLAKE2b-256 05ccf48b09b02e39579f82e58d962c1e073fcbe78041940b8d33d15208735db6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: easy_mq-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for easy_mq-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eee5ea0a61c91e4cb90b0d689428ce62322319d0688de2a8acbf2d377055181f
MD5 bcecdd1af70c6a2914644fb7b9d2c3e1
BLAKE2b-256 65d6b72e5503e2ca478d3fb2a5b909116869cbf5f7f84e71192223c6baa09ae9

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