Skip to main content

airflow-pydantic

Typed, serializable models for Apache Airflow DAGs, tasks, sensors, schedules, and runtime resources.

Build Status codecov License PyPI

from airflow_pydantic import BashTask, Dag

dag = Dag(
    dag_id="daily-report",
    schedule="0 6 * * *",
    start_date="2025-01-01",
    catchup=False,
    tasks={
        "report": BashTask(bash_command="python /opt/jobs/report.py"),
    },
)

print(dag.render())

Models validate configuration before Airflow parses it, support Python and YAML workflows, render standalone DAG source, and instantiate native Airflow objects. airflow-config is the recommended YAML entry point.

Documentation

Published documentation is available at airflow-laminar.github.io/airflow-pydantic.

Ecosystem

[!NOTE] This library was generated using copier from the Base Python Project Template repository.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airflow_pydantic-1.6.5.tar.gz (80.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airflow_pydantic-1.6.5-py3-none-any.whl (119.3 kB view details)

Uploaded Python 3

File details

Details for the file airflow_pydantic-1.6.5.tar.gz.

File metadata

  • Download URL: airflow_pydantic-1.6.5.tar.gz
  • Upload date:
  • Size: 80.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for airflow_pydantic-1.6.5.tar.gz
Algorithm Hash digest
SHA256 a782251850e5c4633fb510fce64039abb456b0c58cf0f7bf65dd622f7724964d
MD5 cf4cb4665a1d28342e64f31f796f9f5a
BLAKE2b-256 fc4bf671747a41e62ae3eef7912af9ac9e691254892edc5e0d5297d1d9085d76

See more details on using hashes here.

File details

Details for the file airflow_pydantic-1.6.5-py3-none-any.whl.

File metadata

File hashes

Hashes for airflow_pydantic-1.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 961d5f5c9534f3152eacf367326c2adfc9268abca62608d9c1a4a35bedb1cb6e
MD5 4feaa1813bd8d00922d3f0d87ba4f1cd
BLAKE2b-256 ed94f19303e128add8e6f8ada0f2b7ac5fde72716d31afda830faae828de35e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page