Metadata-Version: 2.4
Name: ai-sqlx
Version: 0.1.2
Summary: AI SQL generator — Turn natural language into SQL queries. Supports MySQL, PostgreSQL, SQLite.
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: typer>=0.9
Requires-Dist: rich>=13

# AI SQL

Turn natural language into SQL queries. Supports MySQL, PostgreSQL, and SQLite.

## Installation

```bash
pip install ai-sqlx
```

## Usage

```bash
# Generate SQL from natural language
ai-sqlx "find users who registered in the last 7 days"

# Specify database dialect
ai-sqlx -d postgres "total orders per customer"

# With schema context
ai-sqlx -s "products(id,name,price,stock)" "items with low inventory"

# Explain the generated SQL
ai-sqlx -e "count products by category"
```

## Configuration

```bash
ai-sqlx --config
```

Requires OpenAI API key.

## Pricing

| Feature | Free | Pro ($7 USDT) |
|---------|------|----------------|
| SQL generation | 1/day | Unlimited |
| Schema context | ✅ | ✅ |
| Dialect support | ✅ | ✅ |
| SQL explanation | ✅ | ✅ |

Payment: USDT (ERC20) — `0xafc32581a9e4ea30aa03cb8ef5879c2366d35f46`

## License

MIT
