Documentación offline Python 3.14

Command-line interface libraries

3.14 Ver versión oficial en línea Licencia PSF-2.0Descargado el 2026-08-02

Command-line interface libraries#

The modules described in this chapter assist with implementing command line and terminal interfaces for applications.

Here's an overview:

  • "argparse" --- Parser for command-line options, arguments and subcommands

  • "optparse" --- Parser for command line options

  • "getpass" --- Portable password input

  • "fileinput" --- Iterate over lines from multiple input streams

  • "curses" --- Terminal handling for character-cell displays

  • "curses.textpad" --- Text input widget for curses programs

  • "curses.ascii" --- Utilities for ASCII characters

  • "curses.panel" --- A panel stack extension for curses

  • "cmd" --- Support for line-oriented command interpreters