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

Uploaded Source

Built Distribution

airflow_commons-0.0.50-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: airflow-commons-0.0.50.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for airflow-commons-0.0.50.tar.gz
Algorithm Hash digest
SHA256 cbbdaf1fd0e5e5979421e0b6d0c5570261f6619729750eadb41a562fbeb56923
MD5 7b57d2428f93635ce05a37246e2bdaed
BLAKE2b-256 9e7fe96d49b4a18a758ec279820bb4e96adeeca0ec98f7115a1b65a8f638f79e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for airflow_commons-0.0.50-py3-none-any.whl
Algorithm Hash digest
SHA256 bcb47952a78ce5517e4bfa7c71184486a91adba26698e88c82b7672c8dd3f3e5
MD5 83f640ea5ba69805cfe7ac43d00cb0ff
BLAKE2b-256 b3f0a72d9102eb2be9d98f257069c2d6153fc742e76759f827176778e660e8a9

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