Class wandb.apis.public.Registry
A single registry in the Registry.Args
Properties
Return whether all artifact types are allowed in the registry.If
True, artifacts of any type can be added. If False, artifacts are
restricted to the types listed in artifact_types.Returns the artifact types allowed in the registry.If
allow_all_artifact_types is True then artifact_types reflects the
types previously saved or currently used in the registry.
If allow_all_artifact_types is False then artifacts are restricted to the
types in artifact_types.Note:
Previously saved artifact types cannot be removed.The GraphQL
internalId for this registry’s backing project, if fetched.This is a base64-encoded global ID. When decoded, it looks like
Project:123 or ProjectInternalId:123.Methods
method Registry.add_members()
Arguments
The users or teams to add to the registry. Accepts
User objects, Team objects, or their string IDs.Raises
TypeError: If no members are passed as arguments.ValueError: If unable to infer or parse the user or team IDs.
Examples
method Registry.collections()
Arguments
Optional string to specify the order of the results. If prefixed with ’+’, sorts ascending (default). If prefixed with ’-’, sorts descending.
Pagination cursor for resuming a past query, captured from a previous paginator’s
.cursor attribute.method Registry.create()
api.create_registry()
Arguments
Raises
ValueError: If a registry with the same name already exists in the organization or if the creation fails.
method Registry.delete()
method Registry.load()
method Registry.members()
method Registry.remove_members()
Arguments
The users or teams to remove from the registry. Accepts
User objects, Team objects, or their string IDs.Raises
TypeError: If no members are passed as arguments.ValueError: If unable to infer or parse the user or team IDs.
Examples
method Registry.save()
method Registry.team_members()
method Registry.update_member()
Arguments
The user or team to update the role of. Accepts a
User object, Team object, or their string ID.The new role to assign to the member. May be one of:
- “admin”
- “member”
- “viewer”
- “restricted_viewer” (if supported by the W&B server)
Raises
ValueError: If unable to infer the user or team ID.
Examples
Make all users in the registry adminsmethod Registry.user_members()
method Registry.versions()
Arguments
Optional string to specify the order of the results. Order can be
created_at, artifact_size, or linked_at. If prefixed with ’+’, sorts ascending (default). If prefixed with ’-’, sorts descending.