Skip to main content

A tool that will GUI-ify your functions

Project description

test-flow


Simplest form of GUI for automation scripts.

Made with eel as python backend and react used as frontend.

Please see release branches for an optimized built react app

Main tab

main_tab

Config tab

config_tab

How to use


Quick start

git clone https://github.com/MikeyDN/test-flow.git

npm run install

pipenv install

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')
   app.prompt_user('This is a prompt')
   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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guify-0.1.1.tar.gz (377.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guify-0.1.1-py3-none-any.whl (381.1 kB view details)

Uploaded Python 3

File details

Details for the file guify-0.1.1.tar.gz.

File metadata

  • Download URL: guify-0.1.1.tar.gz
  • Upload date:
  • Size: 377.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for guify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b2016ba227f467ede5ed5b7235053a54425271c3dbb4a35bd483544005e077fc
MD5 1199f3226eb765e3b9d6abf0b830150f
BLAKE2b-256 1c748c764424b40a5cb39bc7cc74232b90cde22d40f24e68bd5d91af05482556

See more details on using hashes here.

File details

Details for the file guify-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: guify-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 381.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for guify-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb5b2396297963ebf584229a0bc2ab41f3e5be0b2b6342afe270ba082466f223
MD5 155ee53da9bc3e269e17ac57a3a29dbd
BLAKE2b-256 ce81136a76d97168370140c66fed6a08aa5a0cfd413e623789bfc528de20c01b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page