Attributes

toloka.client.user.User.Attributes | Source code

Attributes(
self,
*,
country_by_phone: Optional[str] = None,
country_by_ip: Optional[str] = None,
client_type: Optional[str] = None,
user_agent_type: Optional[str] = None,
device_category: Optional[str] = None,
os_family: Optional[str] = None,
os_version: Optional[float] = None,
os_version_major: Optional[int] = None,
os_version_minor: Optional[int] = None,
os_version_bugfix: Optional[int] = None
)

Information obtained from the Toloker's device.

Parameters description

ParametersTypeDescription
country_by_phoneOptional[str]

The country determined based on the phone number.

country_by_ipOptional[str]

The country determined based on the IP address.

client_typeOptional[str]

The client which the Toloker uses to access the platform:

  • TOLOKA_APP — A mobile application.
  • BROWSER — A browser.
user_agent_typeOptional[str]

The user agent type which the client application uses to identify itself:

  • BROWSER — The desktop browser user agent.
  • MOBILE_BROWSER — The mobile browser user agent.
  • OTHER — User agents which could not be identified as either desktop or mobile browsers. Normally, the Toloka mobile application identifies itself as OTHER.
device_categoryOptional[str]

The category of the device:

  • PERSONAL_COMPUTER — A personal computer.
  • SMARTPHONE — A smartphone.
  • TABLET — A tablet device.
  • WEARABLE_COMPUTER — A wearable device, such as a smart watch.
os_familyOptional[str]

The operating system family installed on the device:

  • ANDROID — Android mobile operating system based on a modified version of the Linux kernel, designed primarily for touchscreen mobile devices.
  • BLACKBERRY — BlackBerry OS mobile operating system developed by BlackBerry Limited for its BlackBerry smartphone devices.
  • BSD — An operating system based on Research Unix, developed and distributed by the CSRG, and its open-source descendants like FreeBSD, OpenBSD, NetBSD, and DragonFly BSD.
  • IOS — iOS mobile operating system developed by Apple Inc. exclusively for its mobile devices.
  • LINUX — A family of open-source Unix-like operating systems based on the Linux kernel.
  • MAC_OS — Classic Mac OS operating system developed by Apple Inc. before 2001 for the Macintosh family of personal computers.
  • OS_X — macOS operating system developed by Apple Inc. since 2001 for Mac computers.
  • WINDOWS — Microsoft Windows operating system developed and marketed by Microsoft for personal computers.
os_versionOptional[float]

The version of the OS. The version consists of major and minor version numbers and is represented as a single floating point number, for example, 14.4.

os_version_majorOptional[int]

The major version of the OS.

os_version_minorOptional[int]

The minor version of the OS.

os_version_bugfixOptional[int]

The build number or the bugfix version of the OS.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming