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 Common errors
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)
Warnings
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
Imports
- ApiClient wrong
from hopsworks_apigen.client import ApiClientcorrectfrom hopsworks_apigen import ApiClient - Configuration wrong
from hopsworks_apigen.config import Configurationcorrectfrom hopsworks_apigen import Configuration - AuthApi
from hopsworks_apigen.api import AuthApi
Quickstart
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.