Creating CLI apps is a great way to get started with Python, but creating truly great ones can be difficult if you're just using the standard library. In this video, we'll look at how to use Typer to create rock-solid CLI apps.
Check out the code:
https://github.com/isaacharrisholt/yo...
Resources:
Typer: https://typer.tiangolo.com/
Rich: https://rich.readthedocs.io/en/stable...
__________________________________________
Check out my other socials!
🐦 Twitter ▶ / isaacharrisholt
🖥️ Portfolio ▶ https://ihh.dev
📝 Blog ▶ https://isaacharrisholt.com
__________________________________________
Timestamps:
00:00 - Introduction and explanation
00:24 - Poetry setup
00:44 - Creating the app
01:07 - Adding the first command
02:10 - Adding another command
02:52 - Aliasing the tool name
03:19 - CLI arguments
04:35 - CLI options
05:54 - Prompt options and hiding input
07:14 - Making good use of type hints with enums
08:11 - Callbacks
09:05 - Adding a subcommand
11:01 - Wrapping up
#python #softwareengineer
Sur cette page du site, vous pouvez voir la vidéo en ligne Creating Rock-Solid CLI Apps With Typer durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Isaac Harris-Holt 26 février 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 7,151 fois et il a aimé 240 téléspectateurs. Bon visionnage!