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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: easy_mq-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 d97b50e2f9149bc56f319b0a63b84bcbb1c9441c7c35af39b7fb50c7e007a83a
MD5 34d9254c3209ee2133b9e9c37e645cae
BLAKE2b-256 effe965d111aed71a10a0df6b87993dfa5096f0e60f2aed11a6172cd753a1590

See more details on using hashes here.

File details

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

File metadata

  • Download URL: easy_mq-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bae166785ee4ed9f2a054f121e1c1034e899e9e05a4c6ebc165b0e0d99bf9d08
MD5 417191f4531225af0e4979ab17fba237
BLAKE2b-256 eb56cabc58ceef3a4ddb7adfaffa5a91d8bd30b55d39ca4a6fa9f39b40fea00a

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