Creating Rock-Solid CLI Apps With Typer

preview_player
Показать описание
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:

Resources:

__________________________________________

Check out my other socials!
__________________________________________

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
Рекомендации по теме
Комментарии
Автор

I would very much appreciate the followup video with the features you mentioned at the end.
Your vide style "click"ed (other cli tool, pun intended) with me.

JakubYTb
Автор

Extremely helpful top-quality video.
Honestly thought you had at least 100K subs from how professional this video was 👍

abderrahmaneelmahmi
Автор

Thank you.. thank you for this video, and especially the format.
You don't see much this direct to the point, content rich, no bs, videos around lately.
I checked other topics (I'll definitely watch them later) and you earned a subsribe with bell, no need to ask.

JakubYTb
Автор

i was expecting far more views and subs wtf

xx_Ashura_xx