Migration notes#

Migration and deprecation notes for unihan-etl are here, see Changelog as well.

Welcome on board! ๐Ÿ‘‹

  1. ๐Ÿ“Œ For safety, always pin the package

  2. ๐Ÿ“– Check the migration notes (You are here)

  3. ๐Ÿ“ฃ If you feel something got deprecated and it interrupted you - past, present, or future - voice your opinion on the tracker.

    We want to make unihan-etl fun, reliable, and useful for users.

    API changes can be painful.

    If we can do something to draw the sting, weโ€™ll do it. Weโ€™re taking a balanced approach. Thatโ€™s why these notes are here!

    (Please pin the package. ๐Ÿ™)

Next release#

Notes on the upcoming release will be added here

unihan-etl 0.22.0 (2023-06-17)#

Move unihan_etl.process to unihan_etl.core (#284)#

Before 0.22.0:

from unihan_etl.process import Packager

From 0.22.0+:

>>> from unihan_etl.core import Packager

Options is now a dataclass object (#280)#

A typed, autocomplete-friendly :obj:dataclasses.dataclass object is now used for the unihan_etl options object.

Before 0.22.0:

from unihan_etl.process import Packager

packager = Packager({
    'fields': ['kDefinition']
})

From 0.22.0+ (also note above):

>>> from unihan_etl.core import Packager
>>> from unihan_etl.options import Options
>>> packager = Packager(Options(
...     fields=['kDefinition']
... ))