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.5.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.5.0
File Size Uploaded Provenance Actions
plotsrv-0.5.0.tar.gz 3.0 MB Without provenance Details for plotsrv-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 4.6 MB

Release files / plotsrv-0.5.0.tar.gz

Download URL plotsrv-0.5.0.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
08613567c296ff3db4fe8fef8a5d17c48a7d5e150b5d22ee5c5287b5141c2995
BLAKE2b-256 checksum
How to use checksums
45bc9269ea4c548a07594fe12b494c41fb4671cbffae091c40c8722b2d94aadb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

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

Download URL plotsrv-0.5.0-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
686b062dad4ec93547181203fb631cafab0140bf15dd56ae50e279f570854766
BLAKE2b-256 checksum
How to use checksums
ad6431ec23957633196af9feee93aa44f5d85d1857f963adae1700ca458d8a5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

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