Skip to main content

class Team

(service_api: 'ServiceApi',
name: 'str',
attrs: 'Mapping[str, Any] | None' = None)

Description

A class that represents a W&B team. This class provides methods to manage W&B teams, including creating teams, inviting members, and managing service accounts. It inherits from Attrs to handle team attributes.

Args

  • service_api: The service API instance to use for querying W&B.
  • name: The name of the team
  • attrs: Optional dictionary of team attributes

Methods

method create

api: 'Api',
team: 'str',
admin_username: 'str | None' = None
Create a new team.
Arguments
  • api: (Api) The api instance to use
  • team: (str) The name of the team
  • admin_username: (str) optional username of the admin user of the team, defaults to the current user.

method create_service_account

self,
description: 'str'
Create a service account for the team.
Arguments
  • description: (str) A description for this service account

method invite

self,
username_or_email: 'str',
admin: 'bool' = False
Invite a user to a team.
Arguments
  • username_or_email: (str) The username or email address of the user you want to invite.
  • admin: (bool) Whether to make this user a team admin. Defaults to False.