Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stand Alone Python App
#1
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.
Reply
#2
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.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#3
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to compile a stand alone executable on linux? JackDinn 4 7,023 Mar-11-2018, 10:22 PM
Last Post: JackDinn

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020