Skip to main content

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.
  • postgres_operator: Using this module, you can connect to your PostgreSQL data source and run select queries.
  • 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,
        source_filter="anonymous = FALSE AND shadow = FALSE",
    )

Metadata

Release files for airflow-commons 0.0.102

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airflow-commons 0.0.102
File Size Uploaded Provenance Actions
airflow_commons-0.0.102.tar.gz 39.4 kB Without provenance Details for airflow_commons-0.0.102.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for airflow-commons 0.0.102
File Interpreter ABI Platform Actions
airflow_commons-0.0.102-py3-none-any.whl Python 3 none any Details for airflow_commons-0.0.102-py3-none-any.whl

Total release size: 99.5 kB

Release files / airflow_commons-0.0.102.tar.gz

Download URL airflow_commons-0.0.102.tar.gz
Size 39.4 kB
Tags Source
SHA-256 checksum
How to use checksums
45764f15430d9ed9afe1bde09c041dc26c7073716e7ed0c6ce75e121d27e405d
BLAKE2b-256 checksum
How to use checksums
0e823ce61e3091d12af24566d7df91b85cc35b5872e20c98c9ddafa4efc5f96f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / airflow_commons-0.0.102-py3-none-any.whl

Download URL airflow_commons-0.0.102-py3-none-any.whl
Size 60.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e68133bfc4aa0364360405ab95cb67d96fbf46aa836c112a00990af913634d45
BLAKE2b-256 checksum
How to use checksums
2eed73fcc4e7e6e67e78e682671f642d97d0a02856fd6ff62faeb02c810028b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for airflow-commons 0.0.102

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.102 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page