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.3.tar.gz (1.8 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.3-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplerabbit-0.0.3.tar.gz
  • Upload date:
  • Size: 1.8 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.3.tar.gz
Algorithm Hash digest
SHA256 a19286c1c40304e944a5d9bb07ddd9276239d078f51dace95b3fb9ae823df72d
MD5 e902e72b60e002d78432f9d62f68150f
BLAKE2b-256 eadf9f2d0ac1086f32491702ee0c81f5a4331f511bdce5dd4f1276352b1fbeb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simplerabbit-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 1.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1a574b1faf8a113c7554ea33351c7a4ffd1967ed5a9c63145ae9dd844595c728
MD5 39e5ba091efbedc912df5e4d4120fb5b
BLAKE2b-256 2f4d97faf1695aa9c881e7c2aa95e770aef98e8fdfa1226dca51e59c12db5438

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