sqlalchemy-json
JSON type with nested change tracking for SQLAlchemy
Decision gist · record as of 2026-08-14
Yes, if you need automatic change tracking for JSON columns in SQLAlchemy. The package is stable and has no known vulnerabilities. However, maintenance is dormant—last release was over two years ago—so verify compatibility with your specific SQLAlchemy and Python versions before adopting it in new projects. For existing codebases already using it, the low install friction and permissive license make it safe to keep.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction; depends only on sqlalchemy.
- Maintenance is dormant—last release was 1080 days ago—but the repository is not archived and the package remains stable for its scope.
License · maintenance · safety
BSD (permissive) — BSD license (permissive); you may use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
last release 2023-08-30 (1080 days) · last repo commit 2023-10-30 · 195 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,805,778 downloads/mo, #3,536 on PyPI
Alternatives
Verify before relying
pip install sqlalchemy-json
from sqlalchemy import Column, Text, create_engine
from sqlalchemy.orm import declarative_base
from sqlalchemy_json import MutableJson
Base = declarative_base()
class Author(Base):
__tablename__ = 'authors'
name = Column(Text)
handles = Column(MutableJson)
# Changes to handles are tracked and persisted on commit
author.handles['twitter'] = '@NewHandle'
session.commit()- Current compatibility with the latest SQLAlchemy versions (last release was August 2023)
- Whether nested tracking works correctly with all modern Python versions supported by current SQLAlchemy
What it is and what it does
sqlalchemy-json extends SQLAlchemy with two mutation-tracked JSON column types: MutableJson for top-level changes and NestedMutableJson for changes anywhere in nested objects or arrays. When you modify a JSON column value in memory, the package detects that change and ensures SQLAlchemy generates the correct UPDATE statement on commit, rather than requiring you to manually flag the column as dirty or reassign the entire value.
The package wraps SQLAlchemy's native JSON type and provides custom tracking containers (dicts and lists) that bubble modifications up to the column level. You can also use the mutable_json_type utility to customize the backing database type—for example, to use PostgreSQL's JSONB or to serialize to a non-JSON format. It has one runtime dependency: sqlalchemy.
Use it for
- Store and modify social media handles or metadata objects in a single JSON column without reassigning the entire column on each edit.
- Track reference counts or nested statistics that change frequently without triggering full-column rewrites.
- Use PostgreSQL JSONB or other database-specific JSON types while maintaining change-tracking behavior.
- Serialize and track changes to non-JSON formats (e.g., custom string-encoded data) by providing a custom TypeDecorator.
- Persist top-level or deeply nested list modifications (e.g., tags, keywords) as a single atomic column.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need automatic change tracking for JSON columns in SQLAlchemy.
The package is stable and has no known vulnerabilities. However, maintenance is dormant—last release was over two years ago—so verify compatibility with your specific SQLAlchemy and Python versions before adopting it in new projects. For existing codebases already using it, the low install friction and permissive license make it safe to keep.
Install
sqlalchemy-json on PyPI
Before you install
Low install friction; depends only on sqlalchemy. Maintenance is dormant—last release was 1080 days ago—but the repository is not archived and the package remains stable for its scope.
License in practice
BSD license (permissive); you may use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install sqlalchemy-json
from sqlalchemy import Column, Text, create_engine
from sqlalchemy.orm import declarative_base
from sqlalchemy_json import MutableJson
Base = declarative_base()
class Author(Base):
__tablename__ = 'authors'
name = Column(Text)
handles = Column(MutableJson)
# Changes to handles are tracked and persisted on commit
author.handles['twitter'] = '@NewHandle'
session.commit()
Verify before relying
- Current compatibility with the latest SQLAlchemy versions (last release was August 2023)
- Whether nested tracking works correctly with all modern Python versions supported by current SQLAlchemy
Package facts
| License | BSD permissive |
| Python support | Supports the current Python release >= 3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesqlalchemy |
| Maintenance | Dormant 1,080 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,805,778 / month, #3,536 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Database |
Evidence: sqlalchemy_json-0.7.0-py3-none-any.whl
Tags
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 json mutation tracking”
- sqlalchemy-jsonProvides mutation-tracked JSON column types for SQLAlchemy that…
- jsonpatchApplies JSON Patches according to RFC 6902, allowing you to describe…
- warlockWarlock creates self-validating Python objects using JSON schema,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
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.
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.
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.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
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.
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.
See also sqlalchemy-serializer · SQLAlchemy-Continuum · json-source-map · historydict · SQLAlchemy-JSONField · sqlalchemy-easy-softdelete · sqlalchemy-mixins · Flask-SQLAlchemy · SQLAlchemy · sqlalchemy-repr