Fast and Easy Python CLI
.MP4, AVC, 1920x1080, 30 fps | English, AAC, 2 Ch | 4mins | 59.5 MB
Instructor: Alfredo Deza
.MP4, AVC, 1920x1080, 30 fps | English, AAC, 2 Ch | 4mins | 59.5 MB
Instructor: Alfredo Deza
Build a very simple command line tool with Python without using external dependencies or frameworks. In this video you'll see how with just a few lines of Python you can transform a file into a script with a help menu. All by using the sys.argv module and a simple if statement.
Although you can create more powerful command-line tools with other frameworks like argparse or external libraries like Click, you can still implement a quick script without them that includes a help menu
Useful links:
Github repo with sample code
Introduction to Python