Execute Python code in an automatically generated GUI App.
Project description
GUI Executor
You ever wanted to execute your Python code from a simple GUI without the need to use a REPL or commandline? Look no further, use GUI Executor.
You probably have a number of Python scripts hanging around that you use for automated tasks, like e.g. taking a backup of your SQL databases, reducing some of your IoT time series, standard image manipulations scripts etc. Each of these tasks can be put into a function call with parameters and defaults. Let's take a look at a very simple example, the usual boring 'Hello, World!'.
Create a Python file say_hello.py
in the folder ~/lib/scripts
:
from gui_executor.exec import exec_ui
@exec_ui()
def say_hello(name: str = "Rik"):
print(f"Hello, {name}!")
return "Successfully said 'hello!'."
Now, set your PYTHONPATH to point to the ~/lib
folder:
export PYTHONPATH=~/lib
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gui_executor-0.2.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33a3f0c0e1924c082b255424524d9d89413b43727d193bdbbcfce06e70a10ea2 |
|
MD5 | 0e1dff66e0d4111ab2e1c9903f96f34c |
|
BLAKE2b-256 | 4ebe6c984ecd476df2960e1c97382d8cbd5d2737f26922ec67fdfd8a9060d1e7 |