Skip to main content
Version:
2.0.0
Download:

http://pypi.python.org/pypi/librabbitmq/

Code:

http://github.com/celery/librabbitmq/

Keywords:

rabbitmq, amqp, messaging, librabbitmq, rabbitmq-c, python, kombu, celery

Python bindings to the RabbitMQ C-library rabbitmq-c. Supported by Kombu and Celery.

Installation

Install via pip:

$ pip install librabbitmq

or, install via easy_install:

$ easy_install librabbitmq

Downloading and installing from source

Download the latest version from

http://pypi.python.org/pypi/librabbitmq/

Then install it by doing the following,:

$ tar xvfz librabbitmq-0.0.0.tar.gz
$ cd librabbitmq-0.0.0
$ python setup.py build
# python setup.py install # as root

Using the development version

You can clone the repository by doing the following:

$ git clone git://github.com/celery/librabbitmq.git

Then install it by doing the following:

$ cd librabbitmq
$ make install        # or make develop

Examples

Using with Kombu:

>>> from kombu import Connection
>>> x = Connection("librabbitmq://")

Stand-alone:

>>> from librabbitmq import Connection

>>> conn = Connection(host="localhost", userid="guest",
...                   password="guest", virtual_host="/")

>>> channel = conn.channel()
>>> channel.exchange_declare(exchange, type, ...)
>>> channel.queue_declare(queue, ...)
>>> channel.queue_bind(queue, exchange, routing_key)

Producing

>>> channel.basic_publish(body, exchange, routing_key, ...)

Consuming

>>> def dump_message(message):
...     print("Body:'%s', Properties:'%s', DeliveryInfo:'%s'" % (
...         message.body, message.properties, message.delivery_info))
...     message.ack()

>>> channel.basic_consume(queue, ..., callback=dump_message)

>>> while True:
...    connection.drain_events()

Poll

>>> message = channel.basic_get(queue, ...)
>>> if message:
...     dump_message(message)
...     print("Body:'%s' Properties:'%s' DeliveryInfo:'%s'" % (
...         message.body, message.properties, message.delivery_info))

Other

>>> channel.queue_unbind(queue, ...)
>>> channel.close()
>>> connection.close()

License

This software is licensed under the Mozilla Public License. See the LICENSE-MPL-RabbitMQ file in the top distribution directory for the full license text.

Release files for librabbitmq 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for librabbitmq 2.0.0
File Size Uploaded
librabbitmq-2.0.0.tar.gz 42.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for librabbitmq 2.0.0
File
librabbitmq-2.0.0-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details
librabbitmq-2.0.0-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details
librabbitmq-2.0.0-cp34-cp34m-manylinux1_x86_64.whl CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-64 Details
librabbitmq-2.0.0-cp27-cp27mu-manylinux1_x86_64.whl CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64 Details
librabbitmq-2.0.0-cp27-cp27m-manylinux1_x86_64.whl CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64 Details

Total release size: 1.1 MB

Release files / librabbitmq-2.0.0.tar.gz

Download URL librabbitmq-2.0.0.tar.gz
Size 42.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ffa2363a860ab5dcc3ce3703247e05e940c73d776c03a3f3f9deaf3cf43bb96c
BLAKE2b-256 checksum
How to use checksums
f44e8f8bf33d44f3441d6f6c29b299cc847570b2c864bd8d2f9871aa6c03b73e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / librabbitmq-2.0.0-cp36-cp36m-manylinux1_x86_64.whl

Download URL librabbitmq-2.0.0-cp36-cp36m-manylinux1_x86_64.whl
Size 218.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
5cdfb473573396d43d54cef9e9b4c74fa3d1516da51d04a7b261f6ef4e0bd8be
BLAKE2b-256 checksum
How to use checksums
cef72dd0d069f0591fccb1140dea73e43272943b5ff87da044119e037812cb05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / librabbitmq-2.0.0-cp35-cp35m-manylinux1_x86_64.whl

Download URL librabbitmq-2.0.0-cp35-cp35m-manylinux1_x86_64.whl
Size 218.4 kB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
98e355f486964dadae7e8b51c9a60e9aa0653bbe27f6b14542687f305c4c3652
BLAKE2b-256 checksum
How to use checksums
431e888817ac962e1c888d87af7f78a1f9eba841c0545b146c410f716277c54a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / librabbitmq-2.0.0-cp34-cp34m-manylinux1_x86_64.whl

Download URL librabbitmq-2.0.0-cp34-cp34m-manylinux1_x86_64.whl
Size 218.1 kB
Tags CPython 3.4 CPython 3.4 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
cd9cc09343b193d7cf2cff6c6a578061863bd986a4bdf38f922e9dc32e15d944
BLAKE2b-256 checksum
How to use checksums
ebfd7738795dae1beea24036fa8609841c552514cb3b79775f7f45bee226e74a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / librabbitmq-2.0.0-cp27-cp27mu-manylinux1_x86_64.whl

Download URL librabbitmq-2.0.0-cp27-cp27mu-manylinux1_x86_64.whl
Size 214.9 kB
Tags CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
3116e40c02d4285b8dd69834e4cbcb1a89ea534ca9147e865f11d44e7cc56eea
BLAKE2b-256 checksum
How to use checksums
cc6021de22227f7b15637010614498844311c6baef319913b03fcc4cc6728d34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / librabbitmq-2.0.0-cp27-cp27m-manylinux1_x86_64.whl

Download URL librabbitmq-2.0.0-cp27-cp27m-manylinux1_x86_64.whl
Size 214.9 kB
Tags CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
c2a8113d3c831808d1d940fdf43e4882636a1efe2864df7ab3bb709a45016b37
BLAKE2b-256 checksum
How to use checksums
165f6acb0d17f4a1fb33bd146b16b1666339c6b13da8a6429f627e5d8148ed40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.0.0 This release

6 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.2

1 release file

1.5.1

2 release files

1.5.0

2 release files

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

2 release files

0.9.9

1 release file

0.9.8

1 release file

0.9.7

1 release file

0.9.6

1 release file

0.9.5

5 release files

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page