All notable changes to this project will be documented in this file.
- Change default store mode to
"outputs_only"in disk cache. - Change default
fn_nameto function name instead of fully qualified name in disk cache. - Lazily load imports if
lazy_loaderpackage is available.
- Disk cache custom keywords arguments for cache filename.
Versionnow ignores buildmetadata when comparing versions.
checksum_anynow supportsEnuminstances.
- Missing global typing imports.
- Disk cache functions now detect saving backend when custom load/dump functions are provided.
Callableinisinstance_genericcheck.
cache_fname_fmtcan now be a custom callable formatter.
- Documentation build with constraint
sphinx<9.0.0.
SizedGeneratorclass wrapper.executor_kwdsargument toThreadPoolExecutorHelperclass.cache_fname_fmtargument indisk_cachenow supports inputs arguments values to name the cache file.
as_builtinnow supportsdatetime.dateinstances.check_only_firstargument inisinstance_genericfunction.filter_with_patternsfunction.skipfiles,includeandsorttotree_iterfunction.SupportsGetitemprotocols now hasT_Indextypevar set toAnyinstead ofintby default.SupportsGetitem2,SupportsGetitemLen2andSupportsGetitemIterLen2protocols with generic parameters in reversed order to matchMapping[key, value]order.ThreadPoolExecutorHelperclass.SupportsMatmultyping class.reduce_matmulfunction.
get_argnamesandfilter_and_callfunctions when argumentfncontains arguments with default values.
SupportsGetitemprotocol.- All
SupportGetitem-based protocols now accept a second generic to specify idx type. seedoption torandstrfunction.
checksum_anycomputation withsetandfrozensetobjects no longer require to sort elements.
- Default value for
T_Indextypevar for protocol that specify__getitem__method. reload_editable_submoduleswhen no editable submodule is imported.
duplicate_listfunction to duplicate elements in a list.loads,save,readfunctions for CSV, JSON and PICKLE.- JSONL file format support.
str_to_typeandparse_tofunctions to convert any argparse argument to builtin value.requires_packagesdecorator to avoid calling a function that requires an optional dependency.
deprecated_functiondecorator can be used without parenthesis.
disk_cache_decoratortyping.priorityargument inregistermethod of_FunctionRegistryclass.get_argnamesreturns when function contains local variables.
check_args_typedecorator.
as_builtinnow convertscollections.Counterinstances.
as_builtinnow converts correctlyMappinginstances.register_checksum_fnnow acceptspriorityarg.
- Python 3.8 support.
T_BuiltinNumberandT_BuiltinScalarare covariant by default.SupportsLenprotocol.randstrnow support a range of sizes.as_builtinfunction to convert object to built-in equivalent recursively.
disk_cache_decoratornow supports custom saving backend fns.
- Initial modules from
pyoutilmodule contained in torchoutil project.