twinlab.set_server_url#

twinlab.set_server_url(url, verbose=False)[source]#

Set the server URL for twinLab.

If this is not set the default URL is used: https://twinlab.digilab.co.uk/v3. This default URL will be correct for most users and should not normally need to be changed. Setting this will override the URL set in the environment variable TWINLAB_URL in the .env file for the current session.

Parameters:
  • url (str) – URL for the twinLab cloud.

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

Return type:

None

Example

# Setting the server to test a beta feature
tl.set_server_url("https://twinlab.digilab.co.uk/v3/beta")