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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: easy_mq-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e09947976cd647f8864c6d39e7c581c83f975b09f7b4697fdab06313fbd92558
MD5 61e834164d8f5550328b775e3e6689ed
BLAKE2b-256 158a81bbadf3d6f770c0632ead3c9c64ce68fdf83c02c58ca7bd22a2eb66c89c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: easy_mq-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7bf3dac9dee3178848a7d702119849ef117c5091f86fb67e3aae4d804eb249a
MD5 1ca0f09233bce8bad767108e65d17e68
BLAKE2b-256 18ef0abd24e8864bdb0e8b7ecb3a89fed980de43aa6670b2e3061094cf1caaea

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