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.9.tar.gz (4.7 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.9-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplerabbit-0.0.9.tar.gz
  • Upload date:
  • Size: 4.7 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.9.tar.gz
Algorithm Hash digest
SHA256 4f6efac6703cf98bc3a96d2fd5d8b18cf7e7aa8ebe13a5cea0b9424dad09fa45
MD5 3b5ef8dd14ee0872707a57d2d8c53c5b
BLAKE2b-256 477a7dc5049b920a917322132e41a0bd586312d7501a23cb4de9f30639f920f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simplerabbit-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 33ef572f39b55e9f82b6f6e1902ed4ffae3dd78a9f8d9844e73bb3b5c3aa527f
MD5 38a47744b88dacf43576f6f9f33d5700
BLAKE2b-256 eb8e8443a3d0e7922580f1c119d5ef4d617b72055534aebc4412af81760d2c66

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