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.7.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.7.0
File Size Uploaded Provenance Actions
plotsrv-0.7.0.tar.gz 22.4 MB Without provenance Details for plotsrv-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 30.5 MB

Release files / plotsrv-0.7.0.tar.gz

Download URL plotsrv-0.7.0.tar.gz
Size 22.4 MB
Tags Source
SHA-256 checksum
How to use checksums
8d39d829ac803349656f29833837f46490757cc8897caa2b98f53dd075ab0a16
BLAKE2b-256 checksum
How to use checksums
90e93841a0999f5cf1da6bd1e56e4ff396445a5843f42c49ebbbcfb96ff09898
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

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

Download URL plotsrv-0.7.0-py3-none-any.whl
Size 8.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0eb175f0817d7c3385cd150d4982386022d4bd95c353c4212345929df02d0ac9
BLAKE2b-256 checksum
How to use checksums
8d52604c8264298833e1ed2a226544ad49ef3234e309cb1372a5810963e53e7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

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