Open-source Python reimplementation of Microsoft's hhc.exe (HTML Help Compiler). Compiles .hhp projects into .chm files with no external dependencies.
pip install pyhhc
pyhhc project.hhp
from pyhhc import HHPProject, compile_chm
project = HHPProject.parse("project.hhp")
compile_chm(project)- Full CHM container format (ITSF/ITSP headers, PMGL/PMGI directory)
- LZX compression
- Table of contents and index
- Full-text search index (
$FIftiMain) - All internal metadata files (
#SYSTEM,#STRINGS,#WINDOWS,#TOPICS,#URLTBL,#URLSTR,#IDXHDR,$OBJINST)
BSL-1.0