God, Love, News, Event, Entertainment, Amebo,..... All about Bringing out the best in you...
Show HN: Arguably The best Python CLI library arguably https://ift.tt/1SUhgiR
Show HN: Arguably – The best Python CLI library, arguably I spent the past few weeks working on arguably. It uses your function signatures and docstrings to create a CLI. I built it to have the most common features of other libraries (and a few extra) in a much more concise syntax - no need for @click.option or typer.Option. It succeeds when you barely notice it's there. For most cases, you decorate a function with @arguably.command, and it just does what you'd expect: * Positional args for the function become positional CLI args * Keyword-only args become --options * Type hints set up parsing * Docstrings provide help messages for each command and argument This also means it's good at making a script into a CLI without any integration at all, like Python Fire does. Just run `python3 -m arguably your_script.py` to give your script a CLI. This is my first time making an open-source project with real testing and documentation, definitely a learning experience. mkdocs didn't work for me at first, so I wrote some wild workarounds: https://ift.tt/LnCAq4r... https://ift.tt/U4VQuo7 June 20, 2023 at 03:31AM
Subscribe to:
Post Comments (Atom)
Show HN: Opula – portfolio and net-worth analysis as a hosted MCP connector https://ift.tt/SiABWkz
Show HN: Opula – portfolio and net-worth analysis as a hosted MCP connector https://opula.io July 10, 2026 at 03:22AM
-
submitted by /u/Dull_Tonight [link] [comments] source https://www.reddit.com/r/worldnews/comments/pehy48/housing_secretary_robert_je...
-
Show HN: Lindra – generate browser agents to automate any website Hi HN, We’re one month into building Lindra, a platform that turns any web...
-
Show HN: High-precision date/time in SQLite https://ift.tt/hEvedVC August 12, 2024 at 03:47AM
No comments:
Post a Comment