this post was submitted on 23 Aug 2023
6 points (100.0% liked)
Python Dev
21 readers
1 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Hmm, I wonder how it compares to Traitlets? I got recommended that and it's taken me a while to learn, but it is very powerful. I'm just starting on a subcommand based app, so this is very relevant to me!
EDIT: Just glancing at the documentation I can see the docs are way better!
Click is a library to make a CLI - e.g.
vs Traitlets looks like a (really cool) type validation library? Pydantic is similar
Traitlets also supports subcommands, command line arguments, etc. At its heart though, it's more of a configuration library.
(I'm very much still a novice coder so definitely take that into account lol!)
https://traitlets.readthedocs.io/en/stable/config.html#command-line-arguments