⚡ serverside-pivot
Turnkey Server-Side Pivot Table & Analytics Engine for Python, Dash & Streamlit
Universal SQL & DataFrame connectivity via DuckDB, PyArrow & Ibis. Billion-row hierarchical pivots with bounded virtualized responses.
serverside-pivot is a low-code, server-side analytical pivot table and 2D virtualized data grid for Python, Plotly Dash, and Streamlit, backed by pivot_engine (DuckDB, PyArrow, and Ibis).
Looking for the standalone React / TypeScript frontend package?
Installserverside_pivoton npm (npm install serverside_pivot) for React 18/19 and DuckDB-WASM client-side execution.
📦 Installation
# Core analytical engine (pivot_engine)
pip install serverside-pivot
Optional host & runtime extras:
# Plotly Dash component support
pip install "serverside-pivot[dash]"
# Streamlit component support
pip install "serverside-pivot[streamlit]"
# FastAPI V1 runtime HTTP server (for standalone React HttpPivotTransport)
pip install "serverside-pivot[api]"
# Redis caching / distributed export job coordination
pip install "serverside-pivot[redis]"
| Host / Layer | Install Command | Import Namespace |
|---|---|---|
| Core Engine | pip install serverside-pivot |
pivot_engine |
| Plotly Dash | pip install "serverside-pivot[dash]" |
serverside_pivot (DashTanstackPivot) |
| Streamlit | pip install "serverside-pivot[streamlit]" |
streamlit_pivot (st_serverside_pivot) |
| React (npm) | npm install serverside_pivot |
serverside_pivot / serverside_pivot/react |
⚡ Quickstart
1. Plotly Dash (DashTanstackPivot)
import dash
import pandas as pd
from dash import html
from pivot_engine import create_tanstack_adapter, register_pivot_app
from serverside_pivot import DashTanstackPivot
df = pd.DataFrame({
"region": ["North America", "North America", "Europe", "Europe"],
"country": ["USA", "Canada", "Germany", "France"],
"year": ["2024", "2024", "2025", "2025"],
"revenue": [150000, 90000, 130000, 110000],
"units": [120, 75, 105, 88],
})
adapter = create_tanstack_adapter(backend_uri=":memory:")
adapter.load_data(df, "sales")
app = dash.Dash(__name__)
app.layout = html.Div(
DashTanstackPivot(
id="pivot-grid",
table="sales",
rowFields=["region", "country"],
colFields=["year"],
valConfigs=[
{"field": "revenue", "agg": "sum", "label": "Revenue"},
{"field": "units", "agg": "sum", "label": "Units"},
],
style={"height": "720px", "width": "100%"},
)
)
register_pivot_app(app, adapter_getter=lambda: adapter)
if __name__ == "__main__":
app.run(debug=False)
2. Streamlit (streamlit_pivot)
import pandas as pd
import streamlit as st
from pivot_engine import create_tanstack_adapter
from streamlit_pivot import st_serverside_pivot
st.set_page_config(layout="wide")
adapter = create_tanstack_adapter(backend_uri=":memory:")
adapter.load_data(pd.read_parquet("sales.parquet"), "sales")
st_serverside_pivot(
adapter=adapter,
table="sales",
row_fields=["region", "country"],
col_fields=["year"],
val_configs=[{"field": "revenue", "agg": "sum", "label": "Revenue"}],
key="sales-pivot",
)
3. Cloud Data Warehouses via Ibis Pushdown
Point backend_uri to DuckDB files, MotherDuck, PostgreSQL, BigQuery, Snowflake, ClickHouse, Databricks, or Trino so aggregations, sorting, filtering, and window calculations execute inside your warehouse and only bounded virtual slices travel to the browser:
from pivot_engine import create_tanstack_adapter
adapter = create_tanstack_adapter(backend_uri="duckdb:///analytics.db")
# Or any Ibis-supported connection URI (e.g. postgresql://..., snowflake://..., bigquery://...)
✨ Key Python & Engine Capabilities
- Server-Side Pushdown (
pivot_engine): Hierarchical rollup queries, level-based batching, grand totals, subtotals, multi-column sorting, set/condition filters, and top-N filtering executed in DuckDB/PyArrow/Ibis. - 2D Virtualization: Streams bounded row/column viewports over HTTP/Dash callbacks so multi-million-row tables keep browser RAM low.
- Calculated Measures & Window Functions: Calculated formulas and window expressions (
percent_of_grand_total, running totals, diffs). - Streaming Async Exports: Server-side CSV and formatted XLSX workbook exports with cancellation and job progress tracking.
- Multi-Host UI: Same workspace capabilities across Dash (
serverside_pivot), Streamlit (streamlit_pivot), and standalone React (serverside_pivoton npm via FastAPI V1 runtime). - Read-Only Analytical Scope: Cell editing and edit transactions are not a supported public capability; legacy editing props are ignored no-ops.
📚 Links
- GitHub Repository & Full Documentation: https://github.com/Ramzy22/serverside_pivot
- React / TypeScript Package (npm): https://www.npmjs.com/package/serverside_pivot
- Issue Tracker: https://github.com/Ramzy22/serverside_pivot/issues
Metadata
Release files for serverside-pivot 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serverside_pivot-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for serverside_pivot-0.1.0-py3-none-any.whl |
Release files / serverside_pivot-0.1.0-py3-none-any.whl
| Download URL | serverside_pivot-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
951a6612d6454f3c21045be395ca8f699635d34cd656f1c1329bc0dd31453be6
|
|
BLAKE2b-256 checksum How to use checksums |
62216594dfc20d50be1480d74a8f79a4ab6ef412efa26dad4ca83925061c1e07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for serverside-pivot 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for serverside_pivot-0.1.0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.