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

22 Replies, 692 Views

CLI > config files sometimes.

Use `click` or `argparse` to let users pass settings as flags. Then they don’t even need to touch files.

But yeah, JSON for persistence. Best of both worlds.
Ever tried `traitlets` from the Jupyter team?

It’s awesome for configs with type checking and callbacks. Super underrated for python configure pages.

Docs are a bit sparse, but worth the effort.



Users browsing this thread: 1 Guest(s)