https://toml.io/en/ (venv) $ python -m pip install tomli # tic_tac_toe.toml [user] player_x.color = "blue" player_o.color = "green" [constant] board_size = 3 [server] url = "https://tictactoe.example.com" import tomli with open("tic_tac_toe.toml", mode="rb") as fp: config = tomli.load(fp)