util

  • Various functions not directly related to any API

  • You don’t need to import this module - simply call these from the main module like nadeo_api.<function>

account_id_from_login(account_login: str) str[source]
  • converts a base64-encoded login to a Ubisoft account ID (UUID)

Parameters:

account_login (str) –

  • base64-encoded login

Returns:

  • account ID (UUID)

Return type:

str

account_login_from_id(account_id: str) str[source]
  • converts a Ubisoft account ID (UUID) to a base64-encoded login

Parameters:

account_id (str) –

  • account ID (UUID)

Returns:

  • base64-encoded login

Return type:

str

stamp(milliseconds: bool = False) int[source]
  • returns the current epoch time

Parameters:

milliseconds (bool) –

  • whether to return milliseconds instead of seconds

  • default: False

Returns:

  • the current epoch time

Return type:

int

valid_uuid(uuid: str) bool[source]
  • checks if a given string looks like a valid UUID

Parameters:

uuid (str) –

  • string to check

Returns:

  • whether given string looks like a valid UUID

Return type:

bool