0.4.0 (June 16, 2023)#

Added#

  • The uuid.UUID-type has been added to IdTypes.

  • Add the Translator.enable_uuid_heuristics flag (default=False).

  • The Translator.translate()-method now accepts an optional fmt-argument (had to use Translator.copy(fmt=fmt).translate(...) before).

  • Improved support and added documentation for override-only mapping.

Changed#

  • Clean up and rename a large number of heuristic and filter functions.

  • Changed the default score function of the Mapper from equality to disabled.

  • The TranslatorFactory now makes an effort to include the source file of config issues.

Fixed#

  • Duplicate explicit names are now supported for most types (closes #4).

  • Duplicate column names for the pandas.DataFrame translatable type are now supported.

  • The AbstractFetcher class now uses a warning to inform the user about consequences when unmapped_values_action='raise' is used.

  • Instead of silently failing, the SqlFetcher now raises when ID column mapping fails for a whitelisted table.

  • Fixed a performance issue when translating large pandas.Series instances (including pandas.DataFrame columns).

Removed#

  • The FormatApplier class is no longer abstract. Removed DefaultFormatApplier.

  • The Mapper.context_sensitive_overrides property. Plain overrides are now treated as shared/default overrides when a context is given. The type check in AbstractFetcher has been removed (config-based fetching will work as before).