Common functions for airflow
Project description
airflow-commons
A python package that contains common functionalities for airflow
Installation
Use the package manager pip to install airflow-commons.
pip install airflow-commons
Modules
- bigquery_operator: With this module you can manage your Google BigQuery operations.
- mysql_operator: Using this module, you can connect to your MySQL data source and manage your data operations.
- s3_operator: This operator connects to your s3 bucket and lets you manage your bucket.
- glossary: This module consists of constants used across project
- sql_resources: Template BigQuery and MySQL queries such as merge, delete, select etc. are located here.
- utils: Generic methods like connection, querying etc. are implemented in this module.
Usage
- Sample deduplication code works like:
from airflow_commons import bigquery_operator
bigquery_operator.deduplicate(
service_account_file="path_to_file",
start_date="01-01-2020 14:00:00",
end_date="01-01-2020 15:00:00",
project_id="bigquery_project_id",
source_dataset="source_dataset",
source_table="source_table",
target_dataset="target_dataset",
target_table="target_table",
oldest_allowable_target_partition="01-01-2015 00:00:00",
primary_keys=["primary_keys"],
time_columns=["time_columns"],
allow_partition_pruning=True,
)
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
airflow-commons-0.0.78.tar.gz
(25.3 kB
view details)
Built Distribution
File details
Details for the file airflow-commons-0.0.78.tar.gz
.
File metadata
- Download URL: airflow-commons-0.0.78.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad75e0cbd27e75b1f5c3adcb000712816fbc87e426920d2dbbf4dcff2c9cace1 |
|
MD5 | 46f854efa42f3b1bc9251373d53480c8 |
|
BLAKE2b-256 | 79b6cb1f6f701f05e6f46e843afa17745aca4c5306b569ac490aee4c066fb0b0 |
File details
Details for the file airflow_commons-0.0.78-py3-none-any.whl
.
File metadata
- Download URL: airflow_commons-0.0.78-py3-none-any.whl
- Upload date:
- Size: 37.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea8fd64851722ae3a251bd00f95419c15ffe4befa66a381dfb67f77cead6fa6b |
|
MD5 | 35cb1d3bacfc7b6522868310c04aee8f |
|
BLAKE2b-256 | 9a3d26fecceb71746c4fe4e0d6ab83f7ffdb10fe6628a092be09348d218af891 |