All Projects → celery → Librabbitmq

celery / Librabbitmq

Licence: other
Python bindings to librabbitmq-c

Programming Languages

python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Librabbitmq

Wabbit
Golang AMQP mocking library
Stars: ✭ 137 (-24.31%)
Mutual labels:  library, amqp
Amqp
AMQP 1.0 client library for Go.
Stars: ✭ 135 (-25.41%)
Mutual labels:  library, amqp
Amqpstorm
Thread-safe Python RabbitMQ Client & Management library
Stars: ✭ 130 (-28.18%)
Mutual labels:  library, amqp
Qpid Proton
Mirror of Apache Qpid Proton
Stars: ✭ 164 (-9.39%)
Mutual labels:  library, amqp
Rawspeed
fast raw decoding library
Stars: ✭ 179 (-1.1%)
Mutual labels:  library
Ksprefs
🚀⚡ Kotlin SharedPreferences wrapper & cryptographic preferences android library.
Stars: ✭ 176 (-2.76%)
Mutual labels:  library
Transitioner
A library for dynamic view-to-view transitions
Stars: ✭ 2,049 (+1032.04%)
Mutual labels:  library
Urlbuilder
Java Builders: URL builder
Stars: ✭ 174 (-3.87%)
Mutual labels:  library
Cordova Plugin Screen Orientation
Cordova Plugin Screen Orientation
Stars: ✭ 181 (+0%)
Mutual labels:  library
Ckchangelog
ckChangeLog - An Android Library to display a Change Log
Stars: ✭ 180 (-0.55%)
Mutual labels:  library
Preview Transition
This project is maintained by Ramotion, Inc. We specialize in the designing and coding of custom UI for Mobile Apps and Websites.
Stars: ✭ 2,079 (+1048.62%)
Mutual labels:  library
Unifiedtransform
A school management Software
Stars: ✭ 2,248 (+1141.99%)
Mutual labels:  library
Gwork
Skinnable GUI with useful widget collection. Fork of GWEN.
Stars: ✭ 179 (-1.1%)
Mutual labels:  library
Pdf Viewer
A Lightweight PDF Viewer Android library which only occupies around 125kb while most of the Pdf viewer occupies up to 16MB space.
Stars: ✭ 175 (-3.31%)
Mutual labels:  library
Micro Aws Lambda
A 7KB and 0 dependencies AWS Lambda library which supports middleware and easy debug.
Stars: ✭ 181 (+0%)
Mutual labels:  library
Movingnumbersview
Moving numbers effect in SwiftUI
Stars: ✭ 175 (-3.31%)
Mutual labels:  library
Disco
a protocol to encrypt communications and a cryptographic library based on Disco
Stars: ✭ 178 (-1.66%)
Mutual labels:  library
Dtl
diff template library written by C++
Stars: ✭ 180 (-0.55%)
Mutual labels:  library
Spannabletextview
SpannableTextView is a custom TextView which lets you customize the styling of slice of your text or statment via Spannables, but without the hassle of having to deal directly with Spannable themselves.
Stars: ✭ 177 (-2.21%)
Mutual labels:  library
Json table
Flutter package: Json Table Widget to create table from json array
Stars: ✭ 178 (-1.66%)
Mutual labels:  library

================================================================ librabbitmq - Python AMQP Client using the rabbitmq-c library.

: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

.. contents:: :local:

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

.. _rabbitmq-c: https://github.com/alanxz/rabbitmq-c

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.

.. # vim: syntax=rst expandtab tabstop=4 shiftwidth=4 shiftround

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].