$npx skillfedfor your agent

sqlalchemy-ibmi

SQLAlchemy support for Db2 on IBM i

With conditionsPyPI Front-EndsReleased Jul 2026222.1K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — sqlalchemy_ibmi-0.9.4-py3-none-any.whl
v0.9.4 · released 2026-07-09 · Python >=3.10 · 2 runtime deps: pyodbc, sqlalchemy

Yes, if you need SQLAlchemy access to Db2 on IBM i and have the IBM i Access ODBC Driver available. The package is actively maintained, has low install friction, carries a permissive license, and supports current Python versions. The beta status and known limitations (non-standard SQL, certain foreign key operations) mean you should verify your specific use case works before relying on it in production.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • IBM i Access ODBC Driver must be installed on the system; Python 3.10+ required; IBM i 7.5 or later recommended.
  • Low install friction with a pure-Python wheel.
  • Actively maintained as of 2026-07-09.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions.

last release 2026-07-09 (36 days) · last repo commit 2026-07-09 · 37 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 222,108 downloads/mo, #9,270 on PyPI

Verify before relying

pip install sqlalchemy-ibmi

import sqlalchemy as sa
engine = sa.create_engine("ibmi://user:password@host.example.com")
cnxn = engine.connect()
metadata = sa.MetaData()
table = sa.Table('table_name', metadata, autoload=True, autoload_with=engine)
result = cnxn.execute(sa.select([table]))
  • Whether all connection options work with IBM i Access Client Solutions Application Package versions older than 1.1.0.29.
  • Performance characteristics and scalability limits for large result sets or complex queries.
  • Compatibility with SQLAlchemy async features or async connection pools.
Same gist for agents: .md · .json

What it is and what it does

sqlalchemy-ibmi is a SQLAlchemy dialect that bridges SQLAlchemy's ORM and query construction to Db2 running on IBM i systems. It translates SQLAlchemy expressions into SQL compatible with IBM i's Db2 engine and manages connections through the IBM i Access ODBC Driver. The adapter supports SQLAlchemy 1.4 and 2.0, and works with Python 3.10 through 3.14.

The package is actively developed but still in beta. It has known limitations around non-standard SQL, certain foreign key operations, and subqueries in specific JOIN contexts. Users need the IBM i Access ODBC Driver installed separately on their system to establish connections. The adapter is suitable for applications that need to query or manipulate data on IBM i systems using SQLAlchemy's familiar Python API.

Use it for

  • Build Python applications that query and update Db2 tables on IBM i using SQLAlchemy ORM without writing raw SQL.
  • Migrate or integrate legacy IBM i systems with modern Python web frameworks that rely on SQLAlchemy.
  • Automate data extraction and transformation pipelines from IBM i Db2 databases in Python.
  • Use SQLAlchemy's reflection capabilities to auto-discover IBM i table schemas and generate ORM models.
  • Connect Python data analysis or reporting tools to IBM i Db2 as a backend data source.

Worth the install?

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

With conditions

Yes, if you need SQLAlchemy access to Db2 on IBM i and have the IBM i Access ODBC Driver available.

The package is actively maintained, has low install friction, carries a permissive license, and supports current Python versions. The beta status and known limitations (non-standard SQL, certain foreign key operations) mean you should verify your specific use case works before relying on it in production.

Install

sqlalchemy-ibmi on PyPI

Before you install

Low install friction with a pure-Python wheel. Actively maintained as of 2026-07-09. Requires Python 3.10+ and the IBM i Access ODBC Driver to be installed separately on the system.

IBM i Access ODBC Driver must be installed on the system; Python 3.10+ required; IBM i 7.5 or later recommended.

License in practice

Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions.

Quickstart

pip install sqlalchemy-ibmi

import sqlalchemy as sa
engine = sa.create_engine("ibmi://user:password@host.example.com")
cnxn = engine.connect()
metadata = sa.MetaData()
table = sa.Table('table_name', metadata, autoload=True, autoload_with=engine)
result = cnxn.execute(sa.select([table]))

Verify before relying

  • Whether all connection options work with IBM i Access Client Solutions Application Package versions older than 1.1.0.29.
  • Performance characteristics and scalability limits for large result sets or complex queries.
  • Compatibility with SQLAlchemy async features or async connection pools.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
pyodbcsqlalchemy
MaintenanceActively maintained 36 days since the last release
Last repo commit
First released
Downloads222,108 / month, #9,270 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Database :: Front-Ends

Evidence: sqlalchemy_ibmi-0.9.4-py3-none-any.whl

Tags

Capabilities
sqlalchemy ibm i adapterdb2 ibmi odbc driversqlalchemy dialect ibmiibm i database connectionsqlalchemy db2 ormibmi odbc sqlalchemy
Topics
ibm-idb2-odbc
PyPI keywords
sqlalchemydatabaseibmibmidb2

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 ibm i adapter”

  • sqlalchemy-ibmiProvides a SQLAlchemy dialect to connect to Db2 on IBM i systems…
  • ibm-db-saSQLAlchemy dialect adapter that enables Python applications to…
  • 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 · ibm-db-sa · sqlalchemy-jdbcapi · sqlalchemy-drill · sqlalchemy-dremio · sqlalchemy_exasol · teradatasqlalchemy · sqlalchemy-hana · sqlalchemy-firebird · sqlalchemy-vertica-python