Collection of common python utils
Project description
Etils
etils (eclectic utils) is an open-source collection of utils for python.
Each top-level submodule is a self-contained independent module (with its
own BUILD
rule), meant to be imported individually. To avoid collisions with
other modules/variables, module names are prefixed by e
(arbitrary
convention):
from etils import epath # Path utils
from etils import epy # Python utils
from etils import ejax # Jax utils
...
Becauses each module is independent, only the minimal required libraries are
imported (for example, importing epy
won't suffer the cost of importing TF,
jax,...)
Documentation
etils.epath
: pathlib-like API forgs://
,s3://
,...etils.etree
: Tree utils fortf.nest
,jax.tree_utils
, DeepMindtree
.etils.enp
: Numpy utils.etils.ecolab
: Colab utils.etils.array_types
: Typing annotations for jax, numpy,... arraysetils.edc
: Dataclasses utils.etils.epy
: Collection of generic python utils.
Installation
Because each module is independent and require different dependencies, you can select which modules deps to install:
pip install etils[array_types,epath,epy]
This is not an official Google product.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file etils-0.7.1.tar.gz
.
File metadata
- Download URL: etils-0.7.1.tar.gz
- Upload date:
- Size: 73.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 207c097dd4180d5e5ab1c7b7ee78b7bf9471e12534deace23b1d392debd292f3 |
|
MD5 | bb73a0b4f4accc0ecb0880151a99c4d0 |
|
BLAKE2b-256 | 8bc569e0e75a8fc0b6cbcb69d221bc5d5653bbb0d56bb3759ccc4f9a2e60e29d |
File details
Details for the file etils-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: etils-0.7.1-py3-none-any.whl
- Upload date:
- Size: 124.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b5140835372e3db8b6e8d7da9e16beb2390ae6f24c253107c8127e4d2205189 |
|
MD5 | 164812ab83680820f09eac0cafa9348b |
|
BLAKE2b-256 | 9afbc42743ff6e1d17c41fead40350a82934f9adee7f906db3389201c788af0a |