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.
Related
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.
I've never worked with Django before so forgive me if a question sounds stupid.
I need to develop a web application, but I do not want to deploy it on a server. I need to package it, so that others would "install" it on their machine and run it. Why I want to do it this way? There are many reasons, which I don't want to go into right now. My question is: can I do it? If yes, then how?
This is possible. However, the client machine would need to be equipped with the correct technologies for this to work.
When you launch a web app on a server (live), the server is required to have certain settings and installs. For example, a Django web app: the server must have a version of Django installed.
Hence, whichever machine is running your web app, must have Django installed. It presumably also needs to have the database too. It might be quite a hassling process but it's possible.
Just like as a developer, you may have multiple users working on 1 project. So, they all need to have that project 'installed' on their devices so they can run it locally.
You need to either use a python to executable program, with Django already in it. The website files you can place into the dist folder or whatever folder has the executable in it. Then you can compress it and share it with others (who have the same OS as you).
For an example:
You have this script in Django (I'm too lazy to actually write one), and you want to share it with someone who doesn't have Python and Django on his/her computer.
I created an OSX Something.app using py2app. The app worked great on my computer but then failed when I moved it over to my other computer where I got the warning
The application “CleanScraper” can’t be opened.
The whole point for me packaging my python script up as an app was so I could transfer it easily between machines without having to install all the needed modules each time.
I used Google Drive to try the app on both computers. I also found that when I built a fresh version with py2app on the other machine it worked on that one, but not the first machine.
Is there a trick to making py2app apps transferable between machines? Does the app 'know' its home machine somehow?
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 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.