A tool that will GUI-ify your functions
Project description
GUIfy
Simplest form of GUI for automation scripts.
Made with eel as python backend and react used as frontend.
main branch has built&optimized react app
dev branch has development version of react app
Main tab
Config tab
How to use
Quick start
pip install guify
Look inside this example or follow the instructions below:
# main.py
import GUIfy from guify
app = GUIfy(app_name='GUIfy') # default app_name is 'GUIfy'
@app.register(name='Test 1', priority=0, description='This is a test')
def test_1(example_arg):
app.monitor.clear_text()
app.monitor.set_text('This is a test\n')
app.monitor.append_text('This is a test2\n')
result = app.prompt_user('This is a prompt') # True if user clicked OK, False if user clicked Cancel
foo = app.config.get('example','foo') # == bar
app.run()
Monitor object
app.monitor is the monitor object representing the preview window on right hand side of the GUI,
- set_text(text: str) -> None // will set the text in the monitor to whatever passed in "text" argument
- append_text(text: str) -> None // will append the next to the monitor
- clear_text(text: str) -> None // will clear all text in the monitor
Config tab
"app.config" is an object representing the config tab. All configurations are stored in config.ini.
self.config methods:
- save() // Save config to config.ini
- load() // Load config from config.ini
- get_section() // load() and return an entire section as a dictionary
- get(section, attribute) // load() and get value of attribute in section
- set(section, attribute, value) // load() and set value of attribute in section and then save().
config file:
[example]
foo = bar
get_secion('example') -> {'foo': 'bar'}
get('example', 'foo') -> 'bar'
Settings
in settings.ini you can change the following settings:
- reports_dir - the directory where the reports will be saved
- report_name_prefix - can be one of the variables passed in to your run() functions, uses this variable name as identification for reports
Building
To build an executable in dist folder, run the following:
npm run build
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file guify-0.1.3.tar.gz.
File metadata
- Download URL: guify-0.1.3.tar.gz
- Upload date:
- Size: 378.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63aea0eb7062eda562d8ebcbdbfab2e3e6cb10082261aa233058568d35525af2
|
|
| MD5 |
d1f03fa16b25a42a2d277dfceb41fdf4
|
|
| BLAKE2b-256 |
52bd28a71fd1238cff908c66b56fc3052eb0b5697f606e41b6ca6570f253fc9b
|
File details
Details for the file guify-0.1.3-py3-none-any.whl.
File metadata
- Download URL: guify-0.1.3-py3-none-any.whl
- Upload date:
- Size: 382.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eea1ce1d4b75fecf29d2b20a3e044dd11cafc9b2f2a590781f541f578fd34a96
|
|
| MD5 |
45ed53562ebe42d95ecaf587422fbf61
|
|
| BLAKE2b-256 |
e67f38200506b8decb123f535b9eeb68c962c3576fd8544142d2632285f94d76
|