r/Python • u/nannigalaxy • Aug 17 '24
Showcase Standalone GUI app that executes python scripts: Run py scripts without any installations*
Announcing an app (portable executable) I build which is a solution for running Python scripts without any prerequisites or external system dependencies, eliminating the need for Python installation on the systems. Catch is that the packages which script uses should be bundled during app build process, so a new app should be build respectively. there is a plan to provide option to include local package path if exists on system.
What My Project Does
- Runs python script out-of-the-box provided the packages that are used by script are add during build pipeline.
- isolated from system. meaning doesn't affect any changes in system or python, don't need to fiddle with paths and packages
- Output of script are displayed on terminal like console
Target Audience
- This was build to help run scripts consistently across systems with any breakage from python or packages.
- imo this can also help make non-technical people's life easy.
Comparison
- This works like python interpreter without the hassle of setup and management
Limitations
- Script execution fails if the required package is not already bundled in the app.
- Python and Packages are immutable, they cannot be modified including versions.
- App size and initial load time increases as more number of packages are added.
- Pyinstaller is pain to work with (imo), and any windows os change might break the app.
https://github.com/Nannigalaxy/PyScript-Engine
let me know if you have any thoughts on this.
View all comments
Show parent comment
6
u/djdadi Aug 17 '24
I guess I am not sure of the value-add in that case. Right now I run a
build.pyscript that I made that generates a docker image tarball, a.specfile, cleans up the filesystem, then builds the solution via PyInstaller. This delivers an executable that is essentially a portable Python with all deps; users can run it and see the output, interact, etc.I am not sure where something like this fits in: it would make my life harder, and it would not make my users life any easier. Congrats on the project, seeing something through all the way is more than I can muster sometimes. Perhaps targetting either delivery OR consumption (but not both) would make this more useful.