# funhtml **Repository Path**: farfarfun/funhtml ## Basic Information - **Project Name**: funhtml - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-08-31 - **Last Updated**: 2026-10-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # funhtml 轻量级纯 Python HTML 生成库,核心 `pyhtml` DSL 无第三方运行时依赖。提供两套能力:一是用 Python 对象拼装 HTML 标签的 `pyhtml` DSL(类似 PyHTML),二是把 pandas DataFrame 一键转换成 HTML 表格的 `dataframe_to_html` 便捷函数(自动识别图片列、URL 链接列,需要可选依赖 pandas)。 ## 安装 ```bash pip install funhtml ``` ## 快速上手 ### 1. 用 pyhtml 拼装 HTML 标签 ```python from funhtml.pyhtml import div, p, html, body page = html(body(div(p("hello funhtml")))) print(page.render()) # # #
## hello funhtml #
#