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.4.tar.gz (3.3 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.4-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplerabbit-0.0.4.tar.gz
  • Upload date:
  • Size: 3.3 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.4.tar.gz
Algorithm Hash digest
SHA256 b1ccd067c72b234c4fe1ba5171c46bbf9b878c68c03957c0cd4ee48727adbf7c
MD5 dbf6038011d5b0e9cd047d6b11115b77
BLAKE2b-256 83a2dab0bb21d032616d6f0f2456ce1ae69e4f177ef93ca0490fefa17671231d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simplerabbit-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 490005051b444dc5055453e8eb7898504bc2cb8e5b8d2fc78d139842c15f6f08
MD5 5e21a91934ff4cde3a31323d8fdee994
BLAKE2b-256 30a91ccebe56427935ba37c58f6716ce84ad817fdc0432c9f619d9a394c0a423

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