duck.utils.port_recorderยถ

Module for recording and managing used ports within your web application.

Module Contentsยถ

Classesยถ

PortRecorder

Class to record all ports that will be of use within Duck entire life cycle.

APIยถ

class duck.utils.port_recorder.PortRecorder[source]ยถ

Class to record all ports that will be of use within Duck entire life cycle.

OCCUPIED_PORTS: dict[int, str]ยถ

None

Dict of occupied ports mapping to their occupiers.

classmethod add_new_occupied_port(port: int, occupier: str)[source]ยถ

Adds new port as an occupied port (already in use port).