Skip to main content

plotsrv icon      plotsrv

Developer friendly, lightweight observability for Python processes.

CI Codecov PyPI Python versions

Documentation · Quick start · Python API · CLI · Examples

Turn Python objects into live browser views with minimal code.

It is designed for scripts, pipelines, experiments, batch jobs, and long-running processes where useful outputs are otherwise hidden in terminal logs, temporary objects, generated files, or ad hoc plots.

plotsrv can render tables, plots, JSON, HTML, logs, images, tracebacks, files, and ordinary Python objects in a single browser UI.

Live demo: https://demo.plotsrv.com
See a deployed example showing real sensor data.

Install

pip install plotsrv

or:

uv add plotsrv

Quick example

import plotsrv as ps

summary = {
    "status": "ok",
    "rows_processed": 123,
    "checks": {
        "schema_valid": True,
        "duplicates": 2,
    },
}

ps.publish_view(
    summary,
    label="summary",
    section="demo",
    launch_server=True,
)

Open:

http://127.0.0.1:8000

Server workflow

For scripts, jobs, and pipelines, start plotsrv separately:

plotsrv run demo_pipeline.py --host 127.0.0.1 --port 8000

Then publish to it from Python:

import plotsrv as ps

@ps.view(label="daily import", section="pipelines", host="127.0.0.1", port=8000)
def daily_import_status():
    return {
        "job": "daily-import",
        "status": "ok",
        "rows_processed": 123,
    }

daily_import_status()

The function still returns normally, while plotsrv publishes the returned object into the browser UI.

What can plotsrv show?

plotsrv automatically chooses renderers for common outputs, including:

  • pandas and Polars DataFrames
  • matplotlib and plotnine plots
  • dictionaries, lists, and JSON-like objects
  • text, logs, markdown, HTML, and images
  • Python objects and tracebacks
  • files on disk, including CSV, JSON, YAML, TOML, markdown, HTML, text, and images

Why use it?

plotsrv provides cheap observability for Python processes.

It is useful when you want more visibility into a script or pipeline without building a dashboard, adopting a full observability stack, or manually opening generated files on disk.

Learn more

License

plotsrv is licensed under the Apache License 2.0.

See the LICENSE file for full details.

Metadata

Release files for plotsrv 0.8.0

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

Source distribution (sdist)

Source distribution for plotsrv 0.8.0
File Size Uploaded Provenance Actions
plotsrv-0.8.0.tar.gz 60.9 MB Without provenance Details for plotsrv-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plotsrv 0.8.0
File Interpreter ABI Platform Actions
plotsrv-0.8.0-py3-none-any.whl Python 3 none any Details for plotsrv-0.8.0-py3-none-any.whl

Total release size: 71.3 MB

Release files / plotsrv-0.8.0.tar.gz

Download URL plotsrv-0.8.0.tar.gz
Size 60.9 MB
Tags Source
SHA-256 checksum
How to use checksums
2c9c3841168fac6731193386ca5cd7ef424d843ce2430756874392dcc8e91d59
BLAKE2b-256 checksum
How to use checksums
2f5b0a31750cfc0a0f875d8acdfc13ae468c926e7361901e628a6fab7eabaf40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

Release files / plotsrv-0.8.0-py3-none-any.whl

Download URL plotsrv-0.8.0-py3-none-any.whl
Size 10.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2e3c2d6f61d42adae4ea385631751f337aa5d64eb97ffbba4e1fb3614d26eb78
BLAKE2b-256 checksum
How to use checksums
66d20ae6bfd40777cc0ca053b4ce4fa9b5d3f28b9e2719b82919646dc45bae7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

Security for plotsrv 0.8.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.

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.

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