🐍 UltSQL for Python Developers
Zero Dart / Zero Setup Required!
If you are a Python developer, you DO NOT need Dart or Flutter installed on your machine. Everything works using standard Python code and tools (pip).
🚀 Quickstart Guide for Python Developers
Step 1: Install Package
pip install ultsql
💻 Install the ultsql CLI (1-Line Auto-Installer)
If you want to run the standalone ultsql server daemon or interactive CLI shell directly from your terminal:
- Windows (PowerShell):
iwr -useb https://raw.githubusercontent.com/ompatel3158/ULTSQL/main/install.ps1 | iex
- Linux & macOS (Bash):
curl -sSL https://raw.githubusercontent.com/ompatel3158/ULTSQL/main/install.sh | bash
After running the installer, open a new terminal and type ultsql --help or ultsql server.
Step 2: Use in Python
Method A: Using the UltSQL Python Client (REST API)
from ultsql import UltSQLClient
# Connect to ULTSQL
db = UltSQLClient("http://localhost:8080")
# 1. High-speed batch ingestion (slotted pages & B+Tree indexed)
db.insert_batch("users", [
{"id": 1, "name": "Alice", "score": 98.5},
{"id": 2, "name": "Bob", "score": 91.2},
{"id": 3, "name": "Charlie", "score": 87.0},
])
# 2. Single record insert
db.insert("users", {"id": 4, "name": "Diana", "score": 95.0})
# 3. Query records
users = db.query("users")
print("User rows:", users["rows"])
# 4. Truncate table
db.truncate("users")
Method B: Using Standard PostgreSQL Drivers (psycopg2 / asyncpg)
Because ULTSQL speaks the PostgreSQL Wire Protocol, you can use standard Python database libraries:
pip install psycopg2-binary
import psycopg2
# Connect to ULTSQL PostgreSQL wire port (default: 5432)
conn = psycopg2.connect("host=localhost port=5432 user=admin password=admin dbname=ultsql_db")
cur = conn.cursor()
cur.execute("SELECT * FROM users WHERE score >= %s", (90.0,))
rows = cur.fetchall()
print("Postgres Client Rows:", rows)
❓ Frequently Asked Questions for Python Users
- Do I need to install Dart or Flutter?
No! Python developers only need Python andpip. - How do I run the UltSQL database?
Use the 1-line auto-installer to install the standaloneultsqlexecutable on Windows, Linux, or macOS. Then simply runultsql serveto start the daemon, or useultsql import data.csv usersfor direct batch ingestion.
Metadata
Release files for ultsql 1.0.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ultsql-1.0.21.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ultsql-1.0.21-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.5 kB
Release files / ultsql-1.0.21.tar.gz
| Download URL | ultsql-1.0.21.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
767ee06ed938d7d607aece48f3d69cbbf1aa5c75c2c20f7634efe59193aa9e5d
|
|
BLAKE2b-256 checksum How to use checksums |
910595eca715e05f0b1a9fb4139ebde58e19d42d6a8e7d4b6ddcdb77fa9f9f01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / ultsql-1.0.21-py3-none-any.whl
| Download URL | ultsql-1.0.21-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
087da2b540c642a10b4586d40bb3f58a13c1b4c6b9d8e48acdfad989c2af871a
|
|
BLAKE2b-256 checksum How to use checksums |
283984bf0b87af817ec9affcb324e331bd914b148b13f3260aa5887620f88bb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|