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.92.tar.gz
(30.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file airflow_commons-0.0.92.tar.gz.
File metadata
- Download URL: airflow_commons-0.0.92.tar.gz
- Upload date:
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3805f769581fed357a0e2e0910d596ddaf3bf1bfa99fe9c3e3fed27a1c8c257
|
|
| MD5 |
63fc43f8ccc18b3a193deae3a3ff7395
|
|
| BLAKE2b-256 |
b4cc3f6653f80ab6c8136f9aef84de817acb5a095ef16f2017b234155f2bfc7a
|
File details
Details for the file airflow_commons-0.0.92-py3-none-any.whl.
File metadata
- Download URL: airflow_commons-0.0.92-py3-none-any.whl
- Upload date:
- Size: 44.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13160f66ec3b4b80053a9ee1f58905b2659e2e680c1c6aa73c498d24adc67278
|
|
| MD5 |
32dcb359ad162b6d2d774e5e61e3a1db
|
|
| BLAKE2b-256 |
fe8141de89858422fc2ef2de2fcc36cabca7554c468be6894021afcec1ddc0a2
|