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
- The usage of
sys.argvto provide flexibility in running your Python programs
- The Python standard libraries like
getoptthat abstract command line processing
- The powerful Python packages like
python_toolkitto 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: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.
Become a Member to join the conversation.