I'm trying to build a Windows Application in Python.
But, sometimes I question myself, can this Application run on another person's PC without installing Python?
Will it have any flows because of python?
I heard most people use C++ for Windows Applications?
Will I be able to provide Updates for my Application to every user by Python code?
Yes You can Definitely Create a Production Level App Using Python
And the App can be run-able on any other person's Computer Without Installing python
Also, many Big companies use python to build desktop Apps
You can start making desktop apps using these python Frameworks -
Tkinter
Kivy
PysimpleGUI
PyQt
By generating an executable of your application it will run on someone else's PC without installing Python.
PyInstaller performs this task of generating the executable.
The flow is to generate the app executable by packaging python inside the app.
You will be able to update the application indirectly by updating accessory files. In case the python code has changed, you will have to generate a new executable.
Related
I want to develop a Windows/macOS app on my Windows machine, I aim to upload the executable file and upload it on the internet so that people with macOS can run it just like on windows.
Is that possible?
I tried searching on this topic on the internet and didn't get satisfying results.
I know that iOS prohibits installation of apps from unknown sources unless you use your phone for development or jailbreak the phone. So the question was actually if the same is applied to macOS. I know I can build apps and make executable files, one for each platform. I searched the web for a long time until I found the answer, that yes, I can just make a script and run it on macOS without any complications.
I am trying to build an iOS application using Kivy, is it possible to pack this application using Windows machine?
I'm afraid not. It might be possible using a macOS virtual machine under Windows, but of course Apple make this difficult and probably forbid it.
If there are web services providing app build infrastructure then it may be possible to use them.
you have to make a linux VM on your Windows system and use BUILDOZER to make a full working iOS package with your kivy code.
Docs here: https://buildozer.readthedocs.io/en/latest/
I want to deploy my python application to my customers. Well, I basically don't know much about python application deployment, but my requirements/questions are
1) The user can install it as long as they can access internet. For mac applications, they are all hosted by apple app store. For chrome extensions, they are hosted by google. My question is, if there's a similar place that are hosting python applications, and it provides updating mechanism? If I have to do it on my own, is there any existing framework stuff for me to do it?
2) My application would be used to read USB device, and act as a http server. I want the install package to be as small as possible, and I also need to package python runtime. What is the package size that I should be expecting? 5M? 10M?
I have sucesfully used pyinstaller for my project
https://github.com/pyinstaller/pyinstaller/wiki
My application is reasonably large, so the installer package is around 100MB which compresses to 60MB. A lot of that is numpy, qt, scipy, and matplotlib.
We use a script to invoke pyinstaller which packages our main script and dependencies into a .app file. https://github.com/Erotemic/ibeis/blob/next/installers.py
If you are installing on a mac, this script in my repo will take a pyinstaller package and bundle it into a dmg.
https://github.com/Erotemic/ibeis/blob/next/_scripts/mac_dmg_builder.sh
If you host your program on your own server you can integrate an auto-update mechanism, but I don't know how to do that exactly. I just host my installers on dropbox.
I have been getting into programming and I would love it if my friends and I could program python (Client Side as in I could run it on my computer offline(Saying it is an offline application)) in cloud 9 IDE (If you don't know you can work real time with your team in the IDE). The problem is it will run it as if I am using it as a web language. Also DJANGO just gets in the way.
Any way I can launch it as an application?
You need not install Django on Cloud9. You've got the option to install a blank container. From there you can pip install anything like. Write your .py file and then python run myfile.py -- Link to Cloud9 Docs
While not as slick as Cloud9 Python Anywhere which is more focussed on Python Apps.
I am creating a Python application that uses multiple third party libraries. Since the libraries are installed on my computer, the script runs fine. However, how can I alter my script so that it will run on any computer (all major OS), even if the computer does not have the third party Python libraries installed?
By your comment:
I want the script to stay a python script if at all possible so that
it can be run on any device and run through a webpage
It appears you want some way to host a python program online.
To do this, you need:
To know how to write Python that serves a website (see Django, Flask, CherryPy, etc...)
Some way to deploy said application to the web. An easy, free (<-- this is the keyword) way to deploy Python web apps is through using Heroku or some other free hosting site. Or you could always pay for hosting or host it yourself.