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.48.tar.gz
(18.1 kB
view details)
Built Distribution
File details
Details for the file airflow-commons-0.0.48.tar.gz
.
File metadata
- Download URL: airflow-commons-0.0.48.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 993ac810abe9e64ef173371170778f9142c29a83980b506526f591716572b549 |
|
MD5 | 684890d6b92d1da8b614bd58310315c5 |
|
BLAKE2b-256 | 6dc07fb8c5fb0d44a0b97fdc94fd84735b7854ccb5dd3c9de920e8f1de15ced2 |
File details
Details for the file airflow_commons-0.0.48-py3-none-any.whl
.
File metadata
- Download URL: airflow_commons-0.0.48-py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a0c49db9d27c65cab3fd6d77af12becfda4bc064982183a7b3819b599506826 |
|
MD5 | 9beaa96c66c78ae12ec4a88aae8b0c56 |
|
BLAKE2b-256 | 812502be13c89d8a30558ae53c461d49fd7ad8171bee7c977768bea921b34ebc |