Skip to main content

class wandb.apis.public.Team

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

Examples

Look up a team and invite a member.
Create a team and add a service account.

Methods

method Team.create()

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 Team.create_service_account()

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

method Team.invite()

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.