Multi Command CLI Apps with Using Python3 For Multiple OS

Pubblicato il: 01 gennaio 1970
sul canale di: 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


In questa pagina del sito puoi guardare il video online Multi Command CLI Apps with Using Python3 For Multiple OS della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Harshit Singh 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 53 volte e gli è piaciuto 7 spettatori. Buona visione!