RabbitMQ Provider for Apache Airflow
Configuration
In the Airflow user interface, configure a connection with the Conn Type set to RabbitMQ.
Configure the following fields:
Conn Id: How you wish to reference this connection. The default value israbbitmq_default.login: Login for the RabbitMQ server.password: Password for the RabbitMQ server.,port: Port for the RabbitMQ server, typically 5672.host: Host of the RabbitMQ server.vhost: The virtual host you wish to connect to.
Modules
RabbitMQ Operator
The RabbitMQOperator publishes a message to your specificed RabbitMQ server.
Import into your DAG using:
from rabbitmq_provider.operators.rabbitmq import RabbitMQOperator
RabbitMQ Sensor
The RabbitMQSensor checks a given queue for a message. Once it has found a message
the sensor triggers downstream proccesses in your DAG.
Import into your DAG using:
from rabbitmq_provider.sensors.rabbitmq import RabbitMQSensor
Testing
To run unit tests, use:
poetry run pytest .
A RabbitMQ instance is required to run the tests. Use the following command:
docker run --rm -it --hostname my-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management
Metadata
Release files for airflow-provider-rabbitmq 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| airflow-provider-rabbitmq-0.6.1.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| airflow_provider_rabbitmq-0.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.8 kB
Release files / airflow-provider-rabbitmq-0.6.1.tar.gz
| Download URL | airflow-provider-rabbitmq-0.6.1.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b941e89ac12a51972d11b49036ca73cea7699d7ea081084e987008a1eaf507a6
|
|
BLAKE2b-256 checksum How to use checksums |
e8754ee630489a0dd055317ca4cd36c7e11ad82f954f1b08f78682caa4cacee3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.7.10 Darwin/21.4.0
|
Release files / airflow_provider_rabbitmq-0.6.1-py3-none-any.whl
| Download URL | airflow_provider_rabbitmq-0.6.1-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84c0519597c0204b5a0f9a094ee8fe2714fd695ac0f7a5c92dec7e038f4762f4
|
|
BLAKE2b-256 checksum How to use checksums |
ecddd204a23712b7e2190657f66b81bffc5746a8e13eec480730de413b6a3c36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.7.10 Darwin/21.4.0
|