.. _self: .. toctree:: :hidden: :maxdepth: 2 :caption: Contents: Home Getting Started Configuration Profiles Contributing .. |fury| image:: https://badge.fury.io/py/astronomer-cosmos.svg :target: https://badge.fury.io/py/astronomer-cosmos .. |ossrank| image:: https://img.shields.io/endpoint?url=https://ossrank.com/shield/2121 :target: https://ossrank.com/p/2121-astronomer-cosmos .. |downloads| image:: https://img.shields.io/pypi/dm/astronomer-cosmos.svg :target: https://img.shields.io/pypi/dm/astronomer-cosmos .. |pre-commit| image:: https://results.pre-commit.ci/badge/github/astronomer/astronomer-cosmos/main.svg :target: https://results.pre-commit.ci/latest/github/astronomer/astronomer-cosmos/main :alt: pre-commit.ci status .. image:: https://raw.githubusercontent.com/astronomer/astronomer-cosmos/main/docs/_static/cosmos-logo.svg |fury| |ossrank| |downloads| |pre-commit| Run your dbt Core projects as `Apache Airflow `_ DAGs and Task Groups with a few lines of code. Benefits include: - Run dbt projects against Airflow connections instead of dbt profiles - Native support for installing and running dbt in a virtual environment to avoid dependency conflicts with Airflow - Run tests immediately after a model is done to catch issues early - Utilize Airflow's data-aware scheduling to run models immediately after upstream ingestion - Turn each dbt model into a task/task group complete with retries, alerting, etc. Example Usage ___________________ You can render a Cosmos Airflow DAG using the ``DbtDag`` class. Here's an example with the `jaffle_shop project `_: .. The following renders in Sphinx but not Github: .. literalinclude:: ./dev/dags/basic_cosmos_dag.py :language: python :start-after: [START local_example] :end-before: [END local_example] This will generate an Airflow DAG that looks like this: .. image:: https://raw.githubusercontent.com/astronomer/astronomer-cosmos/main/docs/_static/jaffle_shop_dag.png Getting Started _______________ Check out the Quickstart guide on our `docs `_. See more examples at `/dev/dags `_ and at the `cosmos-demo repo `_. Changelog _________ We follow `Semantic Versioning `_ for releases. Check `CHANGELOG.rst `_ for the latest changes. Contributing Guide __________________ All contributions, bug reports, bug fixes, documentation improvements, enhancements are welcome. A detailed overview on how to contribute can be found in the `Contributing Guide `_. Find out more about `our contributors `_. As contributors and maintainers to this project, you are expected to abide by the `Contributor Code of Conduct `_. License _______ `Apache License 2.0 `_