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.67.tar.gz
(22.1 kB
view details)
Built Distribution
File details
Details for the file airflow-commons-0.0.67.tar.gz
.
File metadata
- Download URL: airflow-commons-0.0.67.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0bbf8dd0f658eb4d437f4ec4b7fd7745b93277159f1bbc589fe5d7b18f00373 |
|
MD5 | 1b83721b19f643728dd9bae48f0655c5 |
|
BLAKE2b-256 | fc3b3a72e278fa1cb4bf5cd07a74348d2871d25c3ff1590dbcb4270c8a6160cb |
File details
Details for the file airflow_commons-0.0.67-py3-none-any.whl
.
File metadata
- Download URL: airflow_commons-0.0.67-py3-none-any.whl
- Upload date:
- Size: 33.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb2713ff23ee8040820686c8aa198c0b1d542f65c4aa5b8c36d6eee426a8689d |
|
MD5 | 70bcfc257d0433a82e4956d4e01646e7 |
|
BLAKE2b-256 | 82ce15a4752ea66dffd6ff42fe6bd17d266cb6ebacae8a95fe3e952ed30d7bd0 |