0.8.0 (March 23, 2024)#

Added#

  • Python 3.12 is now fully tested and supported in CI/CD.

  • New module translator_typing. Useful especially users who which to extend the base Translator implementation.

  • Added support for simplified Translator.fetcher arguments on the form {source: {id: name}}.

Changed#

  • Python minimum version is now 3.11 (was 3.8).

  • Minimum pandas version is now 2.0.3 (was 1.1.0).

  • Minimum sqlalchemy version is now 2.0.5 (was 1.4.16).

  • Updated base exceptions for several id_translation.*.exceptions-members:

    • DataStructureIOError: RuntimeError -> TypeError

    • ConfigurationError: ValueError -> TypeError

    • ConnectionStatusError: ValueError -> ConnectionError

    • TranslationError: ValueError -> Exception

    • MappingError: ValueError -> Exception

  • Make unmapped_values_action != 'ignore' actions more specific: Raise new UnmappedValuesError(MappingError) or warn UnmappedValuesWarning(MappingWarning) (used to raise parent types directly). Add hints to warning message.