About 1,980 results
Open links in new tab
  1. argparse — Parser for command-line options, arguments and

    3 days ago · The argparse module makes it easy to write user-friendly command-line interfaces. The program defines what arguments it requires, and argparse will figure out how to parse …

  2. Argparse Tutorial — Python 3.13.3 documentation

    3 days ago · Argparse Tutorial¶ author: Tshepang Mbambo. This tutorial is intended to be a gentle introduction to argparse, the recommended command-line parsing module in the …

  3. What’s New In Python 3.13 — Python 3.15.0a0 documentation

    2 days ago · The argparse module now supports deprecating command-line options, positional arguments, and subcommands. The new functions base64.z85encode() and …

  4. Migrating optparse code to argparse — Python 3.13.3 …

    6 days ago · Migrating optparse code to argparse ¶ The argparse module offers several higher level features not natively provided by the optparse module, including: Handling positional …

  5. getopt — C-style parser for command line options - Python

    6 days ago · This module helps scripts to parse the command line arguments in sys.argv. It supports the same conventions as the Unix getopt() function (including the special meanings …

  6. Python Documentation contents — Python 3.15.0a0 documentation

    codeop — Compile Python code; Importing Modules. zipimport — Import modules from Zip archives. zipimporter Objects; Examples; pkgutil — Package extension utility; modulefinder — …

  7. Command Line Interface Libraries — Python 3.13.3 documentation

    May 17, 2025 · 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 …

  8. 6. Modules — Python 3.13.3 documentation

    1 day ago · A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended. Within a module, the module’s name (as a string) …

  9. 10. Brief Tour of the Standard Library — Python 3.13.3 …

    import argparse parser = argparse. ArgumentParser ( prog = 'top' , description = 'Show top lines from each file' ) parser . add_argument ( 'filenames' , nargs = '+' ) parser . add_argument ( '-l' , …

  10. optparse — Parser for command line options - Python

    3 days ago · argparse: a more opinionated alternative to optparse that provides more functionality by default, at the expense of reduced application flexibility in controlling exactly how …