kfp.registry¶
The kfp.registry module contains objects for communicating with registry client hosts.
Classes:
|
Class for communicating with registry hosts. |
|
Class for registry authentication using an API token. |
-
class kfp.registry.RegistryClient(host: str | None, auth: AuthBase | Credentials | None =
None
, config_file: str | None =None
, auth_file: str | None =None
)[source]¶ Bases:
object
Class for communicating with registry hosts.
- Parameters¶
- host: str | None¶
The address of the registry host. The host needs to be specified here or in the config file.
- auth: AuthBase | Credentials | None =
None
¶ Authentication using
requests.auth.AuthBase
orgoogle.auth.credentials.Credentials
.- config_file: str | None =
None
¶ The location of the local config file. If not specified, defaults to
'~/.config/kfp/context.json'
(if it exists).- auth_file: str | None =
None
¶ The location of the local config file that contains the authentication token. If not specified, defaults to
'~/.config/kfp/registry_credentials.json'
(if it exists).
Methods:
upload_pipeline
(file_name[, tags, extra_headers])Uploads the pipeline.
download_pipeline
(package_name[, version, ...])Downloads a pipeline.
get_package
(package_name)Gets package metadata.
Lists packages.
delete_package
(package_name)Deletes a package.
get_version
(package_name, version)Gets package version metadata.
list_versions
(package_name)Lists package versions.
delete_version
(package_name, version)Deletes package version.
create_tag
(package_name, version, tag)Creates a tag on a package version.
get_tag
(package_name, tag)Gets tag metadata.
update_tag
(package_name, version, tag)Updates a tag to another package version.
list_tags
(package_name)Lists package tags.
delete_tag
(package_name, tag)Deletes package tag.
-
upload_pipeline(file_name: str, tags: str | list[str] | None =
None
, extra_headers: dict | None =None
) tuple[str, str] [source]¶ Uploads the pipeline.
-
download_pipeline(package_name: str, version: str | None =
None
, tag: str | None =None
, file_name: str | None =None
) str [source]¶ Downloads a pipeline. Either version or tag must be specified.
- get_package(package_name: str) dict[str, Any] [source]¶
Gets package metadata.
- delete_package(package_name: str) bool [source]¶
Deletes a package.
- get_version(package_name: str, version: str) dict[str, Any] [source]¶
Gets package version metadata.
- list_versions(package_name: str) list[dict] [source]¶
Lists package versions.
- delete_version(package_name: str, version: str) bool [source]¶
Deletes package version.
- create_tag(package_name: str, version: str, tag: str) dict[str, Any] [source]¶
Creates a tag on a package version.
- get_tag(package_name: str, tag: str) dict[str, Any] [source]¶
Gets tag metadata.
- update_tag(package_name: str, version: str, tag: str) dict[str, Any] [source]¶
Updates a tag to another package version.
- list_tags(package_name: str) list[dict] [source]¶
Lists package tags.