hai
is a collection of helpful Python snippets used at Valohai.
pip install hai
python
>>> import hai; print(hai.__version__)
Installing editable library version in the current virtual environment for development.
# development dependencies require Python 3.8+
pip install -e . -r requirements-test.txt pre-commit && pre-commit install
# if you want to manually run lints...
pre-commit run --all-files
# if you want to run tests...
pytest
# if you want to try it out...
python
>>> import hai; print(hai.__version__)
The library is released to both GitHub Releases (https://github.com/valohai/hai) and PyPI (https://pypi.org/project/hai/) simultaneously.