{"id":24804,"library":"valohai-papi","title":"Valohai PAPI","description":"Experimental imperative Valohai pipeline API for building and executing machine learning pipelines. Current version 0.1.3, requires Python >=3.6.1, <4.0.0. This library is in early development with frequent breaking changes.","status":"active","version":"0.1.3","language":"python","source_language":"en","source_url":"https://github.com/valohai/papi","tags":["valohai","pipeline","ml","experimental"],"install":[{"cmd":"pip install valohai-papi","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"note":"pypi package name differs from import path; papi is not a top-level module.","wrong":"import papi","symbol":"pipeline","correct":"from valohai.papi import pipeline"}],"quickstart":{"code":"from valohai.papi import pipeline\n\n@pipeline\ndef my_pipeline(message: str) -> None:\n    print(f\"Hello {message}\")\n\nif __name__ == \"__main__\":\n    my_pipeline(message=\"world\")","lang":"python","description":"Define and run a simple Valohai pipeline using the decorator."},"warnings":[{"fix":"Pin to exact version and test after upgrades.","message":"The API is experimental and subject to breaking changes between minor versions. Do not rely on internal modules or undocumented functions.","severity":"breaking","affected_versions":"all"},{"fix":"Use `from valohai.papi import pipeline`.","message":"The import path is `valohai.papi`, not `papi` or `valohai_papi`. The package name on PyPI uses hyphens, but Python modules use dots.","severity":"gotcha","affected_versions":"all"},{"fix":"Monitor the GitHub repository for deprecation notices.","message":"The `@pipeline` decorator may change or be replaced as the API evolves. Check documentation for the latest approach.","severity":"deprecated","affected_versions":"0.1.0 - 0.1.3"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `from valohai.papi import pipeline`","cause":"Incorrect import path; tried `import papi` instead of `from valohai.papi import ...`","error":"ModuleNotFoundError: No module named 'papi'"},{"fix":"Upgrade/downgrade to a compatible version or check the installed package version and documentation.","cause":"Mismatched version where the `pipeline` symbol does not exist or was renamed.","error":"ImportError: cannot import name 'pipeline' from 'valohai.papi'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}