Skip to main content

Python command-line parsing library

Project description

The argparse module provides an easy, declarative interface for creating command line tools, which knows how to:

  • parse the arguments and flags from sys.argv

  • convert arg strings into objects for your program

  • format and print informative help messages

  • and much more…

The argparse module improves on the standard library optparse module in a number of ways including:

  • handling positional arguments

  • supporting sub-commands

  • allowing alternative option prefixes like + and /

  • handling zero-or-more and one-or-more style arguments

  • producing more informative usage messages

  • providing a much simpler interface for custom types and actions

The latest version of argparse, along with API documentation and examples can be found at:

http://code.google.com/p/argparse/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

argparse-1.0.1.zip (148.4 kB view details)

Uploaded Source

Built Distribution

argparse-1.0.1.win32.msi (163.8 kB view details)

Uploaded Source

File details

Details for the file argparse-1.0.1.zip.

File metadata

  • Download URL: argparse-1.0.1.zip
  • Upload date:
  • Size: 148.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for argparse-1.0.1.zip
Algorithm Hash digest
SHA256 5242bfffd14b81cc963849abfb94d7b5255c02bbe288d8041b7e63efdb33e318
MD5 371d12bf6099a98f49cfaed2a29f2355
BLAKE2b-256 c31bfcea0d1f3e2b35f56a0831689eb1a8ca3bd180a2b5a44bcceeb4dc92b559

See more details on using hashes here.

File details

Details for the file argparse-1.0.1.win32.msi.

File metadata

  • Download URL: argparse-1.0.1.win32.msi
  • Upload date:
  • Size: 163.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for argparse-1.0.1.win32.msi
Algorithm Hash digest
SHA256 8423622e0c995685446a23b4f632c0188c75461d524365085779b710b45dcc55
MD5 6c9491b1d7c083cb3b38c4523a0c7434
BLAKE2b-256 ae30ccf284f65f9fa9b825618945cdd998dd421259dbee953236332b5fa0ad0f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page