One of many strengths of Python is that it comes with batteries included: it has a wealthy and versatile commonplace library that makes it among the finest programming languages for writing scripts for the command line.
However, in the event you write scripts for the command line, you then additionally want to supply command line interface, which you’ll create with the Python argparse
library.
On this video course, you’ll study:
- What the Python
argparse
library is, and why it’s necessary to make use of it if you must write command line scripts in Python - The way to use the Python
argparse
library to rapidly create a easy CLI in Python - What the superior utilization of the Python
argparse
library is
This video course is for early intermediate Pythonistas who most likely write scripts in Python for his or her on a regular basis work however have by no means applied a command line interface for his or her scripts.
If that sounds such as you, and also you’re used to setting variable values at first of your scripts or manually parsing the sys.argv
system listing as a substitute of utilizing a extra sturdy CLI growth device, then this video course is for you.