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
Related
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.
I'm looking for an equivalent Python library that will work when I run my script on Raspberry Pi. I'm under the impression that pywinauto only works on windows machine.
I want to control some inputs to a GUI launched by my script, using my script. Apart from pywinauto I have no idea how to do this. I thought about using command line to control the software directly, but if there is a simpler way I would really appreciate knowing about it.
Thanks for your time.
ATSPI is an Linux accessibility technology to obtain GUI text/rectangle properties programmatically. See how to find and run ATSPI registry daemon and how to enable ATSPI for the most popular types of GUI apps. Usually it's
$ /usr/libexec/at-spi-registryd &
There is a Python bindings for ATSPI. See this answer for details:
How to install pyatspi?
The pyatspi package has too many dependencies like pygobject etc. It also requires some compilation during installation steps. We think this is not user friendly so we decided to use libatspi.so directly (without any dependencies). This work status can be tracked here: https://github.com/pywinauto/pywinauto/pull/449
There is no exact deadline for pywinauto 0.7.0 with this feature (it's a hobby project), but I would say this summer sounds realistic.
I want to distribute my open source python tool.
I created an install shell script for linux systems. What is the easiest way to create a graphical easy to use installer for Windows OS?
PS: I would consider the ability to add shortcut on desktop as a plus point.
Py2Exe is still the best way I'm aware of. You can do tricky things if you're someone like Dropbox.
EDIT If you're looking for advice on creating an installer, start here
I need to create a cross platform GUI mainly targetting Windows and Linux. I finally decided that I would use the wxWidgets library to get it done since it has a less restrictive license and has a python binding. However I just wanted to know if I would have to install wxPython on every computer that needs to run my GUI. Because I really cant ask the user to go to the site and install wxPython in order to get my software working. Is there any way around this? IS there any other good cross platform GUI toolkit apart from Java,Qt and wxWidgets?
This explains how to use wxPython together with pyinstaller, allowing you to build an .exe file for Windows.
On linux you can use .deb files and add python-wxgtk2.8 to the dependencies; If a user doesn't use .deb files, he should probably know how to install wxPython :)
However I just wanted to know if I would have to install wxPython on every computer that needs to run my GUI.
If you don't want to manually install wxPython on each computer, you'd have to include all of the wxPython library with your distribution (i.e. the contents of the wx directory which is probably somewhere in site-packages or dist-packages), and any other libraries they depend on which aren't typically installed by default.
On Linux, you might just be able to use ldd on wxPython's .pyd files to find out what they depend on, and you can do something similar for Windows.
If it's loading stuff via dlopen(3) or the Windows equivalent, it's a bit more complicated. You might have to try it, wait to see what missing libs it complains about, and add those to the distro.
I wrote a program which uses a number of built in modules. The program is meant to be used by different persons on their systems. They dont have enough knowledge in python to install it when their system doesnt have the module needed to run the program. Is there any way of handling that.
Also I want to package the program as an executable in linux. It contains 3 py files and one text file only.
I think what you need is to create a debian package that handles the dependencies and the installation process.
I'm an Ubuntu user but this Complete Ubuntu Packaging Guide should help you get started. Good luck!
You can create an executable that contains your python modules and the python interpreter. You can use PyInstaller for creating such an executable.
I think the easiest way to achieve this on a debian distribution is to package your python application in a debian package. You can use this module to make life easier.