uniqc.gateway.config module

Gateway server configuration — reads gateway.port/host from config.yaml.

uniqc.gateway.config.load_gateway_config()[source]

Load the [gateway] section from ~/.uniqc/config.yaml.

If the key is absent the defaults apply:

port: 18765 host: 127.0.0.1 (localhost-only for security)

Return type:

dict[str, Any]

uniqc.gateway.config.save_gateway_config(*, port=None, host=None)[source]

Persist gateway settings into config.yaml, preserving all other keys.

Parameters:
  • port (int | None)

  • host (str | None)

Return type:

None