Skip to main content

Laranex Schema Viewer

Framework-independent schema snapshots, an interactive ERD, and read-only MCP tools for SQLAlchemy 2.x, SQLModel, Django, Tortoise ORM, and Peewee. 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

Replace sqlmodel with your ORM's extra: sqlalchemy, django, tortoise, or peewee. In a Django project, build reads the settings module from manage.py.

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. Release notes are in the changelog.

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

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.3.1
File Size Uploaded Provenance
laranex_schema_viewer-0.3.1.tar.gz 124.9 kB With provenance Details

Built distribution (wheel)

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

Total release size: 177.1 kB

Release files / laranex_schema_viewer-0.3.1.tar.gz

Download URL laranex_schema_viewer-0.3.1.tar.gz
Size 124.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1fd18aa4660061225ca800eaa67008662032e7d36d41300fe66c0654d5bc4a79
BLAKE2b-256 checksum
How to use checksums
c1ed7a2a64d45800f6e4244b6dce7174344c080f821af0c39a9d30bcaf343e15
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 17, 2026.

Transparency log

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

Download URL laranex_schema_viewer-0.3.1-py3-none-any.whl
Size 52.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5af759f7eb1355893f3ab7da4e52340f17662cf6087a02d13255403c3771884
BLAKE2b-256 checksum
How to use checksums
ce31dab0ae7539fc241504a7794d12fa2a4074ef1fcf8fc4c004443eeed95298
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 17, 2026.

Transparency log

Security for laranex-schema-viewer 0.3.1

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.3.1.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 17, 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