{"id":23836,"library":"hai","title":"hai - Valohai toolbelt library","description":"hai is a Python utility library developed by Valohai, providing helpers for parallel runs, logging, configuration, and other common infrastructure tasks in ML pipelines. Current version is 0.4.1, with occasional releases.","status":"active","version":"0.4.1","language":"python","source_language":"en","source_url":"https://github.com/valohai/hai","tags":["valohai","toolbelt","parallel","utilities"],"install":[{"cmd":"pip install hai","lang":"bash","label":"Install latest"}],"dependencies":[],"imports":[{"wrong":"from hai import ParallelRun","symbol":"ParallelRun","correct":"import hai"}],"quickstart":{"code":"from hai import ParallelRun\n\nwith ParallelRun() as pr:\n    pr.run(lambda: print('Hello from parallel'))","lang":"python","description":"Run a simple parallel task using ParallelRun context manager."},"warnings":[{"fix":"Upgrade to Python >=3.7","message":"Python 3.6 support dropped in v0.3.0","severity":"breaking","affected_versions":"<0.3.0"},{"fix":"Always use 'with ParallelRun() as pr:' pattern.","message":"ParallelRun context manager requires proper usage; forgetting to use it as context manager can lead to resource leaks.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.4.1':32 'common':23 'configur':20 'current':29 'develop':11 'hai':1,5 'helper':15 'infrastructur':24 'librari':4,10 'log':19 'ml':27 'occasion':34 'parallel':17,38 'pipelin':28 'provid':14 'python':8 'releas':35 'run':18 'task':25 'toolbelt':3,37 'util':9,39 'valohai':2,13,36 'version':30","created_at":"2026-05-01T08:09:53.404904+00:00","updated_at":"2026-05-01T08:09:53.404904+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.4.1","cli_name":"","cli_version":null,"type":"library","homepage":"https://valohai.com","github":"https://github.com/valohai/hai","docs":null,"changelog":null,"pypi":"https://pypi.org/project/hai/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","devops","database","workflow"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}