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

+- Proxy Community (https://proxycommunity.com/forum)
+-- Forum: Technical Community Support (https://proxycommunity.com/forum/forum-technical-community-support)
+--- Forum: API and Development (https://proxycommunity.com/forum/forum-api-and-development)
+--- Thread: How do I properly set up a python configure page for my project? or What's the best way to create a p (/thread-how-do-i-properly-set-up-a-python-configure-page-for-my-project-or-what-s-the-best-way-to-create-a-p)

Pages: 1 2 3


“” - cloakHawk88 - 22-03-2025

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.


“” - DeepMimic77 - 23-03-2025

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.