tessl install tessl/pypi-fastcore@1.8.0Python supercharged for fastai development
Agent Success
Agent success rate when using this tile
56%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.37x
Baseline
Agent success rate without this tile
41%
Build a Python module that generates structured HTML reports from data dictionaries. The module should create well-formed HTML documents with proper structure, styling, and navigation.
Your module should implement a report generator that:
The report generator should accept:
The output should be a complete, well-formed HTML string.
@generates
def generate_report(title: str, sections: list) -> str:
"""
Generate a complete HTML report from structured data.
Args:
title: The main title of the report
sections: List of section dictionaries, each containing:
- 'title': Section heading
- 'description': Section description text
- 'data': Optional list of dictionaries for table generation
Returns:
A string containing the complete HTML document
"""
pass
def create_table(data: list) -> object:
"""
Create an HTML table from a list of dictionaries.
Args:
data: List of dictionaries with consistent keys
Returns:
An HTML table element
"""
pass
def create_navigation(section_titles: list) -> object:
"""
Create a navigation menu with anchor links.
Args:
section_titles: List of section title strings
Returns:
An HTML navigation element
"""
passProvides HTML/XML generation utilities for programmatic document creation.