跳转到主要内容

工具库

项目描述

hai — Python实用库

hai 是 Valohai(https://valohai.com/)使用的 Python 有用片段的集合。

用法

pip install hai

python
>>> import hai; print(hai.__version__)

开发

在当前虚拟环境中安装可编辑的库版本以进行开发。

# 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__)

发布

该库同时发布到 GitHub 发布(https://github.com/valohai/hai)和 PyPI(《https://pypi.ac.cn/project/hai/》)。

由以下支持