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)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter