WebDeviceInfo
Information derived from navigator.
Inherits: DeviceInfo
Properties
app_code_name- The internal 'code' name of the current browser.app_name- A string with the official name of the browser.app_version- The version of the browser as a string.browser_name- The name of the browser in use.device_memory- The amount of device memory in gigabytes.hardware_concurrency- The number of logical processor cores available.language- A string representing the preferred language of the user, usually the language of the browser UI.languages- A list of strings representing the languages known to the user, by order of preference.max_touch_points- The maximum number of simultaneous touch contact points supported by the current device.platform- A string representing the platform of the browser.product- Always returns"Gecko", on any browser.product_sub- The build number of the current browser.user_agent- The user agent string for the current browser (e.g., 'Mozilla/5.0 ...').vendor- The vendor name of the current browser.vendor_sub- Returns the vendor version number (e.g., '6.1').
Properties
app_code_nameclass-attributeinstance-attribute
app_code_name: str | None = NoneThe internal 'code' name of the current browser.
Do not rely on this property to return the correct value.
app_nameclass-attributeinstance-attribute
app_name: str | None = NoneA string with the official name of the browser.
Do not rely on this property to return the correct value.
app_versionclass-attributeinstance-attribute
app_version: str | None = NoneThe version of the browser as a string.
Do not rely on this property to return the correct value.
device_memoryclass-attributeinstance-attribute
device_memory: float | None = NoneThe amount of device memory in gigabytes.
This value is an approximation given by rounding to the nearest power of 2 and
dividing that number by 1024.
hardware_concurrencyclass-attributeinstance-attribute
hardware_concurrency: int | None = NoneThe number of logical processor cores available.
languageclass-attributeinstance-attribute
language: str | None = NoneA string representing the preferred language of the user, usually the language of the browser UI.
Will be None if unknown.
languagesclass-attributeinstance-attribute
languages: list[str] | None = NoneA list of strings representing the languages known to the user, by order of preference.
max_touch_pointsclass-attributeinstance-attribute
max_touch_points: int | None = NoneThe maximum number of simultaneous touch contact points supported by the current device.
platformclass-attributeinstance-attribute
platform: str | None = NoneA string representing the platform of the browser.
Do not rely on this property to return the correct value.
productclass-attributeinstance-attribute
product: str | None = NoneAlways returns "Gecko", on any browser.
Do not rely on this property to return the correct value. This property is kept only for compatibility purposes.
product_subclass-attributeinstance-attribute
product_sub: str | None = NoneThe build number of the current browser.
Do not rely on this property to return the correct value.
user_agentclass-attributeinstance-attribute
user_agent: str | None = NoneThe user agent string for the current browser (e.g., 'Mozilla/5.0 ...').
vendorclass-attributeinstance-attribute
vendor: str | None = NoneThe vendor name of the current browser.
vendor_subclass-attributeinstance-attribute
vendor_sub: str | None = NoneReturns the vendor version number (e.g., '6.1').
Do not rely on this property to return the correct value.