singlestoredb
Interface to the SingleStoreDB database and workspace management APIs
What it is and what it does
SingleStoreDB Python SDK is a database driver that connects Python applications to SingleStore, a high-performance distributed SQL database optimized for real-time analytics and vector search workloads. It implements the DB-API 2.0 standard, so it integrates with existing Python database code patterns. The SDK supports two connection methods—MySQL protocol on port 3306 or HTTP Data API on port 9000—and includes a C extension for accelerated data reading when available.
Beyond basic SQL execution, the package offers workspace management APIs for programmatic control of SingleStore Cloud deployments, a Pinecone-compatible vector database interface for similarity search, and result formatting in multiple types (tuples, dicts, named tuples, NumPy arrays, Pandas DataFrames, Polars DataFrames, PyArrow Tables). It also supports optional integrations with SQLAlchemy, dbt, and custom user-defined functions, making it suitable for analytics pipelines, vector search applications, and cloud infrastructure automation.
Use it for:
- Connect Python analytics or ETL scripts to SingleStore for real-time data ingestion and querying.
- Build vector similarity search applications using the Pinecone-compatible vector database API.
- Programmatically manage SingleStore Cloud workspaces, clusters, and regions from Python.
- Return query results directly as Pandas or Polars DataFrames for downstream data science workflows.
- Integrate SingleStore with SQLAlchemy-based ORMs or dbt data transformation pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a DB-API 2.0 compatible Python interface to SingleStore, a distributed SQL database, supporting both MySQL protocol and HTTP connections with optional C acceleration for faster data reading.
Yes. Active maintenance, low install friction, no known vulnerabilities, and permissive licensing make it a solid choice. Install it if you need a Python driver for SingleStore or are building vector search or real-time analytics applications on that platform. The optional C extension and multiple result formats add practical value for data-heavy workloads.
Install
singlestoredb on PyPI
pip
pip install singlestoredbuv
uv add singlestoredbpoetry
poetry add singlestoredbInstalling singlestoredb
Before you install
Low friction installation via pure Python wheel. Active maintenance with a release 3 days old; last commit 2026-08-11. Six runtime dependencies are all standard, well-maintained packages. No known vulnerabilities.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
import singlestoredb as s2
conn = s2.connect('user:password@host:3306/db_name')
cur = conn.cursor()
cur.execute('SELECT * FROM table_name')
for row in cur:
print(row)
conn.close()
Requires Python 3.9 or later; C extension acceleration is optional but disabled if system lacks build tools.
Verify before relying
- Performance gain claim ('up to 10x faster') for C extension vs pure Python MySQL connectors needs independent benchmarking.
- Pinecone API compatibility scope and feature parity for vector store operations not detailed in excerpt.
- SQLAlchemy, dbt, and other optional adapter maturity and maintenance status not specified in fact sheet.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — PyJWT, parsimonious, requests, sqlparams, tomli, typing-extensions |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 435,948/month — #6,677 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: singlestoredb-1.17.1-py3-none-any.whl
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
presto-python-clientProvides a Python DBAPI-compatible client to…
permissive · top 5,000 on PyPI
trinoPython client library for Trino, a distributed…
permissive · top 1,000 on PyPI
definite-sdkA Python client for the Definite API that…
permissive · top 15,000 on PyPI
databricks-sql-connectorA Python client library that connects to…
permissive · top 1,000 on PyPI
DBUtilsDBUtils provides pooled, persistent database…
permissive · top 5,000 on PyPI
surrealdbOfficial Python client for SurrealDB,…
unclear · top 15,000 on PyPI
duckdb-engineA SQLAlchemy driver that enables you to use…
permissive · top 5,000 on PyPI
sqlalchemy-databricksProvides a SQLAlchemy dialect that connects to…
permissive · top 15,000 on PyPI
sqlalchemy-jdbcapiSQLAlchemy dialect for JDBC and ODBC database…
permissive · top 15,000 on PyPI
pinotdbProvides Python DB-API and SQLAlchemy dialect…
permissive · top 1,000 on PyPI