Skip to main content

Class wandb.apis.public.Registry

method Registry.add_members()

Adds users or teams to this registry.
Arguments
User | UserMember | Team | TeamMember | str
The users or teams to add to the registry. Accepts User objects, Team objects, or their string IDs.
Returns
This registry for further method chaining, if needed.
Raises
If no members are passed as arguments.
If unable to infer or parse the user or team IDs.
Examples

method Registry.collections()

Returns the collections belonging to this registry.
Arguments
dict[str, Any] | None
Optional mapping of filters to apply to the collections query.
str | None
Optional string to specify the order of the results. If prefixed with ’+’, sorts ascending (default). If prefixed with ’-’, sorts descending.
PositiveInt
The number of results to fetch per page. Usually there is no reason to change this.
str | None
Pagination cursor for resuming a past query, captured from a previous paginator’s .cursor attribute.

method Registry.create()

Create a new registry. The registry name must be unique within the organization. This function should be called using api.create_registry()
Arguments
Api
The W&B API instance.
str
The name of the organization.
str
The name of the registry (without the wandb-registry- prefix).
Literal['organization', 'restricted']
The visibility level (‘organization’ or ‘restricted’).
str | None
An optional description for the registry.
list[str] | None
An optional list of allowed artifact types.
Returns
Registry: The newly created Registry object.
Raises
If a registry with the same name already exists in the organization or if the creation fails.

method Registry.delete()

Delete the registry. This is irreversible.

method Registry.load()

Load registry attributes from the backend.

method Registry.members()

Returns the current members (users and teams) of this registry.

method Registry.remove_members()

Removes users or teams from this registry.
Arguments
User | UserMember | Team | TeamMember | str
The users or teams to remove from the registry. Accepts User objects, Team objects, or their string IDs.
Returns
This registry for further method chaining, if needed.
Raises
If no members are passed as arguments.
If unable to infer or parse the user or team IDs.
Examples

method Registry.save()

Save registry attributes to the backend.

method Registry.team_members()

Returns the current member teams of this registry.

method Registry.update_member()

Updates the role of a member (user or team) within this registry.
Arguments
User | UserMember | Team | TeamMember | str
The user or team to update the role of. Accepts a User object, Team object, or their string ID.
MemberRole | str
The new role to assign to the member. May be one of:
  • “admin”
  • “member”
  • “viewer”
  • “restricted_viewer” (if supported by the W&B server)
Returns
This registry for further method chaining, if needed.
Raises
If unable to infer the user or team ID.
Examples
Make all users in the registry admins

method Registry.user_members()

Returns the current member users of this registry.

method Registry.versions()

Returns the artifact versions belonging to this registry.
Arguments
dict[str, Any] | None
Optional mapping of filters to apply to the artifact versions query.
PositiveInt
The number of results to fetch per page. Usually there is no reason to change this.
str | None
Pagination cursor for resuming a past query, captured from a previous paginator’s .cursor attribute.