Multi Command CLI Apps with Using Python3 For Multiple OS

Publicado el: 01 enero 1970
en el canal de: Harshit Singh
53
7

This video builds on the last tutorial I did on building awesome #command #line #application using #python3 #argparse for #windows #linux #macos.

In this video we are going to have two commands #aws and #k8s. We will be taking a look at
1. Import #argparse e
2. creating #entrypoint for cli
3. creating #argparse class #constructor
4. add #version flag
5. create #subcommands
6. create #subparser class object to access #class methods/functions
7. create first subcommand parser using subparser object
8. add required flags to subcommand
9. create an optional flag
10. create second subcommand parser
11. add subcommand flag with #options
12. checking for subparser name and acting accordingly

The benefit of using #argparse module is that it comes baked into python3 so all you have to do is install python3 and you are good to go.


Development Environment

1. #python3
2. #macos #monterrey
3. #vscode

Background Music
1. Kissed by the Sun
Clarke Russo
Content found during: 2:06 - 2:39


2. Long Winding Road
Edward Hall
Content found during: 0:00 - 2:04


Video Editing
#animaker


Thank you for watching, smash that #like #button for more such videos

#share #subscribe #like

#happy #coding


En esta página del sitio puede ver el video en línea Multi Command CLI Apps with Using Python3 For Multiple OS de Duración hora minuto segunda en buena calidad , que subió el usuario Harshit Singh 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 53 veces y le gustó 7 a los espectadores. Disfruta viendo!