Automatic GUI for python script with command line arguments?

Question:

Is there any software that auto generates GUI wrappers around python scripts?

My specific scenario is that i wrote a simple script for my father in law to bulk download some stuff from a given url.

Normally you just run the script via

python my_script.py --url https://test.com --dir C:Downloads

and it just downloads all the relevant files from test.com to the Downloads folder.

I think he might be able to handle that but i am not sure and so i was thinking if there is any simple software out there that would allow me to take the script and turn it into an executable that just asks for all arguments and then has a simple run button to execute the script and download the things.

Ideally this would mean that he doesnt have to install python but at the very least allow for easier handling for him.

I am aware that there are libraries that allow for the creation of custom GUIs for python but thought that maybe there already exists something simpler and generic for my very simple and i also think fairly common use case.

Asked By: J.N.

||

Answers:

I ended up using PyInstaller (thanks @Dexty) and rewriting the script to grab the arguments by asking for them via input.

Not exactly a GUI but that still allows the user to just double click the .exe and go from there instead of having to proactively use a CLI.

Answered By: J.N.
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.