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

Uploaded Source

Built Distribution

airflow_commons-0.0.41-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file airflow-commons-0.0.41.tar.gz.

File metadata

  • Download URL: airflow-commons-0.0.41.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for airflow-commons-0.0.41.tar.gz
Algorithm Hash digest
SHA256 83d19ff2308ecd871cda10a0df0f25ac6340496920db68b0612d590202f8cf35
MD5 b701d7176b6f449f309ef4b7f218d028
BLAKE2b-256 0fad0a5b7a5962baea7caa404018ee2c6bfee395507bdd11a8b8cdb628a87e38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airflow_commons-0.0.41-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for airflow_commons-0.0.41-py3-none-any.whl
Algorithm Hash digest
SHA256 da2795eb5ea42f6b32e87c7da537f0cf385b7fca7fef463f2b302a9c86b2f66c
MD5 218e0b1097f0190569344e8eecb513c1
BLAKE2b-256 a2ddebbf1b0018fda8731667bd8416267ab6290777baba82bca54a67a684b12a

See more details on using hashes here.

Supported by

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