Skip to main content

🧰 Air-Labs Helpers

The Helpers module provides shared utilities used across all Air-Labs plugins.
It standardizes how plugins interact with the Airflow REST API and connection management.


🔧 Features

  • Centralized API client (AirflowClient) for REST API interaction
  • Built-in authentication support using /auth/token
  • Simplified connection management via Airflow’s conn_id
  • Consistent response formatting and error handling

🧮 Usage Example

from air_labs_helpers.client import AirflowClient

client = AirflowClient(conn_id="airflow_api_conn")
report = client.pause_dags(name_prefix="etl_")
print(report)

Connection Setup (Required)

Before using the client, create a connection in the Airflow UI → Admin → Connections.

Field Description Example
Conn Id Used in code airflow_api_conn
Conn Type http or https http
Host Airflow Webserver http://localhost:8080
Login Username / Service Account admin
Password Password or API token mysecret

How It Works

  1. Loads the Airflow connection from conn_id
  2. Authenticates via /auth/token
  3. Sends REST API requests to /api/v1/...
  4. Returns structured results

🧾 License

MIT © Rahul Rajasekharan

Metadata

Release files for air-labs-helpers 0.1.1

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

Source distribution (sdist)

Source distribution for air-labs-helpers 0.1.1
File Size Uploaded Provenance
air_labs_helpers-0.1.1.tar.gz 6.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for air-labs-helpers 0.1.1
File Interpreter ABI Platform
air_labs_helpers-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / air_labs_helpers-0.1.1.tar.gz

Download URL air_labs_helpers-0.1.1.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b7f39a0f70a6e3b87b687a39b885cf0f19a61bc3c8aa4857ddd36c507c24ac22
BLAKE2b-256 checksum
How to use checksums
26d862dede5ee927c7745d2a42bc513c6fa3a06d6f191cff628e1facebe21763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / air_labs_helpers-0.1.1-py3-none-any.whl

Download URL air_labs_helpers-0.1.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98ee66c76dec8cdaf4b36fe94266a94ced4496769991f7c9055b0812c375a7ac
BLAKE2b-256 checksum
How to use checksums
fc53d2cefe2699ac45e6442d14560fb53cb2f1ae90504fbc9ee4a3173e2ba317
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for air-labs-helpers 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 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