Add your description here
Project description
What is Reporterly
reportly 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
def make_figures(year: int, country: str):
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}")
return time_series, histogram
# Make report with all combinations of "year" and "country"
report = Report(
callback=make_figures,
year=[2020, 2021],
country=["Denmark", "Sweden"],
)
# 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 there reason no server og Python runtime is necessary when viewing the file. However, this also imposes some limitations what you can, 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-1.0.1.tar.gz.
File metadata
- Download URL: reporterly-1.0.1.tar.gz
- Upload date:
- Size: 3.2 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 |
68033fe561efd72aba71a95366e968b024f88b030b5cf3c8262d6c19045cd740
|
|
| MD5 |
632d90c7e59c43953d4c55dbd549ade1
|
|
| BLAKE2b-256 |
b54407901b409a3523b9ce734ff8b8251c3f485b9405a57f8bce2fcf5b7d6013
|
File details
Details for the file reporterly-1.0.1-py3-none-any.whl.
File metadata
- Download URL: reporterly-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 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 |
58a5e8342ad11708f12f7e2a3d9bb630ea38f63cbde0d331f9f1bcff21b72edf
|
|
| MD5 |
9ea78115f1b693775e2d5a57795a8d65
|
|
| BLAKE2b-256 |
6eb37c40842df4a054110af50de85112c4851b4af02adf475cdd16e36c00d947
|