pycubrid¶
Pure Python DB-API 2.0 driver for CUBRID database with no C extensions.
Key features¶
- Full PEP 249 (DB-API 2.0) compliant connection and cursor interface
- Direct CUBRID CAS wire protocol implementation in pure Python
- Typed package support (
py.typed) for modern IDEs and static analysis - LOB support for CLOB and BLOB operations
Quick install¶
Minimal example¶
import pycubrid
conn = pycubrid.connect(host="localhost", port=33000, database="testdb", user="dba", password="")
cur = conn.cursor()
cur.execute("SELECT 1")
print(cur.fetchone())
conn.close()
Documentation¶
Project links¶
Ecosystem¶
Part of the cubrid-lab Python ecosystem:
- pycubrid — Pure-Python DB-API 2.0 driver for CUBRID (sync + native asyncio)
- sqlalchemy-cubrid — SQLAlchemy 2.0–2.2 dialect + Alembic
- cubrid-cookbook-python — 68 runnable examples and application templates
- cubrid-mcp-server — MCP server — natural-language access for LLM clients