Collection of eclectic utils for python.
APACHE-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] about 2 years ago
ecolab
: Added dataclass_array
to lazy_imports.Published by github-actions[bot] about 2 years ago
array_types
:
complex64
,...array_types.dtypes.DType
to support moreAnyFloat
, type union,...)FloatArray
, IntArray
do supports any float, int withoutf32.dtype
) are nowarray_types.dtypes.DType
.ecolab
:
lazy_imports.print_current_imports
to display the active lazyepy
:
epy.ContextManager
to create yield-based contextmanager classepy.issubclass
(like issubclass
but does not raises error forepy.groupby
, like itertools.groupby
but returns a dict
.epy.Lines.make_block
helper to create code blocks (functionepy.StrEnum
raises better error message if invalid input.epath
epath.DEFINE_path
for absl.flags
supportrglob
, glob('**/')
) now raise anpath.as_uri()
returns gs://
and s3://
(rather thanfile:///gs/
)__eq__
and __hash__
for resource path.edc
__repr__
is correctly added in Python 3.10 (#143)dc.frozen()
compatibility with autograd.dc.unfrozen()
now supports jax.tree_map
.dc.unfrozen()
repr which display overwritten fields.enp
:
enp.check_and_normalize_arrays
util to dynamically validateenp.linalg.normalize
util.enp.project_onto_vector
and enp.project_onto_plane
geometryPublished by github-actions[bot] over 2 years ago
epath
:
epath.Path
by default. (For nowgs://
still require TF to be installed).epath.testing.mock_epath
to mock GCS calls.epy.testing
:
epy.testing.subtest
for better subtests support.epy.testing.non_hermetic
to mark non-hermetic tests.oss-kit
:
pypi-auto-publish
GitHub action for automated PyPI and GitHub releases