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.95.tar.gz (32.3 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.95-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airflow_commons-0.0.95.tar.gz
  • Upload date:
  • Size: 32.3 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.95.tar.gz
Algorithm Hash digest
SHA256 a234a80957d7cd32c39d4bc2028d4e315d2dc20c215ef38eb8bd614c34dd695d
MD5 ddeb40240987681b364228871e7c3b2a
BLAKE2b-256 19258aa27cefd4d083af2cbcd9746f2209a62deba3a26973d44023c76d67ec17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for airflow_commons-0.0.95-py3-none-any.whl
Algorithm Hash digest
SHA256 18276cb4cca029cdd21f3d8d89119538f15b2e531a5d759b5bc0b0c1ffb3512f
MD5 dbbd12e5a37ddfb7654012d5444365c4
BLAKE2b-256 e1fd0aa57104394ffe46938aa17742b034ec1f835cee97bc00c512ce8a1a08cd

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