I'm interested in creating a tournament template in excel using python, but I don't expect all my users to have python installed. Is there a way to achieve this? Or is there some other easy-to-use gui that would be suitable for something like this? I've looked at addins using PyXLL and such but they seem to require all users to have them installed.
you can try creating a application in pyqt5 and then create exe of that script using pyinstaller
1- Use pip install pyinstaller
2- pyinstaller -onfile yourcode.py
3- this command will create yourcode.exe
yourcode.exe will run on all the machines either python is installed or not
Implement your tournament template generator application as a web application which runs on a server. Then you can use whatever you like to develop it, and your users don't need more than a web browser to run it.
Related
I just made a little Python project, then used PyInstaller to convert it to a .exe. I want to create a shortcut to the desktop when the user downloads it from an HTML page I made. Any way to do this?
The best way to go about this is to set up a windows installer for your python program. This installer can also be made in python, by the way, this method is fairly unorthodox since you would not make windows style apps with python.
https://python101.pythonlibrary.org/chapter44_creating_an_installer.html
I recommend you take a look at the link above, it gives a good guide on creating an installer for your program as well as how to package it properly.
Hope it Helps :)
I made a python program with pyautogui. I want to release this to my friends. But they seldom want to download python and pyautogui. I wanna know how to run this without downloading these programs. Or can you explain me an easier way to use pyautogui for my friends (without using pip).
You can create a standalone application so that they can run it on their device.
for Windows you can use Py2exe
for MacOs you can use Py2app
Recently I've been working on a project that involves a phone taking a picture, processing it in some way, and returning the output on the screen. In order to do this, I would have to use openCV, but when I try to "import cv2" in the Kivy code using the launcher, the app crashes immediately after I run it. I realize now that the reason this happens is because the Kivy launcher by itself can only do basic functions like print and such and there must be extra steps needed to use external libraries. I tried to use Buildozer to create a package for android, but soon found out that it only would work for linux computers, while I use Windows.
Essentially, my question is: Is there any way to include an external library in Kivy without using buildozer? And if there is, could you please describe it or post a link to a webpage that contains instructions(as I am fairly new to programming and am somewhat of a noob)
Thanks!
You can try python-for-android.
But the easiest way - install virtual box to your PC, download kivy/buildozer for VirtualBox( it calles Virtual Machine (for Android/buildozer)) here below: https://kivy.org/#download and then just connect downloaded vmdk-disk to VirtualBox, and then use this. Everything is prepared, you don't need to install kivy or buildozer.
You will spend about 30-40 minutes.
Not sure if this is the location to ask this, so please close or move as appropriate.
We are bundling Python2.7 64-bit and a number of python libraries (GDAL, SciPy, Numpy) into an application (py2app / pyinstaller). I wonder if it is possible to create a stand alone terminal that has access to the installed libraries, but not the system libraries. This would be akin to FWTools.
The goal is to allow the user to open a command prompt within the GUI and have access to all of the libraries within the application a la a virtual environment.
For example, a user with GDAL 1.8 installed could download this application, launch a stand alone command line and utilize our build of gdal 1.9.1 from within the application.
Any references would be appreciated as we are just considering this approach and are unsure of the feasibility.
We are writing this in python.
There isn't a very easy way to embed a console / terminal into any of the GUI frameworks. The closest I've heard of is PyGTK's VteTerminal. You might be able to use Python's curses library, but I haven't been able to find any good ways to wrap that in a GUI either.
If all you want is a Python shell, you might be able to use wxPython's PyShell or PyCrust widgets. Those are pretty straight-forward.
I would like to build an admin section into my App Engine app that will allow me to download and install python modules dynamically.
Any ideas on the most efficient way to accomplish this, without the ability to write to file system?
Are there any examples of this being done?
Does python27 support of setuptools make this easier?
Edit:
My initial thought is that this could be accomplished by downloading an egg or zip file dynamically. Saving it to the blobstore, and loading if from there.
Is this posible?
What kind of performance issues would this create?
On GAE you has no access to the file system, that's why you can't install any third-party packages on your instance, you can only distribute they with your own code.
In your app directory create a folder called 'lib'. For any module you want to add, just unzip it and add it to lib. Then redeploy your application using the console or Google App Launcher. Repeat every time you want to add a new module.
I'm not 100% sure about this. But it seems to me that if don't want a manual process involved then I would suggest dynamically adding the module content as a blob store entry and loading the module at runtime.
But the trick as the previous answer states is that to use a package, its code needs to be present in your app.