This project has been archived by its maintainers, and is no longer receiving any updates.
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 those out of sys.argv. The argparse module also automatically generates help and usage messages and issues errors when users give the program invalid arguments.
As of Python >= 2.7 and >= 3.2, the argparse module is maintained within the Python standard library. For users who still need to support Python < 2.7 or < 3.2, it is also provided as a separate package, which tries to stay compatible with the module in the standard library, but also supports older Python versions.
argparse is licensed under the Python license, for details see LICENSE.txt.
Compatibility
argparse should work on Python >= 2.3, it was tested on:
2.3.5, 2.4.4, 2.5.5, 2.6.5 and 2.7
3.1, 3.2
Installation
Try one of these:
python setup.py install
easy_install argparse
pip install argparse
putting argparse.py in some directory listed in sys.path should also work
Bugs
If you find a bug, please try to reproduce it with python 2.7.
If it happens there also, please file a bug in the python.org issue tracker. If it does not happen in 2.7, file a bug in the argparse package issue tracker.
Metadata
Release files for argparse 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| argparse-1.2.2.tar.gz | 68.7 kB | Without provenance | Details for argparse-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| argparse-1.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for argparse-1.2.2-py2.py3-none-any.whl |
Total release size: 91.0 kB
Release files / argparse-1.2.2.tar.gz
| Download URL | argparse-1.2.2.tar.gz |
|---|---|
| Size | 68.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c8d9e45969c4849264b8f8d4025e0ab9076ebe44bfaed70e24f494fa554b2c6
|
|
BLAKE2b-256 checksum How to use checksums |
772e520228ff080b1bd87c30327acee7c8c707abd23314e4c1abe231f8692c6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / argparse-1.2.2-py2.py3-none-any.whl
| Download URL | argparse-1.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 22.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
14adf170c4083a8e8e1a71e628aba4cddb1165aeec53683415a30f314dee166e
|
|
BLAKE2b-256 checksum How to use checksums |
36b6efdf93fb2dcfb84e10a55d89d806c64e5d15960d5aacbe6f7d08fee9f7f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for argparse 1.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.