Easy Python CLI!

Published: 05 February 2022
on channel: Alfredo Deza
455
5

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.

00:00 Introduction
01:02 Use this trick to convert the script into CLI tool
01:32 Consume or pass an argument on the command-line
02:20 Check arguments for the script with sys.argv
03:12 Create a help menu

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


On this page of the site you can watch the video online Easy Python CLI! with a duration of hours minute second in good quality, which was uploaded by the user Alfredo Deza 05 February 2022, share the link with friends and acquaintances, this video has already been watched 455 times on youtube and it was liked by 5 viewers. Enjoy your viewing!