Skip to main content

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

Elastic License 2.0 (ELv2)

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

urimai-0.1.2.tar.gz (82.8 kB view details)

Uploaded Source

Built Distribution

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

urimai-0.1.2-py3-none-any.whl (98.4 kB view details)

Uploaded Python 3

File details

Details for the file urimai-0.1.2.tar.gz.

File metadata

  • Download URL: urimai-0.1.2.tar.gz
  • Upload date:
  • Size: 82.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.14

File hashes

Hashes for urimai-0.1.2.tar.gz
Algorithm Hash digest
SHA256 679513826a5d18b30efbf8ac696962d6baae0a8a29353fb69ea49b189b42c58a
MD5 8ff3d474f0217d3a165be57489172383
BLAKE2b-256 d171fdf3ea353059adf3b273a5adf7b71a45a03006bbb69c05cbd064ccd4bdf3

See more details on using hashes here.

File details

Details for the file urimai-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: urimai-0.1.2-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

Hashes for urimai-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aad8853b029e8624d6269773aff6f06f4752bb6d21d6529b11da719fb4d56dc0
MD5 5eba2a885fe93ac61aa588418f4df6fc
BLAKE2b-256 e2a7353a27ce02f3cc2f6755842c980d323add161dc48be6531fa48fe0d2603a

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