twinlab.set_user#

twinlab.set_user(username, verbose=False)[source]#

Set the username for their twinLab cloud account.

Setting this will override the user set in the environment variable TWINLAB_USER in the .env file for the current session. This function can also be used instead of setting a TWINLAB_USER in a .env file. Note that a twinLab username is usually an email address.

Parameters:
  • username (str) – Username for access to the twinLab cloud.

  • verbose (bool, optional) – Display information about the operation while running.

Return type:

None

Example

tl.set_user("example@digilab.co.uk")