Making a Python script accessible
Hey !
I wrote some scripts to automatize repetitive tasks for my colleagues using python.
Today I execute it for them and send the output through email.
I want to "give" them the script so they can use it whenever they want. I was thinking on making a GUI with tkinter, or making it available through a web app maybe ?
They are totally not tech savvy so teaching them command line will take too much time.
What would be your advice ?
Thanks 🐍!
16 comments · 56% upvoted · other discussions
Where i work i create gui with pyqt en then package them with pyinstaller into a nice exe.
I make my team store the exe's on their desktops. They do not even need to know how to run python scripts or even install the interpretor...
Etheo 3 points · Aug 2018
Agreed - compiling into a stand alone exe seems to be the most sensible solution in this use case. Getting a python environment on their machines or hosting a web app is more troublesome.
oh-my-python [OP] 1 points · Aug 2018
Yeah, I think too. My idea was for them to input a csv, and it would use the info in the file and output either other csv files or html files.
So the process of uploading data seems quite troublesome.
oh-my-python [OP] 1 points · Aug 2018
Ow, I will try this.
Does it work well when including libraries (sql, pandas, etc ...) ? Any precautions to take ?
Thanks !
koning_willy 2 points · Aug 2018
Are you referring to pyinstaller? Not familiar with sql or pandas library. Opencv, pillow, Matplotlib and sqlite however seemed to work just fine :)
ominous_anonymous 2 points · Aug 2018
Yes, there's a
--onefileflag to givepyinstallerto indicate you want everything packaged up.Keep in mind this makes the final executable a lot larger.
oh-my-python [OP] 1 points · Aug 2018
Thanks !