sqlalchemy-repr
Automatically generates pretty repr of a SQLAlchemy model.
Decision gist · record as of 2026-08-14
No—install friction is high due to dormancy (last release October 2022), and the license is unclear, creating legal risk. The package solves a minor problem (repr formatting) that modern SQLAlchemy and Python debugging tools often handle adequately. Only consider it if you have an existing codebase already using it and need to maintain it; do not adopt it in new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- High install friction: the package has no runtime dependencies but is marked as dormant (last release 2022-10-20, 1394 days old).
- Maintenance status suggests limited ongoing support.
License · maintenance · safety
(unclear) — License treatment is unclear—no SPDX identifier or raw license text is available. Verify the actual license before adopting in a commercial or copyleft-sensitive context.
last release 2022-10-20 (1394 days) · last repo commit 2024-09-03 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 107,775 downloads/mo, #12,596 on PyPI
Alternatives
Verify before relying
pip install sqlalchemy-repr
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy_repr import RepresentableBase
Base = declarative_base(cls=RepresentableBase)
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
name = Column(Unicode(255))
user = User(name='example')
print(user) # Automatic repr output- Actual license text or SPDX identifier—license_treatment is 'unclear' and no raw license is provided.
- Compatibility with recent SQLAlchemy versions (1.4+, 2.0+)—last release was 2022-10-20.
- Whether the package works with modern Python 3.10+ in practice despite classifier claims.
What it is and what it does
sqlalchemy-repr is a mixin library that automatically generates readable string representations of SQLAlchemy model instances. It provides two base classes: RepresentableBase for compact single-line repr output, and PrettyRepresentableBase for indented multi-line formatting. You use it by passing one of these classes to declarative_base() when defining your SQLAlchemy models, and then print() or repr() on model instances will display their column values in a formatted way instead of the default object address.
The package has no runtime dependencies and is lightweight, but it is dormant—the last release was in October 2022, over a year ago. It was originally released in 2016 and supports Python 2.7 through 3.10 according to its classifiers, though real-world compatibility with current SQLAlchemy and Python versions is unverified. The license is unclear, which is a significant risk for adoption.
Use it for
- Debug SQLAlchemy model instances during development by printing readable column data instead of object addresses.
- Log model state in application logs with compact or pretty-printed representations for troubleshooting.
- Display model objects in REPL sessions or test output for easier inspection of database records.
- Generate human-friendly string output for model instances in error messages or validation reports.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No—install friction is high due to dormancy (last release October 2022), and the license is unclear, creating legal risk.
The package solves a minor problem (repr formatting) that modern SQLAlchemy and Python debugging tools often handle adequately. Only consider it if you have an existing codebase already using it and need to maintain it; do not adopt it in new projects.
Install
sqlalchemy-repr on PyPI
Before you install
High install friction: the package has no runtime dependencies but is marked as dormant (last release 2022-10-20, 1394 days old). Maintenance status suggests limited ongoing support.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available. Verify the actual license before adopting in a commercial or copyleft-sensitive context.
Quickstart
pip install sqlalchemy-repr
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy_repr import RepresentableBase
Base = declarative_base(cls=RepresentableBase)
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
name = Column(Unicode(255))
user = User(name='example')
print(user) # Automatic repr output
Verify before relying
- Actual license text or SPDX identifier—license_treatment is 'unclear' and no raw license is provided.
- Compatibility with recent SQLAlchemy versions (1.4+, 2.0+)—last release was 2022-10-20.
- Whether the package works with modern Python 3.10+ in practice despite classifier claims.
Package facts
| License | Not declared unclear |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Dormant 1,394 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 107,775 / month, #12,596 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Database :: Front-Ends |
Evidence: sqlalchemy-repr-0.1.0.tar.gz
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 model repr”
- sqlalchemy-reprAdds automatic, human-readable repr() output to SQLAlchemy model…
- sqlalchemy-mixinsProvides Active Record-style mixins for SQLAlchemy ORM, enabling…
- lovely-tensorsMonkey-patches PyTorch tensors to display human-readable summaries…
Give your agent the search over MCP, or paste the wish link into any chat.
More Front-Ends packages
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.
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.
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.
A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.
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.
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.
See also SQLAlchemy-Continuum · sqladmin · sqlalchemy-easy-softdelete · sqlacodegen · marshmallow-sqlalchemy · databricks-sqlalchemy · sqlalchemy-spanner · duckdb-engine · cheap-repr · renew