Skip to main content

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.96.tar.gz (32.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airflow_commons-0.0.96-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

Details for the file airflow_commons-0.0.96.tar.gz.

File metadata

  • Download URL: airflow_commons-0.0.96.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for airflow_commons-0.0.96.tar.gz
Algorithm Hash digest
SHA256 86addba41da4635e28c94ff0fe787e2524ccca3199e029d10457edf0dcc90260
MD5 d5e417794e19e2bd580dc9466761a16f
BLAKE2b-256 fa24ba1a538dd6d724e652b4714f5ce4efb3213c44eb6b50f7d20d7436d56293

See more details on using hashes here.

File details

Details for the file airflow_commons-0.0.96-py3-none-any.whl.

File metadata

File hashes

Hashes for airflow_commons-0.0.96-py3-none-any.whl
Algorithm Hash digest
SHA256 2d8046b9849f492b24506e4e4325c2ad486d3a0aba08ffb1b25df3a17d5916b1
MD5 8b8d40896b25af5a486f2245d88b4931
BLAKE2b-256 5b20d180250169d90f043b16445c72b869349a0cfb0d8da6df014bb71d4adaaf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page