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.94.tar.gz
(31.9 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.94.tar.gz.
File metadata
- Download URL: airflow_commons-0.0.94.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8ec438ca17b02d59083ee92d74c6d4ef9aff2dd3f5b9505a5fb31d0822e339d
|
|
| MD5 |
03a70c35a250d1b0d6e7b03779fa1e3a
|
|
| BLAKE2b-256 |
70caf00af35d7faa7fc26d1201c5fbba7c5de08fa82e6808590962024ab0d763
|
File details
Details for the file airflow_commons-0.0.94-py3-none-any.whl.
File metadata
- Download URL: airflow_commons-0.0.94-py3-none-any.whl
- Upload date:
- Size: 47.6 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 |
b46f5e0be73ff354c13f45cd646c2299194c219eddd9fcace8d30539cd0a770a
|
|
| MD5 |
810c378bc9ccde36e4782c59645da258
|
|
| BLAKE2b-256 |
d5230458910cc7b9a58b7dee9f08cdf2ac4a098dcf1a11b2d37c57be5f13b455
|