Auto-generated Diagrams from Airflow DAGs.
Project description
airflow-diagrams
Auto-generated Diagrams from Airflow DAGs.
This project aims to easily visualise your Airflow DAGs on service level from providers like AWS, GCP, Azure, etc. via diagrams.
Installation
To install it from PyPI run:
pip install airflow-diagrams
How to Use
To use this auto-generator just add the following two lines to your Airflow DAG (and run it):
from airflow_diagrams import generate_diagram_from_dag
generate_diagram_from_dag(dag=dag, diagram_file="diagram.py")
This will create a file called diagram.py
which contains the definition to create a diagram.
Run this file and you will get a rendered diagram.
A working example can be found in examples with the example_dag generating the diagram (rendered version).
Contributing
This project is in a very early stage. And contributions are welcome <3. The mapping.json needs a lot more entries so the Diagram can be proper created for all kinds of Airflow DAGs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for airflow_diagrams-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df2e8776b85e1fd45c7a5f96edb96acd4d81f59e264705aca409ca50b1d4bf4 |
|
MD5 | 2b3a42f91239d2bc7b21cf46a52a27bb |
|
BLAKE2b-256 | bae3675acc23d98346cb00456e9ff610988b681722e8e6d3bfceb65186059eb7 |