0.4.0 (June 16, 2023)#
Added#
The
uuid.UUID-type has been added toIdTypes.Add the
Translator.enable_uuid_heuristicsflag (default=False).The
Translator.translate()-method now accepts an optionalfmt-argument (had to useTranslator.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
Mapperfromequalitytodisabled.The
TranslatorFactorynow 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.DataFrametranslatable type are now supported.The
AbstractFetcherclass now uses a warning to inform the user about consequences whenunmapped_values_action='raise'is used.Instead of silently failing, the
SqlFetchernow raises when ID column mapping fails for a whitelisted table.Fixed a performance issue when translating large
pandas.Seriesinstances (includingpandas.DataFramecolumns).
Removed#
The
FormatApplierclass is no longer abstract. RemovedDefaultFormatApplier.The
Mapper.context_sensitive_overridesproperty. Plain overrides are now treated as shared/default overrides when a context is given. The type check inAbstractFetcherhas been removed (config-based fetching will work as before).