cubrid-cookbook-python¶
Runnable Python examples and production-shaped application templates for CUBRID — from a five-minute first query to natural-language database access, everything installs from PyPI.
- 68 runnable examples across pycubrid, SQLAlchemy, pandas, Alembic, JSON, isolation levels, and migration
- 45 of them are CI-verified goldens —
make verifycompares exact stdout againstexpected/*.expectedfiles on a CUBRID 11.2 + 11.4 job matrix - 6 application templates: FastAPI service, Flask app, Django app, Streamlit dashboard, Celery async worker, pandas batch ETL — the dashboard is a one-command
docker compose updemo
The three paths¶
| Path | Installs | Start |
|---|---|---|
| Driver — first query in 5 minutes | pip install pycubrid |
Quick Start |
| ORM & application templates | pip install sqlalchemy-cubrid |
Quick Start |
| Natural language over the database | uvx cubrid-mcp-server |
Quick Start |
What's inside¶
| Area | Examples | Verified by |
|---|---|---|
| pycubrid fundamentals | 16 | make verify goldens (CI, CUBRID 11.2 + 11.4) |
| SQLAlchemy fundamentals | 7 | make verify goldens (CI) |
| pandas fundamentals | 6 | make verify goldens (CI) |
| Flask / FastAPI templates | 11 + 12 | pytest suites (CI on main + nightly, CUBRID 11.2 + 11.4) |
| Streamlit / Django templates | 5 + 1 | manual runs (dashboard ships a compose demo) |
| Celery / batch-ETL templates | 1 + 5 | manual runs (ETL goldens in expected/) |
| Async · Alembic · JSON · isolation | 4 | make verify goldens (CI) |
| Migration, performance, pitfalls | topic guides | docs |
Numbers and status per SUPPORT_MATRIX.md.
Try the one-command dashboard¶
Ecosystem¶
- pycubrid — pure-Python DB-API 2.0 driver (sync + asyncio)
- sqlalchemy-cubrid — SQLAlchemy 2.0–2.2 dialect
- cubrid-mcp-server — MCP server for LLM clients
MIT — see LICENSE.