airflow-provider-ibm-db2
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
Db2Hookwith driver auto-detection:ibm_db_dbi→pyodbc(fallback).Db2SqlOperatorto execute parameterized SQL (based onSQLExecuteQueryOperator).Db2StoredProcedureOperatorto invokeCALL schema.proc(?,?).Db2CheckOperatorfor data quality checks (counts/values).bulk_load()viaSYSPROC.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) orGeneric -
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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| airflow_provider_ibm_db2-0.1.2.tar.gz | 9.0 kB | Without provenance | Details for airflow_provider_ibm_db2-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| airflow_provider_ibm_db2-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for airflow_provider_ibm_db2-0.1.2-py3-none-any.whl |
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
|
Security for airflow-provider-ibm-db2 0.1.2
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.