Skip to main content

Offline SQLite schema exporter for LLM context. Stdlib only, no network at runtime.

Project description

SQLiteMD

Export a SQLite schema to Markdown for LLM context -- offline, no dependencies. Python 3.8+, stdlib only (sqlite3). No network at runtime.

Usage

python3 sqlitemd.py export my.db -o schema.md
python3 sqlitemd.py schema my.db -o schema.json

CRON example

# Weekly schema doc for a local analytics db
0 3 * * 0 cd /path/to/sqlitemd && python3 sqlitemd.py export /data/app.db -o /backup/schema.md

Limitations

Read-only introspection. Does not migrate data. Complex attached databases are not supported.

Free and open source (MIT license, see LICENSE). No telemetry, no network calls, no nagware.

Part of the PlainKitBin toolset -- small, offline, single-file utilities with automated tests and a provenance record for every release. If you find this useful, check out PlainKitBin DirSnapshot.

Provided as-is with no individual support.


Built with AI assistance and automatically tested before release; released under human oversight.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plainkitbin_sqlitemd-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plainkitbin_sqlitemd-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file plainkitbin_sqlitemd-1.0.0.tar.gz.

File metadata

  • Download URL: plainkitbin_sqlitemd-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for plainkitbin_sqlitemd-1.0.0.tar.gz
Algorithm Hash digest
SHA256 79f741700b576e8ca2daeae3da5e4a003252a9ef0ac17363fab7984abd2ad8d5
MD5 efe2c740491cbfec5871fe7efe661b6d
BLAKE2b-256 29219e1136a496924219c22505c1a2719d46dda2976ec13298b67987282b1809

See more details on using hashes here.

File details

Details for the file plainkitbin_sqlitemd-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for plainkitbin_sqlitemd-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf33592ec507d14c7937f6fc8e09b3f17748eda79e4ab4ca35c2cc172a1559b2
MD5 502adcd2f9675225b944d104b8079efb
BLAKE2b-256 04f29df50d507f2d2efefadf6b28f47e16cf94477f7c1a09017e726b38a8d442

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page