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
Auf dieser Seite können Sie das Online-Video Multi Command CLI Apps with Using Python3 For Multiple OS mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Harshit Singh 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 53 Mal angesehen und es wurde von 7 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!