r/Python • • 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

executable: https://github.com/Nannigalaxy/PyScript-Engine/releases/download/v1.0.0/pyscript-engine_v1.0.0_py3.10_x86_win64.exe

let me know if you have any thoughts on this.

0 Upvotes

37 comments sorted by

View all comments

Show parent comments

0

u/billsil Aug 18 '24

You asked a straightforward question that I responded to. You responded with questions and then I thought you were OP. You did the exact same thing as me.

1

u/w8eight Aug 18 '24

Nope I knew exactly who I responded to.

You responded to my initial comment with suggestion that packages can be copied to the path etc. but I pointed out that in case of this particular project, there is no python in the path, as it's part of the executable, and besides this project aims at easy to use graphical interface of pointing and clicking run for the script, so manually dropping dependencies in random directories defeats the purpose. I did that to show, that your suggestion doesn't help with the caveat I pointed out.

I really really don't want to continue this discussion, we drifted far away from the original topic already.