API ReferenceΒΆ

Warning

APIs are not considered stable before 1.0 and may change or be removed between minor versions.

If you need an internal API stabilized please file an issue.

Most projects only need the bootstrap path: create a SQLAlchemy session, run unihan_db.bootstrap.bootstrap_unihan(), and query unihan_db.tables.Unhn. The reference pages below split the API by the same pipeline: load data, turn records into rows, then query the mapped tables.

Bootstrap

Data download, session helpers, and ETL options.

Bootstrap Helpers
Importer

Transform normalized UNIHAN records into ORM objects.

Importer Internals
Tables

SQLAlchemy ORM models for UNIHAN data.

ORM Tables