Command Line Interfaces in Python (Summary)
In this course, you’ve navigated many different aspects of Python command line arguments. You should feel prepared to apply the following skills to your code:
- The conventions and pseudo-standards of Python command line arguments
- The origins of
sys.argv
in Python - The usage of
sys.argv
to provide flexibility in running your Python programs - The Python standard libraries like
argparse
orgetopt
that abstract command line processing - The powerful Python packages like
click
andpython_toolkit
to further improve the usability of your programs
To gain further insights about Python command line arguments and their many facets, you may want to check out the following resources:
- Comparing Python Command-Line Parsing Libraries – Argparse, Docopt, and Click
- How to Build Command Line Interfaces in Python With argparse
- Writing Python Command-Line Tools With Click
- Python Prompt Toolkit
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
00:00 Over the course of this tutorial, you’ve learned some awesome stuff about Python command line interfaces. You’ve learned where Python’s command line interface structure comes from.
00:10 You’ve learned the underlying support that Python provides you for working with command line arguments. You’ve learned about several of the standards guiding the design of command line interfaces overall in the Unix and Linux traditions.
00:23 You’ve learned the basics to manually handle your own Python command line arguments, but you’ve also learned some libraries that are available to you in Python to make the development of a complex command line interface really easy. So, congratulations! I hope that you enjoyed this tutorial.
thomabr4 on June 17, 2021
Exactly what I was looking for. Awesome content!
Phil M on Aug. 30, 2021
Excellent! Well done course!! You provided a lot of extra resources that I am excited to explore - beside using some of your examples in some of my projects - cool stuff. Thanks :)
aniketbarphe on Nov. 7, 2021
Thank You!
Become a Member to join the conversation.
Ghani on Nov. 1, 2020
Nice course; thanks a lot!