Domrep
Generate HTML reports from Python. Build on top of dominate.
Features:
plot(...)- automatic handling of Matplotlib Figures, Animations or numpy arrayscaption(...)- caption your report figuresitemgrid(...)- flexible grid layout for arrays of figuresslider(...)- interactive slider for array of figures
Quickstart
pip install domrep
Examples
A basic document with plot and figure caption
from domrep import *
import matplotlib.pyplot as plt
from numpy.random import random
with document('My Report') as doc:
# any item can be captioned
with caption("A random 100×100 array"):
# `plot` accepts any matplotlib figure/animation or image
plot(plt.imshow(random((100, 100))))
# or alternatively, if you to tweak the plots
# with plot():
# plt.imshow(random((100, 100)))
# plt.colorbar()
doc.save('output.html')
# use sliders to view many images/plots
images = random((10, 100, 100))
dates = range(10)
with slider():
for date, image in zip(dates, images):
# plot() also works as a context manager
with plot(label=f'Date {date}'):
plt.imshow(image)
plt.colorbar()
Metadata
Release files for domrep 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| domrep-0.0.2.tar.gz | 18.6 kB | Without provenance | Details for domrep-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| domrep-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for domrep-0.0.2-py3-none-any.whl |
Total release size: 37.3 kB
Release files / domrep-0.0.2.tar.gz
| Download URL | domrep-0.0.2.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b33f269dd8a45e21d44c2890cbaeee76ddff5b53b3cd7cb4d4e246b78b7f66a
|
|
BLAKE2b-256 checksum How to use checksums |
7fcb4cbc794b39f72dd9bd12b3c081812aced57e87a111d89dc569abe85de99f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / domrep-0.0.2-py3-none-any.whl
| Download URL | domrep-0.0.2-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2aa04b76837deb0e641312cf6e4ff5457206a94e3e4632061a85dddfb6063d8d
|
|
BLAKE2b-256 checksum How to use checksums |
f6f29cd246314b30eb1db55bd8a91a8125fa47fadffb07e272aeaacbf5e1f5b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for domrep 0.0.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.