Giter Club home page Giter Club logo

gooey's Introduction

gooey


https://github.com/chriskiehl/Gooey

from gooey import Gooey
def main():
  parser = ArgumentParser(...)

@Gooey(advanced=Boolean,
  language=language_string,
  show_config=True,
  target=executable_cmd,
  program_name='name',
  program_description,
  required_cols=1,
  optional_cols=2,
  dump_build_config=False,
  load_build_config=None,
  monospace_display=False)
def main():
  parser = ArgumentParser(...)


parser = ArgumentParser()
search_group = parser.add_argument_group(
  "Search Options",
  "Customize the search options"
)

search_group.add_argument(
  '--query',
  help='Base search stirng'
)

@Gooey(progress_regex=r"^progress: (?P<current>\d+)(?P<total>\d+)$",
  progress_expr="current / total * 100")

@Gooey(program_name='Custom icon demo', image_dir='/path/to/my/image/directory')
def main():

parser.add_argument(
  '--load',
  metavar='Load Previous Save',
  help='Load a Previous Save',
  help='Load a Previous save file',
  dest='filename',
  widget='Dropdown',
  choices=list_savefiles(),
)

from gooey.python_bindings_gooey_decorator import Gooey
from gooey.python_bindings_gooey_parser import GooeyParser

@Gooey
def main():
  parser = GooeyParser(description='Example validator')
  parser.add_argument(
    'secret',
    metavar='Super Secret Number',
    help='A number specifically between 2 and 14',
    gooey_options={
      'validator': {
        'test': '2 <= int(user_input) <= 14',
        'message': 'Must be between 2 and 14'
      }
    })
  args = parser.parse_args()
  
  print("Cool! Your secret number is: ", args.secret)

gooey_options={
  'validator': {
    'test': 'len(user_input) > 3',
    'message': 'some helpful message'
  }
}

@gooey(advanced=True)
def main():
pip install Gooey
git clone https://github.com/chriskieh1/Gooey.git
python setup.py install 

gooey's People

Contributors

takagotch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.