https://github.com/wigging/rabbit
Simple examples of RabbitMQ workflows
https://github.com/wigging/rabbit
rabbitmq
Last synced: over 1 year ago
JSON representation
Simple examples of RabbitMQ workflows
- Host: GitHub
- URL: https://github.com/wigging/rabbit
- Owner: wigging
- Created: 2024-09-03T20:07:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T15:13:40.000Z (almost 2 years ago)
- Last Synced: 2025-01-24T17:33:54.657Z (over 1 year ago)
- Topics: rabbitmq
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rabbit
Rabbit is a Python package that demonstrates various [RabbitMQ](https://www.rabbitmq.com) workflows using the [Pika](https://github.com/pika/pika) client library. The goal is to show how RabbitMQ workflows can be implemented as a Python package using a simple design.
## Installation
This project uses [conda](https://conda.org) to create a Python virtual environment. Create the conda environment using the following command:
```text
conda env create --file environment.yml
```
Activate the environment as shown below. This will install the rabbit package in editable mode within the conda environment. See the comments in the `environment.yml` for more details.
```text
conda activate rabbit
```
A Docker compose file is also provided for running a RabbitMQ broker with default settings. Use the command shown below to run the broker in a Docker container. See the `compose.yaml` file for more details.
```text
docker compose up
```
## Examples
See the `examples` directory for several examples. Each example is in its own sub-directory. Read the comments in each example files for more details.