pywebui.tcpip.subsystems

Module Contents

Classes

Subsystem

Subsystem object.

SubsystemAttributes

Subsystem attributes object.

SubsystemMethods

Encapsulates methods for manage subsystems.

class pywebui.tcpip.subsystems.Subsystem(attrs)

Subsystem object.

configured

the subsystem is configured or not (boolean value).

Type

bool

display

display this subsystem in WebUI or not (boolean value). The true for subsystems “inet”, “net” and “socket”, for other - false.

Type

bool

name

the name of subsystem.

Type

str

status

the status of subsystem.

Type

str

get_attribute(self, name)

Return attribute object.

class pywebui.tcpip.subsystems.SubsystemAttributes(attrs)

Subsystem attributes object.

currentValue

the current value of attribute.

Type

int

maxValue

the max value of attribute.

Type

int

minValue

the min value of attribute.

Type

int

name

the name of attribute.

Type

str

class pywebui.tcpip.subsystems.SubsystemMethods

Encapsulates methods for manage subsystems.

get_subsystems(self) List[Subsystem]

Returns list of subsystems.

get_subsystem(self, name) Subsystem

Returns the information about configuration of selected subsystem.

edit_subsystem(self, name: str, attribute: str, value: int) bool

Edits the current value of attribute for selected subsystem.