Skip to main content

AMQP Client using the rabbitmq-c library.

Project description

Version:
2.0.2.dev3
Download:

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

Code:

http://github.com/henryykt/librabbitmq/

Keywords:

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

Note: This is a (temporary) fork of librabbitmq with fixes for memory leaks included in https://github.com/celery/librabbitmq/pull/145.

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

Installation

Install via pip:

$ pip install librabbitmq-fork

or, install via easy_install:

$ easy_install librabbitmq-fork

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

librabbitmq_fork-2.0.2.dev3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (288.7 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ x86-64

librabbitmq_fork-2.0.2.dev3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (292.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

librabbitmq_fork-2.0.2.dev3-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (288.5 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

librabbitmq_fork-2.0.2.dev3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (292.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

librabbitmq_fork-2.0.2.dev3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (292.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

librabbitmq_fork-2.0.2.dev3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (291.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

librabbitmq_fork-2.0.2.dev3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file librabbitmq_fork-2.0.2.dev3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for librabbitmq_fork-2.0.2.dev3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f8e4d79d4dc66ae08e2c7a642e2fb4f08a2ec2af0ed2a54591de6e328d91e92d
MD5 fd3593fe1a02320e3b5be2b82814f411
BLAKE2b-256 2ef0a553b89f1716674f8d5fa9850cc5cc6c545bacde6cd6241cda0e46e878f6

See more details on using hashes here.

File details

Details for the file librabbitmq_fork-2.0.2.dev3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for librabbitmq_fork-2.0.2.dev3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3aef0967569f5483b0d78bd4bd33eba3be24184b5d2c4037bde53e6387669991
MD5 de88be66924ebf0e0d7992e82c9770a2
BLAKE2b-256 bbe4aa9679ad0e75033448b0471ee875698705f2610ca2bd1d9fb3fbb08b4a69

See more details on using hashes here.

File details

Details for the file librabbitmq_fork-2.0.2.dev3-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for librabbitmq_fork-2.0.2.dev3-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 abce189db99c29ab18edde60011802b7bfe896dc92be9956a49a7921b449983d
MD5 98a71235755056c90c3776e8ba27f902
BLAKE2b-256 e8caf2bee6f0ef9438db8d9a1f1280d3884712bbc496c7809b37fc7a3cacd310

See more details on using hashes here.

File details

Details for the file librabbitmq_fork-2.0.2.dev3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for librabbitmq_fork-2.0.2.dev3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2c0b1f1a03d7791bf767094cc6b07947b1a5e5d55ca8e84fe6f1cbc2c91bac54
MD5 4398c743641d5b05ceaa0e1e984182d0
BLAKE2b-256 76382a31a0f158a69f8e2ca9178377b41a4818a4f4a98cb51febdad50367ffc2

See more details on using hashes here.

File details

Details for the file librabbitmq_fork-2.0.2.dev3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for librabbitmq_fork-2.0.2.dev3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8858b48b8b267e36bbb8ca7fb5ad22a23fac126ecd839946e5ac109682f5e95e
MD5 8f3b8faa8676248640feb9c70a842a2f
BLAKE2b-256 12c75529cf839456ed1e268c61fcec6966d40e304772b351b79c14499c84232c

See more details on using hashes here.

File details

Details for the file librabbitmq_fork-2.0.2.dev3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for librabbitmq_fork-2.0.2.dev3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 433a131c378b4599e1f03491c008bdbc4e26d531fabbc3db1ed52b7d81b1aa38
MD5 c3f4508e4edef6ceaad5ae3bfe93ecdd
BLAKE2b-256 f91af6143446624eeb6951e01392c32ed06cebc12f5c1c5d4606243af626fb00

See more details on using hashes here.

File details

Details for the file librabbitmq_fork-2.0.2.dev3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for librabbitmq_fork-2.0.2.dev3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 62a100338f5fe13389d08e63bc26469e4aae8a06cc3239b23d4883786f280035
MD5 9fef28e03f0634bdedb3b1eed85c8b5c
BLAKE2b-256 a3771be51544262a08406037def3c11d6e6d29f92db2aa1c4b87b0cc2d188af7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page