Creating a command-line app in Python [PythonLiveLessons #4]

Опубликовано: 28 Сентябрь 2024
на канале: Sebastiaan Mathôt
1,969
43

The fifth episode of #PythonLiveLessons, a weekly live stream about Python code and more, hosted by Sebastiaan Mathôt. In this episode, we'll turn our `markdown_code_exec` Python module, which we created in previous episodes, into a command-line application! We'll learn about the `argparse` module to parse command-like arguments, about entry points, and about the if _name_ == '__main__' convention.ing