Skip to main content

A Python library that bridges the gap between non-technical users and complex database operations through natural language processing and LLMs

Project description

HyperXQL

Natural Language to SQL Database Operations

HyperXQL is a powerful tool that enables users to interact with databases using natural language. It leverages large language models to generate and execute SQL queries based on your instructions, without requiring you to write SQL code directly.

HyperXQL Logo

Features

  • 🔄 Convert natural language to SQL
  • 🗄️ Support for SQLite, PostgreSQL, and MySQL
  • 🤖 Intelligent AI agent for database operations
  • 🔍 Database schema analysis and visualization
  • 📊 Interactive command-line interface
  • 🌐 Web interface for query execution
  • 🛠️ Automatic error detection and recovery

Installation

pip install hyperxql

Quick Start

  1. Initialize HyperXQL:
hyperxql init

This will guide you through setting up your configuration and database connection.

  1. Use the agent to perform database operations:
hyperxql agent "create a users table with columns for id, name, email and phone number"
  1. Query your database:
hyperxql query "show me all users who signed up in the last month"

Database Agent

The intelligent database agent can help you:

  • Create tables and schema
  • Insert, update, and delete data
  • Generate sample data
  • Query and analyze your database
  • Fix errors and handle edge cases

The agent thinks aloud, explains its reasoning, and shows you exactly what it's doing.

Web Interface

Start the web interface with:

hyperxql web

Then open your browser to http://localhost:5000

Requirements

  • Python 3.8+
  • SQLAlchemy-supported database (SQLite, PostgreSQL, MySQL)
  • API key for OpenAI or Together AI (configurable)

License

MIT 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

hyperxql-2.0.0.tar.gz (59.2 kB view details)

Uploaded Source

Built Distribution

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

hyperxql-2.0.0-py2.py3-none-any.whl (51.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file hyperxql-2.0.0.tar.gz.

File metadata

  • Download URL: hyperxql-2.0.0.tar.gz
  • Upload date:
  • Size: 59.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hyperxql-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0063c6e48f88d0ccb26f111e998167056d071970b89c341dece66c506caeeaa6
MD5 3cabc5aa7c44173e3b075482ebc52290
BLAKE2b-256 7ae785a744a6a63996a974ca54e81f4e3c7de85aa10b7caebff60d5c3b7d0a87

See more details on using hashes here.

File details

Details for the file hyperxql-2.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: hyperxql-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 51.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hyperxql-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 49f630fcb74ca4e1e727ed480ba117d41cfbbba24860829232fa2a26b1cd0787
MD5 dfadb38ac108b75a922a7d3c742431f3
BLAKE2b-256 f71e92541ef76a139d5052f1e3037c365ca7189765c88534e83b447a7981e575

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