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

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.99
File Size Uploaded Provenance Actions
airflow_commons-0.0.99.tar.gz 36.0 kB Without provenance Details for airflow_commons-0.0.99.tar.gz

Built distribution (wheel)

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

Total release size: 90.6 kB

Release files / airflow_commons-0.0.99.tar.gz

Download URL airflow_commons-0.0.99.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fca945bbc1cdae4d2e85d9d43a409854f3e8a1d5f618ceefe8ddd34f1ac7a9bd
BLAKE2b-256 checksum
How to use checksums
765cf4439d02a5a23d4198aabb415952fdd3e1d3f1efeb4b8b6ae99e8fcc2a82
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.99-py3-none-any.whl

Download URL airflow_commons-0.0.99-py3-none-any.whl
Size 54.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47905fcfba4bcd19b2660e5db6b64c446745bda97b7712b68357b0eac5bfc571
BLAKE2b-256 checksum
How to use checksums
9df37c9a91edd42d7c6dea3a6ccebf8807c0c571d66bc9d49a44176c82337c1e
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.99

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