Creating Rock-Solid CLI Apps With Typer

Published: 26 February 2023
on channel: Isaac Harris-Holt
7,151
240

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


On this page of the site you can watch the video online Creating Rock-Solid CLI Apps With Typer with a duration of hours minute second in good quality, which was uploaded by the user Isaac Harris-Holt 26 February 2023, share the link with friends and acquaintances, this video has already been watched 7,151 times on youtube and it was liked by 240 viewers. Enjoy your viewing!