Skip to main content

Simple RabbitMQ library

Project description

Atom Rabbit Lib

Rabbit Lib is a Python library for sending and receiving messages using RabbitMQ. It includes two classes, RabbitSender and RabbitReceiver, that provide a simple interface for sending and receiving messages over a RabbitMQ broker.

Installation

You can install Rabbit Lib using pip:

pip install rabbit_lib

Rabbit Lib requires Python 3.6 or later, as well as the pika library (version 1.2.0)

Usage

Here's an example of how to use RabbitSender to send a message:

from rabbit_lib import RabbitSender

sender = RabbitSender('amqp://guest:guest@localhost:5672/', 'my_queue')
sender.send_message('Hello, world!')

And here's an example of how to use RabbitReceiver to receive messages:

from rabbit_lib import RabbitReceiver

receiver = RabbitReceiver('amqp://guest:guest@localhost:5672/', 'my_queue')
message = receiver.receive_message()
print(message)

License

Rabbit Lib is licensed under the MIT License. See LICENSE for more information.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

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

simplerabbit-0.0.15.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

simplerabbit-0.0.15-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplerabbit-0.0.15.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for simplerabbit-0.0.15.tar.gz
Algorithm Hash digest
SHA256 a4e92ad981e527916ec44f87a9995e30a72781a5f6e71a5d8e733f15c447b803
MD5 57d0b5eaf34f415914edf84397ab9ef3
BLAKE2b-256 435f49beea0e164fb5f0b21bdc2ee30be9f1d9ec2dd5123acb48716afdeb0c02

See more details on using hashes here.

File details

Details for the file simplerabbit-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: simplerabbit-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for simplerabbit-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 11eba534fc342eb19804eb81564a176563c27d43277205ce3de113d5751a290f
MD5 cacd24155dcacb9c92ab28929a26bedf
BLAKE2b-256 e9dd65c8b61045825422edd8dc8da2c022bac9676335f407a96ca47a4aad674a

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