Skip to Content
Python SDK

Feature status

What the Python SDK supports today compared with TypeScript.

The Python SDK is in beta. This table tracks coverage against the TypeScript packages.

FeatureTypeScriptPython
Dimensions and base measuresAvailableAvailable
Filtered measuresAvailableAvailable
Filters on dimensions and declared filters with operator allowlistsAvailableAvailable
Null-check filters (isNull, isNotNull)AvailableAvailable: filter.is_null / filter.is_not_null, opt-in per filter's operators
Relationships (belongs_to, has_one, has_many)AvailableAvailable
Time grainsAvailableAvailable, including per-dataset time_grains restriction
Sync and async executionAvailableAvailable
Streamed results (rows and Arrow)Available (stream, streamArrow)Available (stream, stream_arrow) on every executor
Embedded ClickHouse (chDB)Available (query builder adapter, init --database chdb)Available since 0.1.0b3 (dataset executor, init --database chdb)
Result caching and multi-tenancyAvailableAvailable
Dataset catalogAvailableAvailable
Typed DataFrames (to_pandas, to_polars, to_arrow)Not applicableAvailable
Framework integrationsNext.js, Node.js, Vite guidesDjango, Flask, SQLAlchemy (hypequery.contrib)
approxCountDistinct measuresAvailableAvailable locally (measure.approx_count_distinct, ClickHouse uniq, marked approximate in catalogs); publishing needs deployment contract 3, like TypeScript
measure.merge over AggregatingMergeTree state columnsAvailableAvailable (measure.merge("uniq", "users")), published with its stateFunction
final: true for ReplacingMergeTree / CollapsingMergeTree sourcesAvailableAvailable as row_resolution=resolved_rows.replacing(deleted_column=...) (or .final(), .collapsing(sign_column=...), .versioned_collapsing(...))
Derived measuresAvailableAvailable (measure.derived with formula.*)
Window measures (trailing, to-date, cumulative)AvailableAvailable locally (measure.trailing("revenue", 7, "day"), measure.to_date(...), measure.cumulative(...)) with a by grain and one bounded time range; not advertised to client endpoints; publishing needs deployment contract 3
Period comparisons (shift)AvailableAvailable locally (measure.shift("revenue", 1, "month"), derived measures over shifts, and shifts of derived, window or shifted measures); same limits as window measures
SegmentsAvailableAvailable locally (dataset(segments={"paid": segment(filter.eq(...))}), DatasetQuery(segments=...)); publishing needs deployment contract 3, like TypeScript
Relationship checksAvailableAvailable (check_relationships)
Cloud publishingNot yethypequery cloud is not live. Bundle export works today (write_dataset_bundle); one-step publish is planned
MCP server for AI agentsAvailableAvailable: hypequery mcp over stdio, in-process from an Api or bridging a served client contract (mcp extra; setup)
Business context for agentsAvailableAvailable (define_business_context; business_context= on ClientContractExecutor.create and on deployment bundles)
Tool generation for agentsAvailableUnder consideration
Serve: auth, CORS, rate limiting, errorsAvailableAvailable
Serve: JWT strategy and token issuerAvailableAvailable (jwt_strategy, analytics_token_issuer; tokens verify across languages)
Serve: your app's own login (fromContext)AvailableAvailable (from_context, django_user, flask_session)
Serve adaptersFetch, Node, VercelASGI, WSGI, native Django and Flask (to_asgi_app, to_wsgi_app, urls, blueprint)
Serve: dataset query endpoints and discoveryAvailableAvailable
CLI (init, generate datasets, dev)AvailableAvailable
Client contract export (export client-contract)Available: api.clientContract() and hypequery export:client-contractAvailable
Typed React hooksAvailable: types inferred with InferApiType, routes from generate:manifest; or a client contract and generate:client for a frontend in another repoAvailable via exported client contracts and generate:client (setup)
Query builderAvailableNot planned
Named metricsAvailableNot planned. Use metric endpoints or derived measures

Get early access to hypequery cloud.

Cloud hosts the same model you run in your backend, with a managed API and MCP server, versions, and rollback. We're letting teams in a few at a time. Join the waitlist and we'll reach out when your project can go live.

How do you want to build your analytics layer? (Optional)
What features do you most need? (Optional)

Pick as many as you like.

Only your email is required. All other questions are optional.