esparto is a Python library for building data driven reports with content from popular analytics packages.
Main Features
- Create beautiful analytical reports using idiomatic Python
- Generate content from:
- Develop interactively with Jupyter Notebooks
- Share documents as a self-contained webpage or PDF
- Customise with CSS and Jinja
- Responsive Bootstrap layout
Basic Usage
import esparto as es
# Do some analysis
pandas_df = ...
plot_fig = ...
markdown_str = ...
# Create a page
page = es.Page(title="My Report")
# Add content
page["Data Analysis"]["Plot"] = plot_fig
page["Data Analysis"]["Data"] = pandas_df
page["Data Analysis"]["Notes"] = markdown_str
# Save to HTML or PDF
page.save_html("my-report.html")
page.save_pdf("my-report.pdf")
Installation
esparto is available from PyPI and Conda:
pip install esparto
conda install esparto -c conda-forge
poetry add esparto
Dependencies
- python >= 3.6
- jinja2
- markdown
- BeautifulSoup
- PyYAML
Optional
- weasyprint (for PDF output)
License
Documentation
User guides, documentation, and examples are available on the project home page.
Contributions, Issues, and Requests
Feedback and contributions are welcome - please raise an issue or pull request on GitHub.
Examples
Iris Report - Webpage | PDF | Notebook
Release files for esparto 4.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| esparto-4.3.1.tar.gz | 49.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| esparto-4.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.3 kB
Release files / esparto-4.3.1.tar.gz
| Download URL | esparto-4.3.1.tar.gz |
|---|---|
| Size | 49.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee5fff73319c75fb0ecaac2e2af14a137b93ab1a1d9d9613b8615e339b63f038
|
|
BLAKE2b-256 checksum How to use checksums |
da9562a3b25bfa8079977d457fb6f5c67ab2d7d47fb78e698f6cdf21e0fc6b61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / esparto-4.3.1-py3-none-any.whl
| Download URL | esparto-4.3.1-py3-none-any.whl |
|---|---|
| Size | 52.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b886ad092935717e08e222e9873e1971f06b1fe4943c54e1925eb77bf897309
|
|
BLAKE2b-256 checksum How to use checksums |
3e5deb4570b5489c4767ea59c3a4a7c775f1fa2f0c4176fa35674298534985ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|