API Reference

Warning

APIs are not considered stable before 1.0. They can break or be removed between minor versions.

If you need an API stabilized please file an issue.

Core Modules

Core

ETL pipeline and Packager: download, normalize, export.

Core - unihan_etl.core
Options

Configuration dataclass for paths, formats, and field selection.

Options - unihan_etl.options
Expansion

Expand multi-value UNIHAN fields into structured data.

Expansion - unihan_etl.expansion
Types

Shared TypedDicts and type aliases.

Typings - unihan_etl.types
Constants

Field lists, manifests, and default paths.

Constants - unihan_etl.constants
Utils

Helpers for progress, codepoints, and field resolution.

Utilities - unihan_etl.util

Test Utilities

Test

Legacy test harness.

Test helpers - unihan_etl.test
pytest plugin

Fixtures for quick and full UNIHAN datasets in pytest.

pytest plugin