Utilities
- mlopus.mlflow.list_api_plugins()[source]
List all API plugins available in this environment.
- Return type:
List
[EntryPoint
]
- mlopus.mlflow.get_api(plugin=None, cls=None, conf=None)[source]
Load MLflow API class or plugin with specified configuration.
The default API class is
MlflowApi
(registered under the plugin name mlflow).- Parameters:
- Plugin name from group mlopus.mlflow_api_providers.Incompatible with
cls
. cls¶ (
Union
[Type
[TypeVar
(API
, bound=BaseMlflowApi
)],str
,None
]) –A type that implementsBaseMlflowApi
or a fully qualified class name of such a type (e.g.: package.module:Class).Incompatible withplugin
.conf¶ (
Optional
[Dict
[str
,Any
]]) –A dict of keyword arguments for the resolved API class.
- Return type:
Union
[BaseMlflowApi
,TypeVar
(API
, bound=BaseMlflowApi
)]- Returns:
API instance.
- mlopus.mlflow.api_conf_schema(plugin=None, cls=None)[source]
Get configuration schema for MLflow API class or plugin.
- Parameters:
- See
get_api.plugin
. cls¶ (
Union
[Type
[TypeVar
(API
, bound=BaseMlflowApi
)],str
,None
]) –Seeget_api.cls
.
- Return type:
Dict
[str
,Any
]