Skip to main content

plotsrv icon      plotsrv

See Python objects, tables, plots, and logs in your browser.

CI Codecov PyPI Python versions

Documentation · Quick start · Python API · CLI · Examples

Got a Python object you’d like to see in a browser?

python -m pip install plotsrv

In a Python REPL or notebook:

import plotsrv as ps

ps.publish_view({"status": "ok", "rows": 123}, label="status", launch_server=True)

Open http://127.0.0.1:8000. Keep the Python session running while you look around. Publish a DataFrame to get a table, or a Matplotlib figure to see a plot.

Already have a log?

plotsrv watch ./logs/job.log --tail

Quick start · Live demo

Python 3.11 or newer is required. In a uv project, use uv add plotsrv and uv run python.

Put it in a job

For a script that exits, keep plotsrv in a separate process. Save this as job.py:

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()

Start plotsrv run job.py in one terminal, then python job.py in another. The server discovers the declared view before the job runs. Calling the function publishes its result and still returns it to your code.

Use plotsrv in a project explains discovery, publishing, and configuration.

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, plus tracebacks when explicitly enabled
  • files on disk, including CSV, JSON, YAML, TOML, markdown, HTML, text, and images

HTML reports can run scripts with the dashboard's browser-origin privileges. Only publish HTML you trust. See the security reference before exposing a server publicly.

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

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.4
File Size Uploaded Provenance Actions
plotsrv-0.8.4.tar.gz 62.2 MB Without provenance Details for plotsrv-0.8.4.tar.gz

Built distribution (wheel)

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

Total release size: 72.6 MB

Release files / plotsrv-0.8.4.tar.gz

Download URL plotsrv-0.8.4.tar.gz
Size 62.2 MB
Tags Source
SHA-256 checksum
How to use checksums
f8b689e4a3810f4d4a386cb49ca0bfb5124c4af8613e4cb8c8ab6e93221c74ea
BLAKE2b-256 checksum
How to use checksums
e196bcce993a907706936d3a6be392fe9863e5fbf218353cfe1ee023d902c108
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

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

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

Security for plotsrv 0.8.4

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