Skip to main content

Currently internal. Package to simplefy the using pika.

Project description

Basic lib

Library for using rabbit mq

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(host='url')

async def main():

    q = AsyncQueue('queue_name')
    q.put('message') 

    async for message in q.revivaid():
        print(message)

import asyncio 
asyncio.run(main())

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

Uploaded Source

Built Distribution

easy_mq-0.0.4-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easy_mq-0.0.4.tar.gz
  • Upload date:
  • Size: 2.1 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.0.4.tar.gz
Algorithm Hash digest
SHA256 cf15227a93a9a559d17d365a9071d71b3e69d52bc3861e584bce2ec603d16ccd
MD5 a2b26d33568dcc0fea1460761e79e68b
BLAKE2b-256 ae891a0c089c37b92b5de83269efe8e5d0f2a01c253ec41d59a59d8796b948d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: easy_mq-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.8 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.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cc9108be4de416521b4bbd82df48693bea1e74566f4e0cfa600bffca61884546
MD5 c67fe936e14c83cb7bbb4e9759b054a3
BLAKE2b-256 acf30c6771be8c181d712cf4ac294a8c95579768eaf1c119276b42bd5d9f7185

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