Python Forum

Full Version: Stand Alone Python App
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am new to Python. I've been exploring to write a code for the following.

I use Django. I want a web page to be displayed with few empty fields. When the user enters values and hits a button. I want the values to be placed in a Word template and I want this doc to be saved. I want this to be a stand alone app. It should run on other windows machine.

I got confused while trying. Not sure whether what I am dong is right. I want to write a web interface, and at the sametime I want it to be a stand alone app. Is it possible? If not web interface, any form (like in vb) that will have fields and buttons.

Please advise.
You could use pyinstaller to bundle your application to a directory or into a single exe file.

There is also nuitka, which translates Python Code to C++ and then it compiles it.
This may speed up the application.


Another possible solution could be the installer NSIS. The module pynsist can collect everything for you and bundle the application into the NSIS installer. Also a embedded Python version will be included and you can specify which dependencies you want to have installed.

But in first place, write your program.
Only if your program has been finished, you know which dependencies need to installed.

There is also a new cool package called pip-tools, where you define a requirements.in, which has your dependencies:

django
sqlalchemy
pyexcel
requests
...
The pip-compile looks up for all packages and creates the requirements.txt with the latest working versions.
Hi,

Thank you for your reply.

I have a doubt. I am writing a web application which uses my localhost to run. But, is it possible to run it in another windows system (after making into a package)? My doubt is when I am writing, it is using my localhost. But, in another machine when I deploy, will it work? where will it run?