etils

Collection of eclectic utils for python.

APACHE-2.0 License

Downloads
1.6M
Stars
182
Committers
12

Bot releases are visible (Hide)

etils - v0.7.1

Published by github-actions[bot] about 2 years ago

  • ecolab: Added dataclass_array to lazy_imports.
etils - v0.7.0

Published by github-actions[bot] about 2 years ago

  • array_types:
    • Added: More array types: complex64,...
    • Added: An experimental array_types.dtypes.DType to support more
      flexible dtype expression (AnyFloat, type union,...)
    • Changed: FloatArray, IntArray do supports any float, int without
      casting.
    • Changed (breaking): Array dtypes (e.g. (f32.dtype) are now
      array_types.dtypes.DType.
  • ecolab:
    • Added: lazy_imports.print_current_imports to display the active lazy
      imports (e.g. to add imports before publishing a colab).
  • epy:
    • Added: epy.ContextManager to create yield-based contextmanager class
      (see
      discussion)
    • Added: epy.issubclass (like issubclass but does not raises error for
      non-types)
    • Added: epy.groupby, like itertools.groupby but returns a dict.
    • Added: epy.Lines.make_block helper to create code blocks (function
      calls,...)
    • Fixed: epy.StrEnum raises better error message if invalid input.
  • epath
    • Added: epath.DEFINE_path for absl.flags support
    • Changed (breaking): Recursive glob (rglob, glob('**/')) now raise an
      error rather than being silently ignored.
    • Changed: path.as_uri() returns gs:// and s3:// (rather than
      file:///gs/)
    • Changed: Add __eq__ and __hash__ for resource path.
  • edc
    • Fixed: __repr__ is correctly added in Python 3.10 (#143)
    • Fixed: dc.frozen() compatibility with autograd.
    • Changed: dc.unfrozen()now supports jax.tree_map.
    • Changed: Better dc.unfrozen() repr which display overwritten fields.
  • enp:
    • Added: enp.check_and_normalize_arrays util to dynamically validate
      array dtype/shape from typing annotations.
    • Added: enp.linalg.normalize util.
    • Added: enp.project_onto_vector and enp.project_onto_plane geometry
      utils.
  • Other:
etils - v0.6.0

Published by github-actions[bot] over 2 years ago

  • epath:
    • Remove TensorFlow dependency from epath.Path by default. (For now
      accessing gs:// still require TF to be installed).
    • Add epath.testing.mock_epath to mock GCS calls.
  • epy.testing:
    • Add epy.testing.subtest for better subtests support.
    • Add epy.testing.non_hermetic to mark non-hermetic tests.
  • oss-kit:
Package Rankings
Top 0.54% on Pypi.org
Top 18.34% on Spack.io
Badges
Extracted from project README
Unittests PyPI version Documentation Status
Related Projects