$npx skillfedfor your agent

sqlalchemy2-stubs

Typing Stubs for SQLAlchemy 1.4

With conditionsPyPI DatabaseReleased Dec 20232.6M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — sqlalchemy2_stubs-0.0.2a38-py3-none-any.whl
v0.0.2a38 · released 2023-12-30 · Python >=3.6 · 1 runtime deps: typing-extensions

Yes, if you are actively maintaining SQLAlchemy 1.4 code and want static type checking. The low install friction and permissive MIT license make it straightforward to add. However, this is a legacy package: it is dormant, explicitly incompatible with SQLAlchemy 2.0, and must be manually uninstalled before upgrading. Do not install if you are on or planning to migrate to SQLAlchemy 2.0.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Only compatible with SQLAlchemy 1.4; must be manually uninstalled before upgrading to SQLAlchemy 2.0, which includes inline typing and will conflict with these stubs.
  • Low install friction with a single lightweight dependency on typing-extensions.
  • Maintenance is dormant—last commit was 2023-12-30 and no releases in 958 days—which is expected for a legacy typing stub package.

License · maintenance · safety

MIT (permissive) — MIT license permits permissive use, modification, and distribution with minimal restrictions, making it safe to adopt in most projects.

last release 2023-12-30 (958 days) · last repo commit 2023-12-30 · 157 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,580,257 downloads/mo, #2,990 on PyPI

Verify before relying

pip install sqlalchemy2-stubs typing-extensions

from typing_extensions import TypedDict
# Use with SQLAlchemy 1.4 ORM code for type checking
  • Whether the stubs cover the full SQLAlchemy 1.4 API surface or only a subset (description notes 'interim' and 'alpha level').
  • Current compatibility with modern type checker versions and whether the accompanying mypy plugin is still maintained.
  • Practical compatibility with PyPy, given the classifier lists it as supported.
Same gist for agents: .md · .json

What it is and what it does

sqlalchemy2-stubs provides typing stub files (PEP-484) for SQLAlchemy 1.4, allowing static type checkers to understand SQLAlchemy's ORM API and catch type errors at development time. The stubs are designed to work alongside a mypy extension plugin, which adds special handling for ORM mapped classes.

This package is explicitly a bridge for SQLAlchemy 1.4 users and is not compatible with SQLAlchemy 2.0, which ships with inline type annotations. The project is in alpha status and dormant—released concurrently with SQLAlchemy 1.4 and no longer actively maintained. Users upgrading to SQLAlchemy 2.0 must manually uninstall these stubs to avoid conflicts with the library's native typing.

Use it for

  • Enable type checking on SQLAlchemy 1.4 ORM code to catch column access and relationship errors before runtime.
  • Provide IDE autocomplete and type hints for SQLAlchemy models and query objects in editors supporting PEP-484 stubs.
  • Validate type consistency in legacy SQLAlchemy 1.4 projects during migration planning or refactoring.
  • Support gradual typing adoption in existing SQLAlchemy 1.4 codebases without rewriting the library itself.

Worth the install?

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

With conditions

Yes, if you are actively maintaining SQLAlchemy 1.4 code and want static type checking.

The low install friction and permissive MIT license make it straightforward to add. However, this is a legacy package: it is dormant, explicitly incompatible with SQLAlchemy 2.0, and must be manually uninstalled before upgrading. Do not install if you are on or planning to migrate to SQLAlchemy 2.0.

Install

sqlalchemy2-stubs on PyPI

Before you install

Low install friction with a single lightweight dependency on typing-extensions. Maintenance is dormant—last commit was 2023-12-30 and no releases in 958 days—which is expected for a legacy typing stub package.

Only compatible with SQLAlchemy 1.4; must be manually uninstalled before upgrading to SQLAlchemy 2.0, which includes inline typing and will conflict with these stubs.

License in practice

MIT license permits permissive use, modification, and distribution with minimal restrictions, making it safe to adopt in most projects.

Quickstart

pip install sqlalchemy2-stubs typing-extensions

from typing_extensions import TypedDict
# Use with SQLAlchemy 1.4 ORM code for type checking

Verify before relying

  • Whether the stubs cover the full SQLAlchemy 1.4 API surface or only a subset (description notes 'interim' and 'alpha level').
  • Current compatibility with modern type checker versions and whether the accompanying mypy plugin is still maintained.
  • Practical compatibility with PyPy, given the classifier lists it as supported.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.6
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
typing-extensions
MaintenanceDormant 958 days since the last release
Last repo commit
First released
Downloads2,580,257 / month, #2,990 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Evidence: sqlalchemy2_stubs-0.0.2a38-py3-none-any.whl

Tags

Capabilities
sqlalchemy type stubssqlalchemy mypy typingsqlalchemy 1.4 type hintssqlalchemy static type checkingpep 484 sqlalchemy stubssqlalchemy type annotations
Topics
type-stubssqlalchemy-1.4legacy

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 type stubs”

  • sqlalchemy2-stubsProvides PEP-484 typing stubs for SQLAlchemy 1.4, enabling static…
  • types-SQLAlchemyProvides PEP 561 type stubs for SQLAlchemy, enabling type checkers…
  • sqlalchemy-stubsProvides type stubs and a mypy plugin to enable static type checking…

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

More Database packages

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
redis Worth it
PyPI · Database · released Jul 2026

Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.

Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also homeassistant-stubs · sqlalchemy-stubs · types-SQLAlchemy · django-filter-stubs · djangorestframework-stubs · types-Flask-SQLAlchemy · lxml-stubs · SQLAlchemy · sqlalchemy-mixins · sqlalchemy-firebird