4 ms·
Similar lib I made for Python: https://pypi.org/project/func-argparse/ https://pypi.org/project/func-argparse/ The nice thing with Python is that I implemented
by gwenzek 6y ago
Similar lib I made for Python: https://pypi.org/project/func-argparse/ https://pypi.org/project/func-argparse/
The nice thing with Python is that I implemented a parser from a function signature, and it also works for NamedTuple.
The advantage wrt to other python parser is that it uses the type annotations, instead of guessing
- bgia 6y agoPretty cool. I like it. Seems one more step toward simplicity than Click for instance.
- 1337shadow 6y agoWell there's https://cli2.rtfd.io https://cli2.rtfd.io
- gwenzek 6y agoThanks for sharing, didn't knew about this one. It seems quite similar indeed.
- 1337shadow 6y agoI'd say the difference with click is that it exposes a nice Python API which makes it easier to meta program CLIs, nice for lazy people.
- schattschneider 6y agoI can also recommend Typer https://typer.tiangolo.com/ https://typer.tiangolo.com/ It's similar and awesome
- rmnclmnt 6y agoAnd based on Click for maximum interoperability with existing modules!
- cb321 6y agofunc-argparse seems much like https://pypi.org/project/argh/ https://pypi.org/project/argh/ the inspiration for the Nim https://github.com/c-blake/cligen https://github.com/c-blake/cligen which can source its "pseudo specification" from either a proc signature or a type/object definition.