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
- Python 3.11 or newer
- Internet access — to install the package, connect to your database, and call the LLM
- Your database credentials (host, username, password, etc.)
- An API key for the model you plan to use: if you pick GPT in the wizard, either an OpenAI key (platform.openai.com) or an OpenRouter key (openrouter.ai) works — detected automatically; if you pick Gemini, you need an OpenRouter key
- SQL Server only: an ODBC Driver for SQL Server installed on your machine (not installed by pip — download here)
- Linux only, for diagram PNG export:
libcairo2system 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 API key (OpenAI or OpenRouter for GPT, OpenRouter for Gemini) — 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 browserschema_documentation_<yourdatabase>.xlsx— Excel workbook with full column descriptionsSuggestion_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.
Metadata
Release files for SchemaLens-Exillar 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| schemalens_exillar-0.2.1.tar.gz | 1.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| schemalens_exillar-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.1 MB
Release files / schemalens_exillar-0.2.1.tar.gz
| Download URL | schemalens_exillar-0.2.1.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3fb0fe74049c19285117f75e8a204cb67721c5174ca5d73ce27c6c0f2f5533e
|
|
BLAKE2b-256 checksum How to use checksums |
4a2dff8d9b1d888225a182bcec74ce130aa020915e32f88b70e7d1ae0ff00ebd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / schemalens_exillar-0.2.1-py3-none-any.whl
| Download URL | schemalens_exillar-0.2.1-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e898ac1aa98acdf35ed07476bc975725e55e1761ce23bb26128b71a14ac7097c
|
|
BLAKE2b-256 checksum How to use checksums |
7d0db6a25b805e072390b42c7068c89927b620b270778cf8e929d0103836ebc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|