hamyar_paygah.config.server_config

Server configuration.

Handles loading and saving the EMS server configuration.

Attributes

Functions

load_server_address()

Load the server address from the application configuration file.

save_server_address(server_address)

Persist the server address into the application configuration file.

Module Contents

hamyar_paygah.config.server_config._SERVER_ADDRESS_KEY: Final[str] = 'server_address'
hamyar_paygah.config.server_config.load_server_address()

Load the server address from the application configuration file.

Returns:

The stored server address if present and valid, otherwise None.

Return type:

str | None

hamyar_paygah.config.server_config.save_server_address(server_address)

Persist the server address into the application configuration file.

Parameters:

server_address (str) – Server address to store.

Return type:

None