BT.system

BT.system

BT.system

Function

returns lightweight system fields. This method only reads the compilation target and the number of available parallel threads, and does not scan hardware, disks, network interfaces, or host information.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
None-NoNoneNo parameters required.

Return Value

TypeDescription
ObjectReturns a lightweight system information object. See "Return Object Fields" below for fields.

Return object field

FieldTypeMust existDescription
osStringYesCurrent target operating system name, such as windows, linux, macos.
archStringYesCurrent CPU architecture name, such as x86_64, aarch64.
familyStringYesThe current operating system family, such as windows, unix, wasm.
threadsIntYesNumber of parallel threads available in the current system. 1 is returned when the read fails.

Examples

Notes

  • BT.system() does not scan CPU details, memory, disk, network card, or hostname.