{ "info": { "author": "Ken Kinder", "author_email": "kkinder@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Argfarce\n--------\n\nArgfarce makes it easy to declare argparse structures. Consider this example:\n\n>>> class PersonalInfoParser(ArgumentParser):\n... class Meta:\n... prog = 'person.py'\n... \n... name = Argument('-n', help=\"Cheese to use on your sandwich\", required=False)\n... profession = Argument('-p', '--profession', choices=('developer', 'programmer', 'software engineer'), help=\"These are all pretty much the same\", required=False)\n... comments = Argument(nargs='*')\n... \n>>> parser = PersonalInfoParser()\n>>> parser.parse_args('-p programmer -n Ken foo bar spam'.split())\n>>> print parser.name\nKen\n>>> print parser.profession\nprogrammer\n>>> print parser.comments\n['foo', 'bar', 'spam']\n\nThis software is not yet compatible with Python 3.", "description_content_type": null, "docs_url": null, "download_url": "https://bitbucket.org/kkinder/argfarce/downloads/argfarce-1.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://kkinder.com/argfarce", "keywords": "argument parsing,argparse,optparse", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "argfarce", "package_url": "https://pypi.org/project/argfarce/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/argfarce/", "project_urls": { "Download": "https://bitbucket.org/kkinder/argfarce/downloads/argfarce-1.1.tar.gz", "Homepage": "http://kkinder.com/argfarce" }, "release_url": "https://pypi.org/project/argfarce/1.1/", "requires_dist": null, "requires_python": null, "summary": "Declarative wrapper for argparse", "version": "1.1" }, "last_serial": 388164, "releases": { "1.1": [ { "comment_text": "", "digests": { "md5": "67c762e7a97b9939ad412a3d0cfc4fc9", "sha256": "1358b211ed930e33c15480723839f58dce2f73dbab74ea5a0ff7cd8b4d5b7e3e" }, "downloads": -1, "filename": "argfarce-1.1.tar.gz", "has_sig": false, "md5_digest": "67c762e7a97b9939ad412a3d0cfc4fc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3356, "upload_time": "2012-03-08T23:09:00", "url": "https://files.pythonhosted.org/packages/3c/77/bafb344597c79336fb762d017a83f2e80702a9961d955d7d263a6619d345/argfarce-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "67c762e7a97b9939ad412a3d0cfc4fc9", "sha256": "1358b211ed930e33c15480723839f58dce2f73dbab74ea5a0ff7cd8b4d5b7e3e" }, "downloads": -1, "filename": "argfarce-1.1.tar.gz", "has_sig": false, "md5_digest": "67c762e7a97b9939ad412a3d0cfc4fc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3356, "upload_time": "2012-03-08T23:09:00", "url": "https://files.pythonhosted.org/packages/3c/77/bafb344597c79336fb762d017a83f2e80702a9961d955d7d263a6619d345/argfarce-1.1.tar.gz" } ] }