sys_utils

A set of utilities to get platform information.

Functions

is_mac_os(→ bool)

Indicates MacOS platform.

is_windows_os(→ bool)

Indicates Windows platform.

is_linux_os(→ bool)

Indicates Linux platform.

get_cpu_count(→ int)

Get the number of CPU on the system.

get_username(→ str)

Get the hostname.

Module Contents

is_mac_os() bool[source]

Indicates MacOS platform.

is_windows_os() bool[source]

Indicates Windows platform.

is_linux_os() bool[source]

Indicates Linux platform.

get_cpu_count() int[source]

Get the number of CPU on the system.

get_username() str[source]

Get the hostname.