Skip to main content

Simple messaging with RabbitMQ and Python.

Project description

BunnyMQ

Build Status PyPI pyversions PyPI version fury.io

Simple messaging with RabbitMQ and Python.

Head over to the tutorial to get started.

This is a small library inspired by the Python standard library queue module and the hotqueue library. Primarily geared towards programmer happiness :slightly_smiling_face:

Basic Usage:

>>> queue = Queue('test')

>>> queue.put(1)
>>> queue.put('hello', priority=8)
>>> queue.put({'a': 1})

>>> queue.get()
'hello'
>>> queue.task_done()

>>> queue.get()
1
>>> queue.requeue()

Iterating over a queue indefinitely, waiting if nothing is available:

>>> for item in queue:
...     print(item)
...     queue.task_done()

Features

  • Simple usage
  • Automatic serialization and deserialization of Python objects
  • Adding custom serializers or turning serialization off is trivial
  • Automatic retry while publishing
  • Automatic handling of connection failures while consuming
  • Easy parallelization by starting multiple workers to share the load.

Install

pip install bunnymq

Requirements

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

bunnymq-0.0.15.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

bunnymq-0.0.15-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file bunnymq-0.0.15.tar.gz.

File metadata

  • Download URL: bunnymq-0.0.15.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.23.0

File hashes

Hashes for bunnymq-0.0.15.tar.gz
Algorithm Hash digest
SHA256 b082d302dcf3c033549faec4be197d364c339cb1ec298aaa2854d29fb2602976
MD5 2ec3beadd4655894358106805a08dcec
BLAKE2b-256 2247c8242e4646965eaad745cb8a975a3ff595165de205f7d06f8e3e5ba9ca11

See more details on using hashes here.

File details

Details for the file bunnymq-0.0.15-py2.py3-none-any.whl.

File metadata

  • Download URL: bunnymq-0.0.15-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.23.0

File hashes

Hashes for bunnymq-0.0.15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e9c786b1b627564bbbaf91fbfeb52cf43e5aa1365f92d7c46c24fe1f165c34b0
MD5 b32725fe3fd3bda7e6160ea097195a8d
BLAKE2b-256 e4173df76c1d38aff6e1023a92b0c725582e923f2213f843e32f054a027621ca

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