thunderbird_accounts.utils.utils

Functions

get_absolute_url(path)

Prepend a path with the correct public facing url, if the path is already an absolute url it returns itself unmodified.

parse_user_agent_info(user_agent_string)

Parse user agent string and return separate browser and OS information.

Classes

JsonSerializer([protocol])

A json-based serializer for our shared redis cache.

thunderbird_accounts.utils.utils.get_absolute_url(path: str) str[source]

Prepend a path with the correct public facing url, if the path is already an absolute url it returns itself unmodified.

class thunderbird_accounts.utils.utils.JsonSerializer(protocol=None)[source]

Bases: object

A json-based serializer for our shared redis cache.

__init__(protocol=None)[source]
thunderbird_accounts.utils.utils.parse_user_agent_info(user_agent_string: str) tuple[str, str][source]

Parse user agent string and return separate browser and OS information.