AI-powered SQL answer engine - ask questions about your databases
Project description
urimai
AI-powered SQL answer engine — ask questions about your databases using AI.
Installation
# From PyPI
pip install urimai
# From source
git clone https://github.com/shivakharbanda/urimAI
cd urimAI
uv sync
Quick Start
urim setup # First-time config wizard
urim init ./chinook.db # Register a database
urim chat chinook # Start chatting
Commands
| Command | Description |
|---|---|
urim setup |
Run first-time setup wizard (provider, API key, name) |
urim init <path> |
Register a SQLite database or CSV file |
urim list |
List all registered databases |
urim chat <db_name> |
Start interactive chat session |
urim sync <db_name> |
Re-sync database schema metadata |
urim config [key] [value] |
View or modify settings |
urim export <db_name> |
Export data dictionary (xlsx/markdown) |
urim setup
Run the first-time setup wizard to configure your AI provider, API key, and display name.
urim init <path>
Register a SQLite database or CSV file. CSV files are automatically converted to SQLite with LLM-powered schema inference.
urim init ./my_database.db
urim init ./data.csv --name my_data --table-name sales --delimiter "," --encoding utf-8
| Option | Description |
|---|---|
--name |
Custom name for the database (default: filename) |
--table-name |
Table name for CSV import (default: LLM-suggested) |
--delimiter |
CSV delimiter character (default: ,) |
--encoding |
CSV file encoding (default: utf-8) |
urim list
List all registered databases.
urim list
urim chat <db_name>
Start an interactive chat session with a registered database.
urim chat chinook
urim sync <db_name>
Re-sync schema metadata for a registered database. Useful after the source data changes.
urim sync chinook
urim config [key] [value]
View or modify configuration settings.
urim config # Show all settings
urim config provider.default openai # Set default provider
urim config --reset # Reset to defaults
urim config --path # Show directory paths
| Option | Description |
|---|---|
--reset |
Reset config to defaults |
--path |
Show config/data directory paths |
| (no args) | Show all current settings |
urim export <db_name>
Export data dictionary for a registered database.
urim export chinook
urim export chinook -f markdown -o chinook_dict.md
urim export chinook --include-sample-data
| Option | Description |
|---|---|
--format / -f |
Output format: xlsx or markdown (default: xlsx) |
--output / -o |
Output file path |
--include-sample-data |
Include sample data rows (default: off) |
--include-profile |
Include column profile statistics (default: on) |
--include-quality |
Include quality report data (default: on) |
Global option
| Option | Description |
|---|---|
--model <provider> |
Override the default AI provider for a single command |
Configuration
- Config file:
~/.urimai/config.toml - API keys: stored in the system keyring, or set via environment variables (
GOOGLE_API_KEY,OPENAI_API_KEY) - Supported providers: Google Gemini, OpenAI
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file urimai-0.1.3.tar.gz.
File metadata
- Download URL: urimai-0.1.3.tar.gz
- Upload date:
- Size: 82.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
969699d177baf69f67b1dcdc1c9080d415ec6c1b1b883182f63ee4a468b1f942
|
|
| MD5 |
492e523b2baff16a3b1fd12a3f723693
|
|
| BLAKE2b-256 |
0dece6e791b5e1cff7612d5c5ad663ba374456e2b084ae006a8a3066b7143088
|
File details
Details for the file urimai-0.1.3-py3-none-any.whl.
File metadata
- Download URL: urimai-0.1.3-py3-none-any.whl
- Upload date:
- Size: 98.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a52f05b849354e047d1bddd63099065a0a228b643a54714c1173b0ad2cfd4a2
|
|
| MD5 |
dec61ba97169931fe84cb084ad0e094b
|
|
| BLAKE2b-256 |
917bfb06b13377e13c1ae5fbbb1110cf5180b3a0fe9e3a08e902fd13b15ddf64
|