Metadata-Version: 2.4
Name: pyhhc
Version: 1.0.0
Summary: Open-source Python reimplementation of Microsoft's HTML Help Compiler (hhc.exe)
Project-URL: Repository, https://github.com/mrexodia/pyhhc
Author: Duncan Ogilvie
License-Expression: BSL-1.0
License-File: LICENSE
Keywords: chm,compiler,hhc,html-help
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Boost Software License 1.0 (BSL-1.0)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Documentation
Classifier: Topic :: Software Development :: Build Tools
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# pyhhc

Open-source Python reimplementation of Microsoft's `hhc.exe` (HTML Help Compiler). Compiles `.hhp` projects into `.chm` files with no external dependencies.

## Install

```
pip install pyhhc
```

## Usage

### Command line

```
pyhhc project.hhp
```

### Library

```python
from pyhhc import HHPProject, compile_chm

project = HHPProject.parse("project.hhp")
compile_chm(project)
```

## Features

- 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`)

## License

BSL-1.0
