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.
Also, we can fix bugs here for users who are stuck on some non-current python
version, like e.g. 3.2.3 (which has bugs that were fixed in a later 3.2.x
release).
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, 2.4, 2.5, 2.6 and 2.7
* 3.1, 3.2, 3.3, 3.4
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 in argparse (pypi), please try to reproduce it with latest
python 2.7 and 3.4 (and use argparse from stdlib).
If it happens there also, please file a bug in the python.org issue tracker.
If it does not happen there, file a bug in the argparse package issue tracker.
Raw data
{
"_id": null,
"home_page": "https://github.com/ThomasWaldmann/argparse/",
"name": "argparse",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "argparse command line parser parsing",
"author": "Thomas Waldmann",
"author_email": "tw@waldmann-edv.de",
"download_url": "https://files.pythonhosted.org/packages/18/dd/e617cfc3f6210ae183374cd9f6a26b20514bbb5a792af97949c5aacddf0f/argparse-1.4.0.tar.gz",
"platform": "any",
"description": "The argparse module makes it easy to write user friendly command line\ninterfaces.\n\nThe program defines what arguments it requires, and argparse will figure out\nhow to parse those out of sys.argv. The argparse module also automatically\ngenerates help and usage messages and issues errors when users give the\nprogram invalid arguments.\n\nAs of Python >= 2.7 and >= 3.2, the argparse module is maintained within the\nPython standard library. For users who still need to support Python < 2.7 or\n< 3.2, it is also provided as a separate package, which tries to stay\ncompatible with the module in the standard library, but also supports older\nPython versions.\n\nAlso, we can fix bugs here for users who are stuck on some non-current python\nversion, like e.g. 3.2.3 (which has bugs that were fixed in a later 3.2.x\nrelease).\n\nargparse is licensed under the Python license, for details see LICENSE.txt.\n\n\nCompatibility\n-------------\n\nargparse should work on Python >= 2.3, it was tested on:\n\n* 2.3, 2.4, 2.5, 2.6 and 2.7\n* 3.1, 3.2, 3.3, 3.4\n\n\nInstallation\n------------\n\nTry one of these:\n\n python setup.py install\n\n easy_install argparse\n\n pip install argparse\n\n putting argparse.py in some directory listed in sys.path should also work\n\n\nBugs\n----\n\nIf you find a bug in argparse (pypi), please try to reproduce it with latest\npython 2.7 and 3.4 (and use argparse from stdlib).\n\nIf it happens there also, please file a bug in the python.org issue tracker.\nIf it does not happen there, file a bug in the argparse package issue tracker.",
"bugtrack_url": null,
"license": "Python Software Foundation License",
"summary": "Python command-line parsing library",
"version": "1.4.0",
"split_keywords": [
"argparse",
"command",
"line",
"parser",
"parsing"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "c37216a954c8669054e2b2c54853dd49",
"sha256": "c31647edb69fd3d465a847ea3157d37bed1f95f19760b11a47aa91c04b666314"
},
"downloads": -1,
"filename": "argparse-1.4.0-py2.py3-none-any.whl",
"has_sig": true,
"md5_digest": "c37216a954c8669054e2b2c54853dd49",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 23000,
"upload_time": "2015-09-14T16:03:16",
"upload_time_iso_8601": "2015-09-14T16:03:16.137978Z",
"url": "https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "08062d2ceb6596fcbc5a7e725b53746f",
"sha256": "62b089a55be1d8949cd2bc7e0df0bddb9e028faefc8c32038cc84862aefdd6e4"
},
"downloads": -1,
"filename": "argparse-1.4.0.tar.gz",
"has_sig": true,
"md5_digest": "08062d2ceb6596fcbc5a7e725b53746f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 70508,
"upload_time": "2015-09-12T20:22:16",
"upload_time_iso_8601": "2015-09-12T20:22:16.217169Z",
"url": "https://files.pythonhosted.org/packages/18/dd/e617cfc3f6210ae183374cd9f6a26b20514bbb5a792af97949c5aacddf0f/argparse-1.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2015-09-12 20:22:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "ThomasWaldmann",
"github_project": "argparse",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"tox": true,
"lcname": "argparse"
}