Laranex Schema Viewer
Framework-independent schema snapshots, an interactive ERD, and read-only MCP tools for SQLAlchemy 2.x and SQLModel. Inspired by Laravel Schema Viewer.
Build once from model definitions, then browse or query the saved JSON without starting your application or accessing its database. Foreign keys and declared ORM relationships remain separate throughout extraction, viewing, and MCP queries.
Quick start
Requires Python 3.10+. Install from PyPI in an isolated environment:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install 'laranex-schema-viewer[sqlmodel,mcp]'
laranex-schema-viewer build \
--project-root /absolute/path/to/application \
--module myapp.models --recursive \
--output schema-viewer.json
laranex-schema-viewer serve --snapshot schema-viewer.json
Open http://127.0.0.1:8765 to search tables, inspect indexes and relationships, and navigate the graph. The viewer needs no Node build or web framework.
Build only trusted modules: imports and mapper callbacks execute application code. Snapshots describe declared metadata, not deployed database state; review them before sharing.
Documentation
- Installation and quick start
- SQLAlchemy, SQLModel, and model discovery
- CLI reference and interactive viewer
- MCP for Codex and Claude Code
- Agent skills and troubleshooting
Install agent skills with npx skills add laranex/python-schema-viewer; see the skills guide.
Contributing
See AGENTS.md for architecture, development commands, testing, and documentation maintenance. Validation and skill verification describe test coverage and limitations. Report vulnerabilities as described in SECURITY.md.
Documentation Markdown lives in docs/; VitePress tooling lives in .gh-page/:
cd .gh-page
npm install
npm run dev -- --port 5173 --strictPort
Preview at http://127.0.0.1:5173/python-schema-viewer/.
License
Metadata
Release files for laranex-schema-viewer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| laranex_schema_viewer-0.1.0.tar.gz | 93.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| laranex_schema_viewer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 125.0 kB
Release files / laranex_schema_viewer-0.1.0.tar.gz
| Download URL | laranex_schema_viewer-0.1.0.tar.gz |
|---|---|
| Size | 93.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97cc2dd08bfe726e5c86e7a182e266f5f4ff09e9a6dc486ce540ac475bfe8c2d
|
|
BLAKE2b-256 checksum How to use checksums |
7ff0974fe720ffed1d11a146cac93febc02f5cb810bdee69d5605688230f24f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logRelease files / laranex_schema_viewer-0.1.0-py3-none-any.whl
| Download URL | laranex_schema_viewer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 31.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5215a1948f065a42e5812f7c11faa72fec1278c4406c38bb04f30ce6b4871564
|
|
BLAKE2b-256 checksum How to use checksums |
466d1c25428c7c3273a6d06f594614f7e6c13ea97b42a1b7f9eccff2d4c6ca24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logSecurity for laranex-schema-viewer 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for laranex_schema_viewer-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.