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.1.zip (151.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Source

File details

Details for the file argparse-1.1.zip.

File metadata

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

File hashes

Hashes for argparse-1.1.zip
Algorithm Hash digest
SHA256 ee6da1aaad8b08a74a33eb82264b1a2bf12a7d5aefc7e9d7d40a8f8fa9912e62
MD5 087399b73047fa5a6482037411ddc968
BLAKE2b-256 450bc5cdf94e911872072b9bd17a6412145c7cda88934f241dcc8a0d11b10c5c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for argparse-1.1.win32.msi
Algorithm Hash digest
SHA256 83aa6d2a117c3fb5ada747c652972cb437ba7f2bb2b63c5fee94be79d1de0403
MD5 1bad87b66962668c626fa4e843f7d335
BLAKE2b-256 bf5b35b761a62c19b8f21032eb7f6791ec728b962264c6178260c8a8cf28cae6

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