Skip to main content

What is Reporterly

reporterly is a Python package for turning a set of Plotly figures into a single standalone HTML file.

Example

from reporterly import Report
import plotly.graph_objects as go

# Create a report
report = Report()

# Add figures with selection criteria
for year in [2020, 2021]:
    for country in ["Denmark", "Sweden"]:
        time_series = go.Figure()
        time_series.add_trace(go.Scatter(x=[1, 2, 3], y=[4, 5, 6]))
        time_series.update_layout(title=f"Time Series for {country} in {year}")

        histogram = go.Figure()
        histogram.add_trace(go.Histogram(x=[1, 2, 2, 3, 3, 3]))
        histogram.update_layout(title=f"Histogram for {country} in {year}")

        # Add figures with their selection criteria
        report.add(
            selection={"year": year, "country": country},
            figure=[time_series, histogram],
        )

# Write to HTML file
report.write_html("report.html")

Output

alt text

Technical description

The HTML file is made by adding all figures to the file, and then using dropdown filters to determine which figures should be visible. This is the reason no server or Python runtime is necessary when viewing the file. However, this also imposes some limitations on what you can do, since all figures are generated up front.

Metadata

Release files for reporterly 2.0.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 reporterly 2.0.0
File Size Uploaded Provenance
reporterly-2.0.0.tar.gz 3.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 7.1 kB

Release files / reporterly-2.0.0.tar.gz

Download URL reporterly-2.0.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
58ccbb70a1f33cf77ff7cf13885523f43732a2fe95c76820e84e10edc7b8fcfc
BLAKE2b-256 checksum
How to use checksums
cf9a4f8c1d028fd88d146dd11cc8e05b7714a4874a6faf2f93012bc4eda1a806
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / reporterly-2.0.0-py3-none-any.whl

Download URL reporterly-2.0.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
006e590d5fd6617342c905c02bdfefccb6671ff287b6e4c81e7332c0bb734e6b
BLAKE2b-256 checksum
How to use checksums
7d8eba815e846b43a405fffdf3c1e49b2442eb75c591f7c88bd400949fbed857
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for reporterly 2.0.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.

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