Apache Airflow tools
Project description
Airflow Tools
Welcome to Airflow Tools! This package provides a collection of useful tools, utilities, and extensions for working with Apache Airflow, a platform to programmatically author, schedule, and monitor workflows.
Features
- Task Monitoring: Monitor task statuses and execution details easily.
- Utilities: Helpful utility functions to simplify common Airflow tasks.
- Extensions: Additional features and integrations to enhance your Airflow workflows.
Installation
You can install ch_airflow_tools
using pip:
pip install ch_airflow_tools
Usage
Once installed, you can import and use the tools provided by this package in your Airflow DAGs and workflows. Here's a quick example of using the task monitoring feature:
from airflow import DAG
from airflow_tools.monitoring import get_task_status
default_args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2023, 8, 1),
'retries': 1,
}
dag = DAG('example_dag', default_args=default_args, schedule_interval='@daily')
# Define your tasks here...
# Example of using the task monitoring function
task_status = get_task_status(dag=dag, task_id='my_task_id', execution_date='2023-08-22T00:00:00+00:00')
print("Task Status:", task_status)
Contributing
Contributions are welcome! If you have an idea for a new feature, find a bug, or want to improve the documentation, feel free to open an issue or submit a pull request. Please make sure to follow the contribution guidelines when contributing.
License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ch_airflow_tools-4.1.tar.gz
.
File metadata
- Download URL: ch_airflow_tools-4.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02cef15677194f5397c799a295d68e947671506eb73d6af5c647fedd8c66a84e |
|
MD5 | e9efa49460bab4ab34ae30956b8d4e3d |
|
BLAKE2b-256 | 389582c9b7bee2372ef980d08838dd8999874ad3317fc6bf76259c8fc6db832d |