Parsegument! - Argument Parsing and function routing
Posted by RyanStudioDev@reddit | Python | View on Reddit | 2 comments
Project Source code: https://github.com/RyanStudioo/Parsegument
Project Docs: https://www.ryanstudio.dev/docs/parsegument/
What My Project Does
Parsegument allows you to easily define Command structures with Commands and CommandGroups. Parsegument also automatically parses arguments, converts them to your desired type, then executes functions automatically, all with just one method call and a string.
Target Audience
Parsegument is targetted for people who would like to simplify making CLIs. I started this project as I was annoyed at having to use lines and lines of switch case statements for another project I was working on
Comparison
Compared to python's built in argparse, Parsegument has a more intuitive syntax, and makes it more convenient to route and execute functions.
This project is still super early in development, I aim to add other features like aliases, annotations, and more suggestions from you guys!
mikat7@reddit
bruh
killerfridge@reddit
I've tried reading your docs and I'm not sure I really understand it. What benefit does it have over something like Click?