1. Builtin Tools

Overview of Python modules for option parsing

2. External tools


365 Day Ranking

Latest Release


Abseil Python Common Libraries
(pypi: absl-py)


0.11.0 (2020-10-27)

gflags merged into this

(pypi: click)


7.1.2 (2020-04-27)

create beautiful command line interfaces in a composable way with as little code as necessary

(pypi: typer)


0.3.2 (2020-08-16)

build great CLIs. Easy to code. Based on Python type hints.


3. The goal of option parsing

The option parsing goal can be split in two parts:

  1. identifying the command user needs to execute
  2. changing configuration for the program

For the first part, it will be good if option parsing library could handle 'subcommands'. It is known that 'argparse' can do this and 'optparse' cannot. 'docopt' probably handles this transparently.

For the second thing there should be some strategy to choose how (and which) options are merged into configuration to make the process of program configuration easy for the user and occasional patch contributors.

4. See Also

OptionParsing (last edited 2021-02-07 21:56:17 by IwanAucamp)

Unable to edit the page? See the FrontPage for instructions.