Skip to main content

airflow-cron

Generate declarative Airflow DAG models from cron configuration.

Build Status codecov License PyPI

from airflow_cron import CronAirflowConfiguration, create_dags

config = CronAirflowConfiguration.model_validate(
    {
        "job": {
            "backup": {
                "schedule": "0 2 * * *",
                "command": "/opt/jobs/backup",
            }
        }
    }
)

dag_models = create_dags(config)

Each enabled user-crontab job becomes one airflow-pydantic DAG containing one Bash task. The result can be instantiated directly or added to an airflow-config configuration.

Documentation

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

Ecosystem

Metadata

Release files for airflow-cron 0.1.1

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

Source distribution (sdist)

Source distribution for airflow-cron 0.1.1
File Size Uploaded
airflow_cron-0.1.1.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for airflow-cron 0.1.1
File Interpreter ABI Platform
airflow_cron-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.6 kB

Release files / airflow_cron-0.1.1.tar.gz

Download URL airflow_cron-0.1.1.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2cd40cf3ea6b797b6f78c010b937319f6376568f7d0786cc762007390b409237
BLAKE2b-256 checksum
How to use checksums
126a4d0695f9d7696680fa8926d10fe58cb235e2e0563a6000ef2f2d4fe3cfed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / airflow_cron-0.1.1-py3-none-any.whl

Download URL airflow_cron-0.1.1-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58f6452cd3c3716a28d4f2d9e1033570bab553860b342bd79ffc063d264e5179
BLAKE2b-256 checksum
How to use checksums
808d2daa6d06054c2ce321112cbe4500ffb4c702b3702b5d6633e7a31ad37e47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.0

1 release file

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