Add your description here
Project description
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reporterly-2.0.0.tar.gz.
File metadata
- Download URL: reporterly-2.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58ccbb70a1f33cf77ff7cf13885523f43732a2fe95c76820e84e10edc7b8fcfc
|
|
| MD5 |
58d441c9f18168753bbe652eacac120d
|
|
| BLAKE2b-256 |
cf9a4f8c1d028fd88d146dd11cc8e05b7714a4874a6faf2f93012bc4eda1a806
|
File details
Details for the file reporterly-2.0.0-py3-none-any.whl.
File metadata
- Download URL: reporterly-2.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
006e590d5fd6617342c905c02bdfefccb6671ff287b6e4c81e7332c0bb734e6b
|
|
| MD5 |
4b7b2493486caf22011ba5b3ff126a26
|
|
| BLAKE2b-256 |
7d8eba815e846b43a405fffdf3c1e49b2442eb75c591f7c88bd400949fbed857
|