questdb
QuestDB client library for Python
What it is and what it does
QuestDB is a Python client for the QuestDB time-series database. It implements the QuestDB Wire Protocol (QWP) over WebSocket for pooled connections and queries, plus legacy InfluxDB Line Protocol (ILP) transports over HTTP and TCP for row-level writes. The library supports two API layers: a deployment-level `questdb.connect()` for connection pools and bulk operations, and a connection-level `Sender` for individual row writes and lower-level transport control.
The package depends on numpy and uses compiled Cython and Rust extensions for performance. It requires Python 3.10 or later and supports modern platforms (macOS, Linux with glibc or musl, Windows). Authentication and TLS encryption are built in. The library is actively maintained and production-stable, with recent releases and no known security vulnerabilities.
Use it for:
- Stream individual metric rows (price ticks, sensor readings) to QuestDB via ILP/HTTP or ILP/TCP.
- Query a QuestDB deployment through a pooled connection without managing individual sockets.
- Send time-series data with optional TLS encryption and authentication in regulated or secure environments.
- Ingest numpy arrays as columns in QuestDB tables for scientific or financial data analysis.
- Write time-series data with symbol columns and timestamp precision control.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client library for QuestDB that sends data via the QuestDB Wire Protocol over WebSocket, HTTP, TCP, or UDP, with support for bulk ingestion and row-by-row writes, optional TLS encryption, and authentication.
Yes. The package is actively maintained, production-stable, permissively licensed, and has no known vulnerabilities. Install friction is moderate due to compiled wheels, but binaries are available for Python 3.10 and 3.11 across common platforms. Install it if you need to ingest data into QuestDB from Python with authenticated or encrypted connections.
Install
questdb on PyPI
pip
pip install questdbuv
uv add questdbpoetry
poetry add questdbInstalling questdb
Before you install
Medium install friction due to compiled wheels (Cython and Rust). Wheels are available for Python 3.10 and 3.11 across macOS (x86_64 and ARM64), Linux (glibc and musl), and Windows. Active maintenance with a release 18 days old; repository shows recent commits and stable production status.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes, but no copyleft obligation applies.
Quickstart
pip install questdb
import questdb
from questdb import TimestampNanos
with questdb.connect('ws::addr=localhost:9000;') as db:
with db.sender() as sender:
sender.row('trades', symbols={'symbol': 'ETH-USD'}, columns={'price': 2615.54}, at=TimestampNanos.now())
sender.flush(wait=True)
Requires QuestDB server running and accessible at the configured address; NumPy float64 arrays require QuestDB server >= 9.0.0.
Verify before relying
- Performance characteristics (throughput, latency) for different transport protocols and payload sizes.
- Behavior and error handling when QuestDB server is unavailable or connection drops mid-operation.
- Memory overhead and efficiency when ingesting very large datasets or streaming many rows.
- DataFrame ingestion API details and whether optional dataframe extra is required for bulk loads.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — numpy |
| Maintenance | actively maintained — 18 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 235,051/month — #9,011 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: questdb-5.0.0-cp310-cp310-macosx_10_9_x86_64.whl; questdb-5.0.0-cp310-cp310-macosx_11_0_arm64.whl; questdb-5.0.0-cp310-cp310-manylinux_2_28_aarch64.whl; questdb-5.0.0-cp310-cp310-manylinux_2_28_x86_64.whl; questdb-5.0.0-cp310-cp310-musllinux_1_2_aarch64.whl; questdb-5.0.0-cp310-cp310-musllinux_1_2_x86_64.whl; questdb-5.0.0-cp310-cp310-win32.whl; questdb-5.0.0-cp310-cp310-win_amd64.whl; questdb-5.0.0-cp311-cp311-macosx_10_9_x86_64.whl; questdb-5.0.0-cp311-cp311-macosx_11_0_arm64.whl; questdb-5.0.0-cp311-cp311-manylinux_2_28_aarch64.whl; questdb-5.0.0-cp311-cp311-manylinux_2_28_x86_64.whl; questdb-5.0.0-cp311-cp311-musllinux_1_2_aarch64.whl; questdb-5.0.0-cp311-cp311-musllinux_1_2_x86_64.whl; questdb-5.0.0-cp311-cp311-win32.whl; questdb-5.0.0-cp311-cp311-win_amd64.whl; questdb-5.0.0-cp312-cp312-macosx_10_13_x86_64.whl; questdb-5.0.0-cp312-cp312-macosx_11_0_arm64.whl; questdb-5.0.0-cp312-cp312-manylinux_2_28_aarch64.whl; questdb-5.0.0-cp312-cp312-manylinux_2_28_x86_64.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
influxdbClient library for writing to and querying…
permissive · top 5,000 on PyPI
qh3qh3 is a Python library implementing the QUIC…
permissive · top 5,000 on PyPI
graphytegraphyte sends metrics to a Graphite/Carbon…
permissive · top 15,000 on PyPI
pygelfProvides Python logging handlers that send log…
permissive · top 15,000 on PyPI
mitmproxy-wireguardImplements a user-space WireGuard server that…
permissive · top 5,000 on PyPI
websocket-clientwebsocket-client provides a Python WebSocket…
permissive · top 1,000 on PyPI
influxdb-clientPython client library for querying and writing…
permissive · top 5,000 on PyPI
velbus-aioAn asyncio-based Python library for controlling…
permissive · top 15,000 on PyPI
statshogA Python client for sending metrics to StatsD…
permissive · top 5,000 on PyPI