pywebui.tcpip.services

Module Contents

Classes

Service

Host object.

ServiceMethods

Encapsulates methods for manage services.

class pywebui.tcpip.services.Service(attrs)

Host object.

address

the IP address of service.

Type

str

name

the name of service.

Type

str

port

the listening port.

Type

int

process

the name of process for current service.

Type

str

protocols

(list(str)): the array of service protocols

state

the state of service.

Type

str

class pywebui.tcpip.services.ServiceMethods

Encapsulates methods for manage services.

get_services(self) List[Service]

Returns list of services.

get_service(self, name) Service

Returns the details of selected service.

add_service(self, name: str, process: str, port: int, username: str, file: str) bool

Creates the new service.

edit_service(self, name, **kwds) bool

Edits the selected service.

Service parameters available for modification described in Edit Service API documentation.

delete_service(self, name: str) bool

Delete service.