How do I properly set up a python configure page for my project? or What's the best way to create a p

22 Replies, 1109 Views

For a python configure page, I’d recommend TOML! It’s human-readable and has great lib support (`tomllib` in Py3.11+).

Plus, it’s what `pyproject.toml` uses, so it’s kinda becoming a standard.

Here’s a quick example:
```python
import tomllib
with open("config.toml", "rb") as f:
config = tomllib.load(f)
```

Messages In This Thread



Users browsing this thread: 1 Guest(s)