biolm.hub package

Subpackages

Submodules

biolm.hub.catalog module

Platform and bundled OSS model catalog (not hub route discovery).

biolm.hub.catalog.catalog_by_slug() Dict[str, Dict[str, Any]]
biolm.hub.catalog.clear_catalog_cache() None

Clear cached platform catalog (for tests).

biolm.hub.catalog.fetch_official_catalog(*, force_refresh: bool = False) List[Dict[str, Any]]

Fetch the official model catalog from the BioLM platform (biolm.ai).

biolm.hub.catalog.get_catalog_model(slug: str) Dict[str, Any] | None
biolm.hub.catalog.list_catalog_models() List[Dict[str, Any]]
biolm.hub.catalog.official_catalog_slugs() Set[str]

Slugs in the official BioLM catalog.

biolm.hub.config module

Persisted configuration for pointing biolm-sdk at a biolm-hub gateway.

biolm.hub.config.clear_hub_config() bool
biolm.hub.config.config_path() Path
biolm.hub.config.hub_origin(api_url: str) str

Strip /api/v* suffix to get the site root (catalog UI, health).

biolm.hub.config.is_hub_api_url(url: str) bool
biolm.hub.config.normalize_hub_url(url: str) str

Normalize a bh serve / gateway URL to the v1 API base.

biolm.hub.config.read_config() Dict[str, Any]
biolm.hub.config.read_hub_api_url() str | None
biolm.hub.config.write_hub_api_url(url: str) Path

biolm.hub.discovery module

Discover models and health from a biolm-hub gateway (bh serve or deployed).

biolm.hub.discovery.fetch_hub_status(base_url: str, *, client: Client | None = None) Dict[str, Any]

Probe hub health and return summary metadata.

biolm.hub.discovery.list_models_from_openapi(base_url: str, *, client: Client | None = None) List[Dict[str, Any]]

Fetch model slugs and actions from hub OpenAPI.

biolm.hub.discovery.parse_openapi_paths(paths: Dict[str, Any]) List[Dict[str, Any]]

Parse OpenAPI paths into model list entries for the CLI.

Module contents

biolm-hub integration: connect biolm-sdk to a running bh serve / gateway.

biolm.hub.clear_hub_config() bool
biolm.hub.config_path() Path
biolm.hub.fetch_hub_status(base_url: str, *, client: Client | None = None) Dict[str, Any]

Probe hub health and return summary metadata.

biolm.hub.is_hub_api_url(url: str) bool
biolm.hub.list_models_from_openapi(base_url: str, *, client: Client | None = None) List[Dict[str, Any]]

Fetch model slugs and actions from hub OpenAPI.

biolm.hub.normalize_hub_url(url: str) str

Normalize a bh serve / gateway URL to the v1 API base.

biolm.hub.read_hub_api_url() str | None
biolm.hub.write_hub_api_url(url: str) Path

We speak the language of bio-AI

© 2022 - 2026 BioLM. All Rights Reserved.