Python Forum
Generating web page from argparse parameters - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Generating web page from argparse parameters (/thread-14034.html)



Generating web page from argparse parameters - gontajones - Nov-12-2018

Hi guys,

Do you know any tool (module) or have any idea to do this?
I'd like to get some python scripts (all using argparse) and build a front-end (simple form with argparse's info) to the final users.
These scripts will be in constant update, so I'll have to check them time to time to see the output of argparse and update the front-end.
I start coding from ground, but it's getting too big. So I think I'm on the wrong way... Confused


RE: Generating web page from argparse parameters - wavic - Nov-12-2018

If it's getting too big separate it to modules and make an app.


RE: Generating web page from argparse parameters - gontajones - Nov-13-2018

I really appreciate your advise but it's not what I'm looking for...
Just to record, I tested warped but it didn't work well. I had to modify a bunch of code from target scripts.


RE: Generating web page from argparse parameters - nilamo - Nov-13-2018

If you'd like help with your code, please share your code :)

You mentioned warped, which sounds exactly like what you're asking. It might be easier to create a wrapper around that, if it's almost what you want.