MCPcopy Create free account
hub / github.com/stemdeckapp/stemdeck / get_port

Function get_port

app/core/settings.py:129–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127# (default 8080) before spawning the backend; a self-hosted server's --port wins.
128# Changing it needs a restart — the socket is bound at startup.
129def get_port() -> int:
130 with _LOCK:
131 v = _num(_ensure().get("port"))
132 return max(_PORT_MIN, min(_PORT_MAX, v)) if v is not None else DEFAULT_PORT
133
134
135def set_port(value: int) -> int:

Callers 1

_settings_payloadFunction · 0.90

Calls 2

_numFunction · 0.85
_ensureFunction · 0.85

Tested by

no test coverage detected