import tomllib from pathlib import Path _cfg = tomllib.loads((Path(__file__).parent / "config.toml").read_text()) MONGO_URI = _cfg["mongo"]["uri"]