import os
from dataclasses import dataclass


def _read_env(name: str, default: str) -> str:
	return os.getenv(name, default).strip()


@dataclass(frozen=True)
class Settings:
	mysql_host: str = _read_env('MYSQL_HOST', '39.107.252.11')
	mysql_port: int = int(_read_env('MYSQL_PORT', '3366'))
	mysql_user: str = _read_env('MYSQL_USER', 'root')
	mysql_password: str = _read_env('MYSQL_PASSWORD', 'RCX8WRu07M')
	mysql_database: str = _read_env('MYSQL_DATABASE', 'thermal_control_system')


settings = Settings()