import tomllib with open("config.toml", "rb") as f: config = tomllib.load(f) def get(q: str): return config.get(q, None)