Skip to main content

datus-scheduler-airflow

Apache Airflow scheduler adapter for Datus.

Install

pip install datus-scheduler-airflow

Quick Start

from datus_airflow import AirflowSchedulerAdapter
from datus_scheduler_core.config import AirflowConfig
from datus_scheduler_core.models import SchedulerJobPayload

config = AirflowConfig(
    name="airflow_prod",
    type="airflow",
    api_base_url="http://localhost:8080/api/v1",
    username="admin",
    password="admin",
    dags_folder="/opt/airflow/dags",
)

adapter = AirflowSchedulerAdapter(config)
adapter.test_connection()

job = adapter.submit_job(SchedulerJobPayload(
    job_name="daily_report",
    sql="SELECT count(*) FROM orders",
    db_connection={"url": "postgresql://user:pass@host/db"},
    schedule="0 8 * * *",
))
print(job.job_id)

Integration Tests

# Start Airflow (docker-compose lives next to the tests)
cd tests/integration
docker compose up -d
cd ../..

# Run tests (from the workspace root; AIRFLOW_PASSWORD matches
# _AIRFLOW_WWW_USER_PASSWORD in tests/integration/docker-compose.yml)
AIRFLOW_PASSWORD=admin uv run pytest tests/integration/ -v -m integration

Metadata

Release files for datus-scheduler-airflow 0.1.4

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

Source distribution (sdist)

Source distribution for datus-scheduler-airflow 0.1.4
File Size Uploaded Provenance Actions
datus_scheduler_airflow-0.1.4.tar.gz 33.8 kB Without provenance Details for datus_scheduler_airflow-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datus-scheduler-airflow 0.1.4
File Interpreter ABI Platform Actions
datus_scheduler_airflow-0.1.4-py3-none-any.whl Python 3 none any Details for datus_scheduler_airflow-0.1.4-py3-none-any.whl

Total release size: 52.1 kB

Release files / datus_scheduler_airflow-0.1.4.tar.gz

Download URL datus_scheduler_airflow-0.1.4.tar.gz
Size 33.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dd2e95f4daf09ea6b382d868d3d909becf3cd2905fad2fa018e71895ec65bb3e
BLAKE2b-256 checksum
How to use checksums
136c4635748ee5666c57121f92c1c549dcea665c2fd3481f4a25f9dd2adcf296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / datus_scheduler_airflow-0.1.4-py3-none-any.whl

Download URL datus_scheduler_airflow-0.1.4-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9114e423a2d5b63833f88948b747ecba5232c1fae13a1caf40ca16cc25aaf623
BLAKE2b-256 checksum
How to use checksums
8beb03313e526a42a4f2ea8fea79f8fa2b4eafd58acc67348241372c1de1777d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for datus-scheduler-airflow 0.1.4

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