Skip to main content

perspective-python

PyPI

Perspective is an open-source data grid, pivot table and charting component for large, real-time and streaming datasets.

perspective-python is the Python distribution of Perspective:

  • A streaming query engine — Table and View — with incremental pivots, aggregates, filters, expressions and joins, reading and writing Apache Arrow, CSV, JSON, pandas, polars and pyarrow. Tables can be memory-mapped from disk with page_to_disk=True to exceed available memory.
  • PerspectiveWidget, an interactive data grid, pivot table and charting widget for JupyterLab, Jupyter Notebook, VS Code notebooks, Google Colab and marimo, built on anywidget.
  • WebSocket handlers for Tornado, Starlette (FastAPI) and aiohttp, which serve real-time dashboards to <perspective-viewer> in the browser.
  • Virtual servers which run the same UI directly against DuckDB, ClickHouse, PostgreSQL and Polars, with no data copy.

Installation

pip install perspective-python

For notebooks, install the jupyter extra:

pip install "perspective-python[jupyter]"

An interactive pivot table in Jupyter

import pandas as pd
from perspective.widget import PerspectiveWidget

df = pd.read_csv("superstore.csv")
PerspectiveWidget(df, plugin="Y Bar", group_by=["Region"], columns=["Sales"])

A streaming Table

import perspective

server = perspective.Server()
client = server.new_local_client()
table = client.table({"symbol": "string", "price": "float"}, name="prices")
table.update([{"symbol": "AAPL", "price": 189.5}])

A real-time dashboard server

import tornado.ioloop
import tornado.web
from perspective.handlers.tornado import PerspectiveTornadoHandler

app = tornado.web.Application([
    (r"/websocket", PerspectiveTornadoHandler, {"perspective_server": server}),
])

app.listen(8888)
tornado.ioloop.IOLoop.current().start()

Any number of browser clients can then open the prices table over WebSocket and receive every update() as it happens.

Documentation

Metadata

Release files for perspective-python 5.9.2

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

Source distribution (sdist)

Source distribution for perspective-python 5.9.2
File Size Uploaded Provenance Actions
perspective_python-5.9.2.tar.gz 9.5 MB Without provenance Details for perspective_python-5.9.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for perspective-python 5.9.2
File Actions
perspective_python-5.9.2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for perspective_python-5.9.2-cp311-abi3-win_amd64.whl
perspective_python-5.9.2-cp311-abi3-pyemscripten_2026_0_wasm32.whl CPython 3.11 abi3 PyEmscripten 2026.0+ WebAssembly Details for perspective_python-5.9.2-cp311-abi3-pyemscripten_2026_0_wasm32.whl
perspective_python-5.9.2-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for perspective_python-5.9.2-cp311-abi3-manylinux_2_28_x86_64.whl
perspective_python-5.9.2-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for perspective_python-5.9.2-cp311-abi3-manylinux_2_28_aarch64.whl
perspective_python-5.9.2-cp311-abi3-macosx_14_0_arm64.whl CPython 3.11 abi3 macOS 14.0+ ARM64 Details for perspective_python-5.9.2-cp311-abi3-macosx_14_0_arm64.whl

Total release size: 80.0 MB

Release files / perspective_python-5.9.2.tar.gz

Download URL perspective_python-5.9.2.tar.gz
Size 9.5 MB
Tags Source
SHA-256 checksum
How to use checksums
fab8d5780d8c5d1d9ba483cd346eef590cbca8a7f9cf3177c4cd46ea2ee934fc
BLAKE2b-256 checksum
How to use checksums
4f64c15e772bcff5c74a24a85fcd0359e00f314a47cf66ec2a3b8913fe1a15ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / perspective_python-5.9.2-cp311-abi3-win_amd64.whl

Download URL perspective_python-5.9.2-cp311-abi3-win_amd64.whl
Size 15.0 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3fcd09a3a74764e914aed9f4ba7394669a41cf3972bcec1dccbfdc61177f8630
BLAKE2b-256 checksum
How to use checksums
f4805e6be9e650418b2a92cf007c83c63589904635e27f437ff89b5f978d4ea6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / perspective_python-5.9.2-cp311-abi3-pyemscripten_2026_0_wasm32.whl

Download URL perspective_python-5.9.2-cp311-abi3-pyemscripten_2026_0_wasm32.whl
Size 8.5 MB
Tags CPython 3.11 PyEmscripten 2026.0+ WebAssembly abi3
SHA-256 checksum
How to use checksums
25b69386c796e46dbcb7d8a0cf6c07408227fe9c9d61d51490615f57a6a5295e
BLAKE2b-256 checksum
How to use checksums
4fdfc0b3fa50861a636f62f4e834a8e50d8535c5f9e1af7cd590c85c8e4df7d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / perspective_python-5.9.2-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL perspective_python-5.9.2-cp311-abi3-manylinux_2_28_x86_64.whl
Size 16.4 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
45097027cc18141075bec07df0e4b661297d2d93151e798230d2bd9098a8bc41
BLAKE2b-256 checksum
How to use checksums
f64a81d45387c0697ee6c3aa9aeeecd4df5cf0eba0c8e77d31a94ea574266799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / perspective_python-5.9.2-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL perspective_python-5.9.2-cp311-abi3-manylinux_2_28_aarch64.whl
Size 15.9 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
c67f56aa3dcdc767861027ca209e17b3ed1c61a8a539cfbad8b1f291b4c8e21f
BLAKE2b-256 checksum
How to use checksums
6cef0925c087d2b4324cc467c1b0d3c755a34cd3d5566d5029b36a6d9cefbeb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / perspective_python-5.9.2-cp311-abi3-macosx_14_0_arm64.whl

Download URL perspective_python-5.9.2-cp311-abi3-macosx_14_0_arm64.whl
Size 14.8 MB
Tags CPython 3.11 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
ea8c15638081ba406ee10f1bce5aee0bcc61b1be49ac63acf50b590c7918de88
BLAKE2b-256 checksum
How to use checksums
93641c49de3932a96e51a6ba59f89579ac585eeb918dd7fc17eeb176d192460d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Security for perspective-python 5.9.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

5.9.2 This release

6 release files No provenance

1.1.1

1.1.0

1.0.8

1.0.7

0.1.11

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