Python’s standard library is one of the finest around, and it’s also one of the language’s greatest assets. This makes Python ideal for developing command-line programmes.
But if you’re going to be writing command-line scripts, you need also offer a nice command-line interface, which is easy to do using the Python argparse module. What you’ll pick up from this video tutorial is:
-
What the Python
argparse
library is, and why it’s important to use it if you need to write command line scripts in Python -
How to use the Python
argparse
library to quickly create a simple CLI in Python -
What the advanced usage of the Python
argparse
library is
This video course is intended for Pythonistas at the early intermediate level who are already writing scripts in Python but have never created a command line interface for them.
If that describes you and you prefer to manually parse the sys.argv system list or set variables at the front of your scripts, this video course will show you how to utilise a more powerful command line interface development tool.