Hopsworks Apigen

raw JSON →
1.0.5 verified Mon Apr 27 auth: no python

An auto-generated API client for Hopsworks Feature Store, providing low-level access to the Hopsworks REST API. Version 1.0.5 is current; release cadence is irregular.

pip install hopsworks-apigen
error ModuleNotFoundError: No module named 'hopsworks_apigen'
cause Tried to import with the hyphen name 'hopsworks-apigen' as a module.
fix
Use import hopsworks_apigen (underscore not hyphen)
error AttributeError: module 'hopsworks_apigen' has no attribute 'ApiClient'
cause Incorrect import path; ApiClient might be in a submodule.
fix
Use 'from hopsworks_apigen import ApiClient' (top-level)
gotcha The package name has a hyphen (hopsworks-apigen) but import uses underscore (hopsworks_apigen).
fix Use import hopsworks_apigen, not import hopsworks-apigen
deprecated Version 1.0.5 may be the last in the 1.x line; check for migration guides to 2.x if available.
fix Review changelog for any 2.x releases
breaking API endpoints and models may change without notice; generated code can be incompatible across minor versions.
fix Pin to exact version in requirements.txt

Initialize client and authenticate

from hopsworks_apigen import ApiClient, Configuration
from hopsworks_apigen.api import AuthApi

config = Configuration(host="https://api.hopsworks.ai")
client = ApiClient(config)
auth_api = AuthApi(client)
# Use auth_api.login(...) etc.