numerous Report Generator
A python package focused on enabling you to create beautiful and powerful html reports with great ease. You can use the reports to document your work and showcase your data, even generating these automitically with your analysis code already implemented in python.
This package exposes a simple library to create a report, adding your sections, figures and tables or even just directly html divs with your own custom html code.
When you have added your content to the report you can save it to a stand-alone html file you can share with anyone.
We have provided you with a first template that you can modify to your needs. Soon we will publish a guide on how to change basic things in it - for instance the logo file.
Installation
The package numerous report generator can be installed with:
pip install numerous-html-report-generator
Post installation
If plotly is used for image generation, it uses the Kaleido backend to provide the figure -> bitmap conversion. Kaleido in turn relies on Google chrome being installed on the system. Therefore, the following command needs to be run after installation:
kaleido_get_chrome
Quick start
Here is a simple example to get you started once you have installed the package:
from pathlib import Path
import os
from numerous.html_report_generator import Report, Section, GoFigure, DataFrameTable
import pandas as pd
# Define output folder and html file
folder = Path('./output')
filename = 'my_first_report'
file = folder.joinpath(filename+'.html')
#Remove previous report file if exists
if os.path.exists(file):
os.remove(file)
# Create report
report = Report(target_folder=folder, filename=filename)
# Add info for the header and title page
report.add_header_info(header='My Organization',
title='My First Report',
sub_title='but not the last',
sub_sub_title='at all',
footer_title='My first footer',
footer_content='This is the end!'
)
#Add a section
section = Section(section_title="Section 1")
#create a figure
figure = GoFigure({
"data": [{"type": "bar",
"x": [1, 2, 3],
"y": [1, 3, 2]}],
"layout": {"title": {"text": "A Figure Specified By Python Dictionary"}}
}, caption="Test figure", notes=["Please notice x", "Please notice y"])
#create a table
table = DataFrameTable(pd.DataFrame({
'a': [1, 2, 3],
'b': [4, 5, 6]
}), caption="This is a test table")
#Add the figure and table to the section
section.add_content({
'figure': figure,
'table': table
})
#Add the section to the report
report.add_blocks({
'section': section
})
# Save the report - creates the html output file
report.save()
Contributing:
Please see CONTRIBUTING.md for details on how to contribute.
Metadata
Release files for numerous-html-report-generator 1.8.0
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 |
|---|---|---|---|---|
| numerous_html_report_generator-1.8.0.tar.gz | 16.9 kB | Without provenance | Details for numerous_html_report_generator-1.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| numerous_html_report_generator-1.8.0-py3-none-any.whl | Python 3 | none | any | Details for numerous_html_report_generator-1.8.0-py3-none-any.whl |
Total release size: 38.6 kB
Release files / numerous_html_report_generator-1.8.0.tar.gz
| Download URL | numerous_html_report_generator-1.8.0.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87ae03b435879c1a8ce5ab70f50be0d8ce55bb681c62ed2a07c987801f45dcd8
|
|
BLAKE2b-256 checksum How to use checksums |
6e5367f0c0d34f37354f34ee2d9f7e15b23f8d7d01565e63e9d39ae01a73bbd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / numerous_html_report_generator-1.8.0-py3-none-any.whl
| Download URL | numerous_html_report_generator-1.8.0-py3-none-any.whl |
|---|---|
| Size | 21.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f22076ecbc721c12b6a4bad0bb7f9b1a9b1fee2bc9b759c4ed98bd29705edb0
|
|
BLAKE2b-256 checksum How to use checksums |
08a0557309423c3efc316c6d86d0cc2a3c9b646d98d7de65591746ce56193b0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for numerous-html-report-generator 1.8.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.