Skip to main content

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]'

cd /absolute/path/to/application
laranex-schema-viewer init     # optional: save defaults in pyproject.toml
laranex-schema-viewer build    # finds your models package; writes schema-viewer.json
laranex-schema-viewer serve

With uv, add it to your application instead: uv add --dev 'laranex-schema-viewer[sqlmodel,mcp]', then prefix commands with uv run. The python3 bundled with macOS is 3.9 and is not supported; see installation.

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

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

MIT. See NOTICE for attribution.

Metadata

Release files for laranex-schema-viewer 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for laranex-schema-viewer 0.2.0
File Size Uploaded Provenance
laranex_schema_viewer-0.2.0.tar.gz 98.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for laranex-schema-viewer 0.2.0
File Interpreter ABI Platform
laranex_schema_viewer-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 132.0 kB

Release files / laranex_schema_viewer-0.2.0.tar.gz

Download URL laranex_schema_viewer-0.2.0.tar.gz
Size 98.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bcbc8ec215bfbde8b15c7abc85dd2c841cec4f89ef043bccba5886343ccd7abd
BLAKE2b-256 checksum
How to use checksums
e49d52a336ac003c7e9f1c8be83da31e414af05afae590d538c529724b4875e6
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 log

Release files / laranex_schema_viewer-0.2.0-py3-none-any.whl

Download URL laranex_schema_viewer-0.2.0-py3-none-any.whl
Size 33.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de5a827ffc5628e7d357c54da8a582bb339186a8c60e09068f1d7407296be3dd
BLAKE2b-256 checksum
How to use checksums
eb4c36e114dd5f9a58dbc77986b39ea974ef14f596a3de26a220d31b972436d8
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 log

Security for laranex-schema-viewer 0.2.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.

Select from 2 files

Attestation for laranex_schema_viewer-0.2.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page