Releases: google/etils
Releases · google/etils
v1.12.0
v1.11.0
enp
:- Make
enp.testing.parametrize_xnp()
import only requested xnp modules. - Fix orbax error when inspecting specs of an orbax checkpoint.
- Make
ecolab
:ecolab.inspect
: Proto are better displayed (hide attributes
DESCRIPTOR
,Extensions
in sub-section)
epy
:epy.lazy_api_imports
: Fix infinite recursion when importing sub-module
exm
:- Add dummy implementation of the API to simplify open-sourcing.
v1.10.0
epy
:- Add frozen dataclass support for
epy.ContextManager
- Make
epy.StrEnum
truly case-insensitive - Support adhoc import of proto files with hyphen.
- Add
fiddle
supports toepy.pretty_repr
- Add frozen dataclass support for
enp
: AddArraySpec
support forgrain.python.SharedMemoryArrays
.
v1.9.4
- Return Python 3.10 support.
v1.9.3
eapp
:- Allow extra kwargs in
eapp.make_flags_parser()
- Allow extra kwargs in
epath
:- Fix epath.Path pydantic deserialization for URI-style paths
epy
:- Add
epy.is_test
to check whether we're running in a test environment. - Add
epy.typing.Json
. - Add
epy.ExitStack
which allows setting the contextmanagers during init. - Add proto support for
epy.binary_adhoc
- Hide reraise from the traceback for cleaner error messages
- Add
exm
:- Add
exm.url_to_python_only_logs()
andexm.curr_job_name()
to add
artifact to Python only logs (without all the verbose C++ junk ). - Fix a bug which makes
exm.current_experiment
crash
- Add
v1.9.2
epath
:- Support pydantic serialization of epath.Path
v1.9.1
epath
:- Fix an infinite recursion on
is_relative_to
for Python>=3.12.
- Fix an infinite recursion on
v1.9.0
epy
:- Add
epy.lazy_api_imports
to lazy-import__init__.py
symbols. - Removed:
epy.cached_property
epy.lazy_imports
: Error callback accept astr
to auto-re-raise
with additional info.- Fix mixing
epy.lazy_imports()
withepy.binary_adhoc()
.
- Add
ecolab
:- Added
reload_workspace=True
to adhoc to auto-reload from workspace - Add
ecolab.get_permalink()
- Fix
ecolab.inspect
not finding static files when the kernel contain
partial etils deps.
- Added
epath
:- Fix error when
importlib.resources.files
returnMultiplexedPath
- Fix
gs://
URI for 3.12 - Fix
.walk
3.12 error (topdown
->top_down
rename)
- Fix error when
- Full compatibility with Python 3.12 (unit tests run on both 3.11 and 3.12).
v1.8.0
- Drop Python 3.10 support.
epy
:epy.pretty_repr
: Add support for namedtuple
ecolab
:- Add
ecolab.disp(obj)
- Add
;h
for syntax highlighting with auto-display - Fix proto error on import
- Add
v1.7.0
epath
:- Add
mode
toepath.Path.stat
output. Does not work for Windows nor
whentf.io.gfile
is used. - Add
.walk
toepath.Path
. Similar usage thanpathlib.Path.walk
- Add
epy
:- Added:
epy.reverse_fstring
: Reverse fstring parsing - Added:
reload=
forepy.binary_adhoc()
, fixed behavior for
consistency withecolab.adhoc
- Added:
epy.pprint
: Pretty print an object (including dataclass). - Added:
epy.pretty_repr_top_level
- Added:
epy.wraps_cls
equivalent offunctools.wraps
but for classes. - Breaking:
epy.lazy_imports(error_callback=)
has now signature
(Exception) -> None
(instead of(str) -> None
) - Fixed:
epy.pretty_repr
missing trailing,
for tuple with single
element.
- Added:
ecolab
:- Changed:
ecolab.auto_display
: Better representation when line is
displayed - Fix
adhoc
that delete sub-module wheninvalidate=False
adhoc
withreload_mode=UPDATE_INPLACE
now supports enums, so old
versions compare equal to new versions. Enums compared asa is FOO
might still fail.adhoc
withreload_mode=UPDATE_INPLACE
is now much faster.- When using
cell_autoreload=True
the defaultreload_mode
is
nowUPDATE_INPLACE
. - Better error message for adhoc reload
- Changed:
exm
:- Added:
exm.set_citc_source()
to specify which workspace to use when
using XManager on Colab
- Added:
etree
:- Added
is_leaf
kwarg to.map
and.parallel_map
- Added
enp
:- Add
ArraySpec
support forflax.linen.summary
.
- Add