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,
    )

Metadata

Release files for airflow-commons 0.0.98

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.98
File Size Uploaded Provenance Actions
airflow_commons-0.0.98.tar.gz 35.1 kB Without provenance Details for airflow_commons-0.0.98.tar.gz

Built distribution (wheel)

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

Total release size: 88.4 kB

Release files / airflow_commons-0.0.98.tar.gz

Download URL airflow_commons-0.0.98.tar.gz
Size 35.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0f94c544af9f22a3c3c10d87064bc97684010482c6e3d67d8ec2cdcf3e253612
BLAKE2b-256 checksum
How to use checksums
f676fbcb3d8da4f1c31a25261eb638fb091bb66cbdf1bec5e9dcd80513122234
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.98-py3-none-any.whl

Download URL airflow_commons-0.0.98-py3-none-any.whl
Size 53.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22868e0bb4025a6273918235f6d3e6fe84da38622039af9564023a171522f834
BLAKE2b-256 checksum
How to use checksums
526b9a67f2e33a81fa97b56cb5eb3036145931eb89cad30a9086eb6d7dd3507d
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.98

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.98 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