Developer Tools

PyPortpicker

Third-party Python package module — portpicker. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.portpicker.add_reserved_port()Neutral
#
Signature
portpicker.add_reserved_port(port)

portpicker.add_reserved_port function.

.portpicker.bind()Neutral
#
Signature
portpicker.bind(port, socket_type, socket_proto)

portpicker.bind function.

.portpicker.get_port_from_port_server()Neutral
#
Signature
portpicker.get_port_from_port_server(portserver_address, pid)

portpicker.get_port_from_port_server function.

.portpicker.is_port_free()Neutral
#
Signature
portpicker.is_port_free(port)

portpicker.is_port_free function.

.portpicker.pick_unused_port()Neutral
#
Signature
portpicker.pick_unused_port(pid, portserver_address)

portpicker.pick_unused_port function.

.portpicker.return_port()Neutral
#
Signature
portpicker.return_port(port)

portpicker.return_port function.

.portpicker.NoFreePortFoundError()Neutral
#
Signature
portpicker.NoFreePortFoundError(...)

portpicker.NoFreePortFoundError class.

Fully-Qualified Names

FQNField
portpickerfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import portpicker