Skip to main content

SchemaLens-Exillar — Quick Start Guide

CLI tool that connects to a database (PostgreSQL, MySQL, SQL Server, Snowflake, Databricks, or MongoDB), reads the schema, and uses an LLM to generate documentation automatically. No frontend. No manual input beyond a one-time setup wizard.

Requirements

  1. Python 3.11 or newer
  2. Internet access — to install the package, connect to your database, and call the LLM via OpenRouter
  3. Your database credentials (host, username, password, etc.)
  4. An OpenRouter API key (openrouter.ai) — you're billed by OpenRouter directly for usage, regardless of whether you pick GPT or Gemini in the wizard
  5. SQL Server only: an ODBC Driver for SQL Server installed on your machine (not installed by pip — download here)
  6. Linux only, for diagram PNG export: libcairo2 system package (sudo apt install libcairo2)

Step-by-step

1. Create a virtual environment (recommended and required)

Don't install directly into your system Python — always use a virtual environment to avoid conflicts with other packages.

python -m venv venv

Activate it:

  • Windows: venv\Scripts\activate
  • Mac/Linux: source venv/bin/activate

2. Install (pick the extra matching your database)

pip install SchemaLens-Exillar[postgres]

Options: [postgres], [mysql], [sqlserver], [snowflake], [databricks], [mongodb], or [all] for every driver.

3. Run

schemalens-exillar

4. Answer the wizard's questions

  • Pick your database type (enter the number)
  • Choose to paste a full connection string, or enter host/port/username/password one by one
  • (Optional) Type specific schema names to limit scope (comma-separated, e.g. public,sales), or press Enter to include all schemas
  • Choose which model to use: GPT or Gemini
  • Enter your OpenRouter API key — never saved, asked fresh every run
  • Choose where to save the output (press Enter for current folder)

5. Wait for it to finish

You'll see a simple progress line per batch of tables being processed.

6. Open your files

Three files are created in the folder you chose:

  • er_diagram_<yourdatabase>.html — interactive diagram, open in any browser
  • schema_documentation_<yourdatabase>.xlsx — Excel workbook with full column descriptions
  • Suggestion_Report_<yourdatabase>.docx — suggested keys/relationships for review

Run it again anytime — older files are never overwritten, each run adds a number + timestamp.

Each new session, reactivate the venv first (venv\Scripts\activate / source venv/bin/activate) before running schemalens-exillar again.

Note: nothing is ever saved to disk — no .env file, no saved password, no saved API key. You'll enter your credentials fresh every time you run it.

License

MIT — see LICENSE.

Download files

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

Source Distribution

schemalens_exillar-0.2.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

schemalens_exillar-0.2.0-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file schemalens_exillar-0.2.0.tar.gz.

File metadata

  • Download URL: schemalens_exillar-0.2.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for schemalens_exillar-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d5e7c913ae7fb667ddaf1aee00e8e621d910e0911c506846fd0b3aeeaf417446
MD5 a8e29720d8578a3025ef8bf0bb9972f2
BLAKE2b-256 515fe4b47bbc6ae21e9433e1a768c9e4161a4e75ab5bdf4af62155bf91f73509

See more details on using hashes here.

File details

Details for the file schemalens_exillar-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for schemalens_exillar-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb44dfc15def27a436d1f2a982dc5807f65b6bb532f90015a5633f79dfb364ba
MD5 c51175237d026051ccbd18b697a96aef
BLAKE2b-256 10ce3cc8139fae4cfc25c581bab681c31853a2f6e33aa00f36c8ff1febc97a20

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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