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.4.tar.gz (83.0 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.4-py3-none-any.whl (98.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for urimai-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2afd3de55c1ed0093e35dfbbb06b1583668a31e07df79834fcfb371671330f39
MD5 88e02ab5a9d13cc70d63beebc38c80b3
BLAKE2b-256 423f559610da2d58af23ad115db3fea3424bd3c8c95a998ddd1b8a7bf58cd16d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: urimai-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 98.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.14

File hashes

Hashes for urimai-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8c6180f618e808ee31832ea256e28c584c3ed5599badfaeb0be3a21b0784aadd
MD5 425cbdb09d4a4f9b2a472edede2cfee6
BLAKE2b-256 24d465f1fb6f607c92745ad5a4e7e304ff98efb3e0d98a81d25b28fd27c96bbc

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