$npx skillfedfor your agent

sqlalchemy-diff

A tool for comparing database schemas using SQLAlchemy

With conditionsPyPI LibrariesReleased Dec 2025128.3K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — sqlalchemy_diff-1.1.1-py3-none-any.whl
v1.1.1 · released 2025-12-13 · Python >=3.10 · 1 runtime deps: sqlalchemy

Yes, if you need to compare SQLAlchemy-connected database schemas. Low install friction, permissive license, no known vulnerabilities, and active maintenance make it a straightforward choice. The aging maintenance status (244 days since last release) is not a blocker for a stable schema-comparison tool, but verify that the package handles your specific database dialects and schema complexity before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or higher and SQLAlchemy >= 1.4; database connectivity and valid connection URIs required.
  • Low install friction; single runtime dependency on sqlalchemy.
  • Maintenance status is aging—last release 244 days ago, but repository remains active with recent commits and no archived status.

License · maintenance · safety

permissive license (permissive) — Licensed under Apache Software License (permissive), imposing no significant restrictions on use or redistribution.

last release 2025-12-13 (244 days) · last repo commit 2026-02-01 · 30 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 128,278 downloads/mo, #11,714 on PyPI

Verify before relying

from sqlalchemy import create_engine
from sqlalchemydiff.comparer import Comparer

engine_one = create_engine('postgresql://user:pass@host:port/db_one')
engine_two = create_engine('postgresql://user:pass@host:port/db_two')
comparer = Comparer(engine_one, engine_two)
result = comparer.compare()
print(result.is_match)
  • Whether the package handles schema comparison across different database dialects or only same-dialect comparisons.
  • Performance characteristics when comparing large schemas with thousands of tables or complex constraint hierarchies.
  • Whether custom inspectors can be registered at runtime or only via subclassing before package import.
Same gist for agents: .md · .json

What it is and what it does

sqlalchemy-diff is a schema comparison tool that takes two SQLAlchemy database engines and reports structural differences between them. It inspects built-in database objects—tables, columns, primary and foreign keys, indexes, unique and check constraints, and enums—then produces a structured diff showing what matches and what diverges. The tool is designed for validating database migrations, detecting schema drift between environments, or auditing schema consistency across replicas.

The package works by instantiating a Comparer with two engines (or URIs), calling compare() to run the inspection and diff logic, and receiving a result object with an is_match flag and detailed error records. Results can be exported to JSON. The comparison logic is pluggable: built-in inspectors can be ignored selectively, and new inspectors can be added by subclassing BaseInspector, allowing extension for database-specific or application-specific schema aspects.

Use it for

  • Validate that a database migration script produced the expected schema changes before deploying to production.
  • Detect unintended schema drift between a primary database and a replica or backup.
  • Compare staging and production schemas to ensure they remain synchronized.
  • Audit schema consistency across multiple database instances in a microservices environment.
  • Automate schema regression testing in CI/CD pipelines by comparing test database snapshots.

Worth the install?

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

With conditions

Yes, if you need to compare SQLAlchemy-connected database schemas.

Low install friction, permissive license, no known vulnerabilities, and active maintenance make it a straightforward choice. The aging maintenance status (244 days since last release) is not a blocker for a stable schema-comparison tool, but verify that the package handles your specific database dialects and schema complexity before committing to production use.

Install

sqlalchemy-diff on PyPI

Before you install

Low install friction; single runtime dependency on sqlalchemy. Maintenance status is aging—last release 244 days ago, but repository remains active with recent commits and no archived status.

Requires Python 3.10 or higher and SQLAlchemy >= 1.4; database connectivity and valid connection URIs required.

License in practice

Licensed under Apache Software License (permissive), imposing no significant restrictions on use or redistribution.

Quickstart

from sqlalchemy import create_engine
from sqlalchemydiff.comparer import Comparer

engine_one = create_engine('postgresql://user:pass@host:port/db_one')
engine_two = create_engine('postgresql://user:pass@host:port/db_two')
comparer = Comparer(engine_one, engine_two)
result = comparer.compare()
print(result.is_match)

Verify before relying

  • Whether the package handles schema comparison across different database dialects or only same-dialect comparisons.
  • Performance characteristics when comparing large schemas with thousands of tables or complex constraint hierarchies.
  • Whether custom inspectors can be registered at runtime or only via subclassing before package import.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
sqlalchemy
MaintenanceAging 244 days since the last release
Last repo commit
First released
Downloads128,278 / month, #11,714 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating 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 :: DatabaseTopic :: Software Development :: Libraries

Evidence: sqlalchemy_diff-1.1.1-py3-none-any.whl

Tags

Capabilities
database schema comparisonsqlalchemy schema diffcompare database structuresdetect schema changesdatabase migration validationschema drift detectionsqlalchemy schema inspector
Topics
schema-migrationdatabase-testing
PyPI keywords
sqlalchemydiffcompare

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 › “database schema comparison”

  • sqlalchemy-diffCompares database schemas across two SQLAlchemy-connected databases,…
  • migramigra compares PostgreSQL database schemas and generates the SQL…
  • collate-data-diffCompares rows across two SQL databases or datasets to identify…

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

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also migra · schemainspect · collate-data-diff · recursive-diff · daff · atlas-provider-sqlalchemy · pyjson · json-diff · omnibase-compat · ocsf-lib