Classes

Module tripleblind.team

Teams API

This module allows you to interact with the TripleBlind Router to obtain a list of teams available to the current user.

Classes

class Team

Team()

Static methods

def get_all(allow_cached: bool = True, session: Optional[Session] = None) -> List[Team]

Retrieve a list of teams available to the current user.

Args

allow_cached : bool, optional
When True, allow usage of a previously cached list of teams. Set to False to force syncing with the server. Defaults to True.
session : Session, optional
A connection session. If not specified the default session is used.

Returns

List[dict]
A list of Teams available to the current user, e.g.: [{'id': 1, 'name': 'IniTech'}, {'id': 11, 'name': 'Second Team'}]
def is_valid(team_id: int) -> bool

Check if the current user is a member of the given team ID.

Args

team_id : int
The team ID to check.

Returns

bool
True if the team ID is valid, False otherwise.