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

Built distribution (wheel)

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

Total release size: 72.6 MB

Release files / plotsrv-0.8.2.tar.gz

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

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

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

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

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