Gooey is a Python library that converts existing command-line applications into user-friendly graphical interfaces automatically. It works by wrapping Python scripts that use argparse, providing interactive forms, sliders, checkboxes, and file selectors. Gooey is ideal for developers who want to make CLI tools accessible to non-technical users without rewriting their entire application. It’s widely used for scripts, utilities, and small tools that benefit from a simple GUI.
Installation:
pip install Gooey
Example usage:
from gooey import Gooey, GooeyParser
@Gooey
def main():
parser = GooeyParser(description="Example Gooey App")
parser.add_argument('name', help='Enter your name')
args = parser.parse_args()
print(f"Hello, {args.name}!")
if __name__ == "__main__":
main()
PyPI page: https://pypi.org/project/Gooey/
GitHub page: https://github.com/chriskiehl/Gooey
3 Project Ideas:
- Convert a CLI-based file renaming tool into a GUI app for ease of use.
- Build a GUI wrapper for a data analysis script to allow user input for file paths and parameters.
- Create a simple GUI tool for automating repetitive tasks like backups or batch processing.
Top comments (0)