Skip to main content

airflow-provider-ibm-db2

PyPI version Python Versions License: MIT CI

Apache Airflow provider to connect to IBM Db2 using ibm_db_dbi (native) with a fallback to pyodbc.
Includes basic Hook and Operators, an example DAG, and unit tests.

Status: Initial MVP — designed to evolve with your feedback and contributions.


✨ Features

  • Db2Hook with driver auto-detection: ibm_db_dbi → pyodbc (fallback).
  • Db2SqlOperator to execute parameterized SQL (based on SQLExecuteQueryOperator).
  • Db2StoredProcedureOperator to invoke CALL schema.proc(?,?).
  • Db2CheckOperator for data quality checks (counts/values).
  • bulk_load() via SYSPROC.ADMIN_CMD('LOAD/IMPORT ...') (if the user has privileges).
  • Example DAG and tests with pytest.

⚡ Installation (editable)

pip install -e .[dev]

🔧 Airflow Connection Setup

Create a Connection with ID db2_default:

  • Conn Type: Db2 (free text) or Generic

  • Host: hostname | Port: 50000

  • Schema: DBNAME | Login: user | Password: ******

  • Optional Extra (JSON):

{
  "ssl": true,
  "currentSchema": "DB2ADMIN",
  "securityMechanism": "13"
}

🚀 Quick Start

Check out the example DAG:
src/airflow_provider_ibm_db2/example_dags/example_db2_dag.py


🗺️ Short-term Roadmap

  • Transfer operators (Db2 → Parquet, Db2 → Postgres)
  • Sensible defaults for isolation level and retries
  • Compatibility matrix (DB2 LUW 11.1/11.5, Python 3.9–3.12, Airflow ≥2.7)

📜 License

MIT

Release files for airflow-provider-ibm-db2 0.1.2

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-provider-ibm-db2 0.1.2
File Size Uploaded
airflow_provider_ibm_db2-0.1.2.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for airflow-provider-ibm-db2 0.1.2
File Interpreter ABI Platform
airflow_provider_ibm_db2-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / airflow_provider_ibm_db2-0.1.2.tar.gz

Download URL airflow_provider_ibm_db2-0.1.2.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0ff20b122885e2415d75dc8074bf0b203c1a5fc1c9c18e5735ede813b87bb2f3
BLAKE2b-256 checksum
How to use checksums
0e9fe66fc1ba52015329c7ebc3e74ca3d693eb49ba36003c79f8b6b51da78cae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.9

Release files / airflow_provider_ibm_db2-0.1.2-py3-none-any.whl

Download URL airflow_provider_ibm_db2-0.1.2-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76c8245fb462d99bfa758aa2efbefeb92205bf65aec1e4ad8b1342a86812223d
BLAKE2b-256 checksum
How to use checksums
836df8a6cb2467c5894236ddf3943d92edb7e56c2c3a951c9edea55e41ef5a1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.0

2 release files

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