Skip to content

v0.9.0 — first disarm release

Choose a tag to compare

@raeq raeq released this 11 Jun 14:26
25d638d

The first release under the disarm name — the continuation of translit-rs (last released as 0.8.1). See #264 for the rename rationale.

disarm unifies the distribution and import names: pip install disarm then import disarm.

Breaking changes (migrating from translit-rs)

  • Install/import: pip install translit-rspip install disarm; import translitimport disarm.
  • Exception: the base exception TranslitErrorDisarmError (the subclasses InvalidArgumentError / ResourceLimitError / UnsupportedError keep their names). DisarmError is still a ValueError subclass, so except ValueError keeps working.
  • Env var: context-dictionary path TRANSLIT_DICT_DIRDISARM_DICT_DIR.
  • Native module translit._translitdisarm._disarm; console script translitdisarm.

The public transform API is otherwise unchanged: transliterate(), normalize(), slugify(), the security/pipeline helpers all keep their names and behaviour.

Install: pip install disarm==0.9.0

Full changelog: https://github.com/raeq/disarm/blob/main/CHANGELOG.md