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.etils.eapp
: Absl flags/app utils.- API design guide.
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-1.9.0.tar.gz
.
File metadata
- Download URL: etils-1.9.0.tar.gz
- Upload date:
- Size: 101.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d0f8ddaa8e0e640c685ed7a7fe1fc5c8162533fa12fb945f09ecc539b0b366c |
|
MD5 | ac9cd9fa608b217454d1d4e258dacdad |
|
BLAKE2b-256 | 8e39314de3ecb4f50f8c131155c537d64e3a5ba06ee66eb42b91a8577bb3360f |
File details
Details for the file etils-1.9.0-py3-none-any.whl
.
File metadata
- Download URL: etils-1.9.0-py3-none-any.whl
- Upload date:
- Size: 161.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4b9ea97a888f7c8e07de37d0547e303298f4bb7616143c5f027a99a82a6cd84 |
|
MD5 | 7b3ad6a3706ab0ca0eab19e0f6362fce |
|
BLAKE2b-256 | 4e8108870166520b8b4e25469af8f49a06c5d069c31a38e08477dc6efd912902 |