SQLite Schema Doc opens a local database in read-only mode and generates a portable HTML data dictionary for tables and views, including columns, indexes, and foreign-key relationships.
- 🗃️ List tables and views with their SQL definitions
- 🧱 Document column types, primary keys, and nullability
- 🔗 Show indexes and foreign-key relationships
- 🔒 Open the database read-only; never modify schema or data
No hosted demo is provided. Run the project locally using the quick-start command.
Requires Python 3.10 or newer.
python main.py ./example.db --output schema-report.htmlRun checks with python -m unittest discover -s tests -v.
- Python standard library
argparseCLI andunittest- Read-only inspection by default
.
├── .github/workflows/ci.yml
├── assets/mark.svg
├── tests/test_main.py
├── main.py
├── pyproject.toml
└── README.md
- Add more edge-case fixtures
- Improve machine-readable output
- Keep the core workflow lightweight and local-first
Issues and focused pull requests are welcome. Add regression tests for parser and reporting changes.
MIT License. See LICENSE.