$npx skillfedfor your agent

ibm-db-sa

SQLAlchemy support for IBM Data Servers

Worth itPyPI Front-EndsReleased Mar 2026473.1K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ibm_db_sa-0.4.4-py3-none-any.whl
v0.4.4 · released 2026-03-18 · 2 runtime deps: sqlalchemy, ibm_db

Yes. The adapter is actively maintained, has no known vulnerabilities, installs with low friction, and is the standard way to use SQLAlchemy with DB2. Install it if you need SQLAlchemy ORM support for IBM DB2 databases. The main constraint is that ibm_db must be installed separately and DB2 has some known SQL limitations (documented in the package) that may affect complex queries.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires ibm_db driver 1.0.1 or higher installed separately; SQLAlchemy version between 0.7.3 and 2.0.x; Python 3.8 or newer.
  • Low friction installation via pip with only two runtime dependencies (sqlalchemy and ibm_db).
  • Repository is actively maintained with recent commits and no known vulnerabilities.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

last release 2026-03-18 (149 days) · last repo commit 2026-04-22 · 45 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 473,124 downloads/mo, #6,468 on PyPI

Verify before relying

pip install ibm_db_sa

from sqlalchemy import create_engine

engine = create_engine("db2+ibm_db://user:pass@host:port/database")
connection = engine.connect()
result = connection.execute("SELECT * FROM table")
  • Whether the adapter supports all SQLAlchemy 2.0.x features or has compatibility gaps with newer versions.
  • Performance characteristics and connection pooling behavior under high concurrency.
  • Whether logging to file paths with special characters works reliably on all platforms.
Same gist for agents: .md · .json

What it is and what it does

IBM_DB_SA is a SQLAlchemy dialect that bridges Python applications to IBM DB2 databases. It translates SQLAlchemy's ORM queries and expression language into DB2-compatible SQL, handling connection management, schema reflection, and type mapping. The adapter supports both TCP/IP and local socket connections and includes built-in logging for debugging connection, reflection, and SQL execution issues.

The package integrates with ibm_db, the underlying DB2 driver, and works with SQLAlchemy versions 0.7.3 through 2.0.x. It supports DB2 on Linux, Unix, Windows, Cloud, ZOS, and iSeries platforms. Developers use it to write database code in Python without writing raw DB2 SQL, leveraging SQLAlchemy's portability and ORM features.

Use it for

  • Build a web application using SQLAlchemy ORM that persists data to an existing IBM DB2 database without writing raw SQL.
  • Migrate application logic from another database to DB2 by swapping the connection string and dialect.
  • Debug connection and SQL execution issues in a DB2-backed application using the built-in logging parameter.
  • Reflect DB2 schema metadata into Python objects to auto-generate ORM models from an existing database.
  • Write data integration scripts that read from DB2 and transform records using SQLAlchemy's query API.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The adapter is actively maintained, has no known vulnerabilities, installs with low friction, and is the standard way to use SQLAlchemy with DB2. Install it if you need SQLAlchemy ORM support for IBM DB2 databases. The main constraint is that ibm_db must be installed separately and DB2 has some known SQL limitations (documented in the package) that may affect complex queries.

Install

ibm-db-sa on PyPI

Before you install

Low friction installation via pip with only two runtime dependencies (sqlalchemy and ibm_db). Repository is actively maintained with recent commits and no known vulnerabilities.

Requires ibm_db driver 1.0.1 or higher installed separately; SQLAlchemy version between 0.7.3 and 2.0.x; Python 3.8 or newer.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install ibm_db_sa

from sqlalchemy import create_engine

engine = create_engine("db2+ibm_db://user:pass@host:port/database")
connection = engine.connect()
result = connection.execute("SELECT * FROM table")

Verify before relying

  • Whether the adapter supports all SQLAlchemy 2.0.x features or has compatibility gaps with newer versions.
  • Performance characteristics and connection pooling behavior under high concurrency.
  • Whether logging to file paths with special characters works reliably on all platforms.

Package facts

LicenseApache-2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
sqlalchemyibm_db
MaintenanceActively maintained 149 days since the last release
Last repo commit
First released
Downloads473,124 / month, #6,468 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentTopic :: Database :: Front-Ends

Evidence: ibm_db_sa-0.4.4-py3-none-any.whl

Tags

Capabilities
sqlalchemy db2 adapteribm db2 python ormsqlalchemy ibm data serversdb2 database driver sqlalchemyibm db2 connection poolsqlalchemy dialect db2
Topics
sqlalchemy-dialectdb2-driverorm-adapter
PyPI keywords
sqlalchemydatabaseinterfaceIBMDataServersDb2

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “sqlalchemy db2 adapter”

  • ibm-db-saSQLAlchemy dialect adapter that enables Python applications to…
  • sqlalchemy-ibmiProvides a SQLAlchemy dialect to connect to Db2 on IBM i systems…
  • ibm-dbPython driver for connecting to IBM Db2 for LUW and IBM Db2 for z/OS…

Give your agent the search over MCP, or paste the wish link into any chat.

More Front-Ends packages

SQLAlchemy Worth it
PyPI · Front-Ends · released Aug 2026

SQLAlchemy is a Python SQL toolkit and Object Relational Mapper (ORM) that provides both a high-level ORM layer for declarative object persistence and a Core SQL construction system for direct database abstraction and query building.

permissive licensepure Python · 3.7+
422.7Mdownloads / mo
psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
alembic Worth it
PyPI · Front-Ends · released Aug 2026

Alembic generates and manages database schema migrations for SQLAlchemy applications, handling version control of database structure changes with support for upgrades, downgrades, and auto-generation from model changes.

Install it if you use SQLAlchemy and need to version-control schema changes; skip it only if you manage migrations manually or use a different ORM entirely.

MITpure Python · 3.10+
215.2Mdownloads / mo
weaviate-client Worth it
PyPI · Front-Ends · released Aug 2026

A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.

permissive licensepure Python · 3.10+
213.2Mdownloads / mo
databricks-sql-connector Worth it
PyPI · Front-Ends · released Jul 2026

A Python client library that connects to Databricks clusters and SQL warehouses using a Thrift-based protocol, conforming to the Python DB API 2.0 specification and supporting Arrow-based data exchange.

Install it if you need to query Databricks clusters or SQL warehouses from Python.

Apache-2.0pure Python
119.5Mdownloads / mo
psycopg Worth it
PyPI · Software Development · released May 2026

Psycopg 3 is a PostgreSQL database adapter for Python that enables applications to connect to, query, and manage PostgreSQL databases using Python code.

Install it if you need to connect Python to PostgreSQL.

LGPL-3.0-onlypure Python · 3.10+
117.0Mdownloads / mo

See also ibm-db · sqlalchemy-ibmi · sqlalchemy-jdbcapi · sqlalchemy-databricks · pybigquery · databricks-dbapi · elasticsearch-dbapi · sqlalchemy-hana · sqlalchemy_exasol · sqlalchemy-firebird