class sysinfo

Information about the local system.

sysinfo Members

Constructors none
Static Methods machine_name(), user_name()

sysinfo Details

class cs.sysinfo

Information about the local system.

static machine_name()

Get the user name of the current machine.

Return type:

str

Returns:

The machine name.

Raises:
>>> sysinfo.machine_name()
'mystery'
static user_name()

Get the user name of the current user.

Return type:

str

Returns:

The user name.

Raises:
>>> sysinfo.user_name()
'alex'