Overview
Gooey is a Python library that transforms command-line programs into a full-fledged GUI application with no additional code, making it more approachable for end-users without technical expertise.
Key features
- Automatically generates a GUI from argparse
- Cross-platform support (Windows, macOS, Linux)
- Customizable with themes and styles
- No need for separate GUI code
- Supports all argparse types
Common use cases
- Making scripts user-friendly with a GUI
- Tools for end-users with minimal technical skills
- Internal applications for teams
- Rapid deployment of utility scripts
- Prototyping command line tools as GUI apps
Installation
pip install Gooey
Example
from gooey import Gooey, GooeyParser
@Gooey(program_name="Sample Gooey App")
def main():
parser = GooeyParser(description="Example of using Gooey")
parser.add_argument('Name', help="Enter your name")
parser.add_argument('Age', type=int, help="Enter your age")
parser.add_argument('--verbose', action='store_true', help="Enable verbose output")
args = parser.parse_args()
print(f"Hello {args.Name}! You are {args.Age} years old.")
if args.verbose:
print("Verbose mode is enabled")
if __name__ == "__main__":
main()