Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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/

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

If you're not sure about the file name format, learn more about wheel file names.

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.

Release history Release notifications | RSS feed

1.4.0

2 files

1.3.0

2 files

1.2.2

2 files

1.2.1

1 file

1.2

1.1

2 files

This release

1.0.1 This release

2 files

1.0

1 file

0.9.1

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.2.0

2 files

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page