auth package

Submodules

auth.auth module

auth.auth.get_email_address_for_user(user_id: str) → str
auth.auth.get_non_tta_members() → list[User]

get a list of all members that are not TTA members :return: the list of non-TTA Users

auth.auth.get_user_by_id(user_id: str) → User

method to get a User from an ID

Parameters:

user_id – the ID of the User - we expect an int

Returns:

a User object

Raise:

ValueError if not user is fount with that id, or if the user_id is a str

auth.auth.get_user_by_username(username: str) → User

Search for a User by their username

Parameters:

username – Username to search by

Raises:

ValueError – When no User is found with the given username

Returns:

The User with the given username

auth.auth.get_users() → list[User]

get a list of all members :return: the list of Users we know about

Module contents