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.13.tar.gz (4.9 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.13-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplerabbit-0.0.13.tar.gz
  • Upload date:
  • Size: 4.9 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.13.tar.gz
Algorithm Hash digest
SHA256 93f77e96c3060a734491b23daa47f3e4908ef363783a6066b34e0327d95aa9c1
MD5 7256a729541266618b46fcb1cd82538a
BLAKE2b-256 590f1fdd29788498dcfb91f8e3f0b9697b0b0be03ced1bb253295ae200870a42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simplerabbit-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 11c8863865423e213bc41b31a8eaa4cfddafc9979e8d2e1234c45e813457f5de
MD5 d5df78f5d895de672350650cc5247fbd
BLAKE2b-256 23d6765d25615b40384d5bfb9620c29d95b6382cd989e8eab2e9055a4d139b76

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