Skip to main content

aircheck

A tool for airflow DAG integrity validation.

The aim of the project is two-fold:

  • enable the users to run checks that would fail locally, before they fail in the airflow UI
  • allow to enforce standards related to certain DAG properties.

The first part involves:

  • checking if modules containing DAGs are properly loaded (i.e. no ImportErrors etc.)
  • checking for cycles in DAGs
  • checking for duplicated DAGs

The latter allows users to enforce that:

  • all DAGs have IDs starting with a certain prefix (e.g. indicating the team developing the DAG)
  • DAG IDs don't contain whitespaces (those can confuse the airflow UI)
  • every DAG has at least one task associated with it (i.e. there are no 'empty' DAGs).

Installation

PyPI

aircheck can be installed with pip.

pip install aircheck

From source

Another option is to install aircheck from the source GitHub repo.

git clone https://github.com/AleksanderWWW/aircheck.git
cd aircheck && pip install .

Optionally install dev requirements, like pytest, ruff etc.

cd aircheck && pip install .[dev]

Usage

After a successful installation, the project can be used in three main ways.

Commandline tool

aircheck ./dags/dag1.py ./dags/dag2.py --check-whitespace --dag-id-prefix <prefix>

Pre-commit hook

- repo: https://github.com/AleksanderWWW/aircheck
  rev: v0.1.2
  hooks:
    - id: aircheck
      args: ["--check-empty-dags", "--dag-path" "<non-standard path>"]

Python package

from aircheck.core.checks import check_for_duplicated_dags, check_for_empty_dag
from aircheck.core.load import load_dags

dags = load_dags(["./dags/dag1.py", "./dags/dag2.py"])

check_for_duplicated_dags(dags)

for dag in dags:
    check_for_empty_dag(dag)

Metadata

Release files for aircheck 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aircheck 0.1.2
File Size Uploaded Provenance
aircheck-0.1.2.tar.gz 8.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aircheck 0.1.2
File Interpreter ABI Platform
aircheck-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 14.5 kB

Release files / aircheck-0.1.2.tar.gz

Download URL aircheck-0.1.2.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6a6e3d27d6c880c5f60b88b26d0a0e71ac75c6be7d0fb40c1f73c1221745bc53
BLAKE2b-256 checksum
How to use checksums
155c6bf3b80ec72ec1fdf60427bd88100a0edc8d4c8b2a25d20e1346d24133b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / aircheck-0.1.2-py2.py3-none-any.whl

Download URL aircheck-0.1.2-py2.py3-none-any.whl
Size 6.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c1d4d44c5d29f5f83fdd6f270958d5e3eea751231e927e1bdac10566ff586358
BLAKE2b-256 checksum
How to use checksums
a41491ec6958e0784fc1106cd6e287286cb877fee211d99d84e78b86daf216e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Security for aircheck 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page