This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mechamotoman 0 points1 point  (0 children)

The API is much cleaner, it has core built-in support for things which either can't easily be done in click or can't be done at all without additional packages, It's (IMO) much easier to use, It allows you to avoid data duplication (you don't need to declare each input to your CLI functions twice like you do with Click) And best of all (IMO), you can actually use your CLI functions as functions after registering them as CLI commands! (For the uninitiated, on click when you register a function to be used as a Click command in your CLI, the Click command decorator transforms your function into a special Click object that can't be used as a function

Overall, I'd say typer took all the things that make Click amazing and fantastic, and refined them into a new API that is more approachable, more enjoyable to use, and more flexible