Skip to main content

⚡ 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.

PyPI version Python Version License: MIT DuckDB Ibis

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?
Install serverside_pivot on npm (npm install serverside_pivot) for React 18/19 and DuckDB-WASM client-side execution.


📦 Installation

pip install serverside-pivot

Optional extras:

# 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]"

⚡ 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_pivot on 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.

Metadata

Release files for serverside-pivot 0.0.96

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for serverside-pivot 0.0.96
File Interpreter ABI Platform Actions
serverside_pivot-0.0.96-py3-none-any.whl Python 3 none any Details for serverside_pivot-0.0.96-py3-none-any.whl

Release files / serverside_pivot-0.0.96-py3-none-any.whl

Download URL serverside_pivot-0.0.96-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6785c859a0b0b68f233127ab5a1bd906adb93034294b10534ce82c49ec21cd6a
BLAKE2b-256 checksum
How to use checksums
fbe165189098078f3b2ef2bef3d7deca4fb115608949d7d050675ec992afdc23
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 18, 2026.

Transparency log

Security for serverside-pivot 0.0.96

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.0.96-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 18, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.0.96 This release

1 release file Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page