MCPcopy Index your code
hub / github.com/domvwt/esparto

github.com/domvwt/esparto @v4.3.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.3.1 ↗ · + Follow
277 symbols 743 edges 23 files 83 documented · 30% updated 3y agov4.3.1 · 2023-05-29★ 892 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

esparto is a Python library for building data driven reports with content from popular analytics packages.

Main Features

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

Optional

License

MIT

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

example page

Core symbols most depended-on inside this repo

save_html
called by 13
esparto/design/layout.py
save_pdf
called by 6
esparto/design/layout.py
to_html
called by 5
esparto/design/layout.py
_child_class
called by 5
esparto/design/layout.py
render_html
called by 5
esparto/design/layout.py
get_identifier
called by 4
esparto/design/layout.py
set_children
called by 4
esparto/design/layout.py
_to_yaml_str
called by 3
esparto/_options.py

Shape

Function 127
Method 111
Class 33
Route 6

Languages

Python99%
TypeScript1%

Modules by API surface

esparto/design/layout.py83 symbols
esparto/design/content.py41 symbols
tests/design/test_layout.py28 symbols
esparto/_options.py19 symbols
tests/publish/test_publish.py17 symbols
tests/design/test_adaptors.py11 symbols
esparto/design/base.py10 symbols
tests/design/test_content.py9 symbols
esparto/design/adaptors.py9 symbols
esparto/_cli.py9 symbols
tests/conftest.py8 symbols
tests/test_cli.py7 symbols

For agents

$ claude mcp add esparto \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page