{ "info": { "author": "Christopher Brown", "author_email": "io@henrian.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Terminals" ], "description": "Simpler command line argument parsing\n-------------------------------------\n\nIn the spirit of\n```optimist`` `__: less\nmagic, more flexibility.\n\n::\n\n pi install argv\n\nQuickstart\n~~~~~~~~~~\n\nManual specification of arguments, no configuration:\n\n::\n\n import argv\n argv.parse(['-i', 'input.txt', '-z', '--verbose'])\n >>> {'i': 'input.txt', 'verbose': True, 'z': True}\n\nUses ``sys.argv`` (without the executable name) if no argument list is\ngiven:\n\n::\n\n import sys\n sys.argv\n >>> ['/usr/local/bin/bottler', 'exec', 'prog.py', '--debug']\n argv.parse()\n >>> {'_': ['exec', 'prog.py'], 'debug': True}\n\nConfiguration:\n\n::\n\n parser = argv.Parser()\n parser.add('action')\n parser.add('target')\n parser.add('-d', '--debug')\n parser.parse(['exec', 'prog.py', '--debug'])\n >>> {'action': 'exec', 'd': True, 'debug': True, 'target': 'prog.py'}\n\nTesting\n-------\n\nContinuous integration:\n\n|Travis CI Build Status|\n\nOr run tests locally:\n\n::\n\n python setup.py test\n\nDevelopment\n-----------\n\nTerminology:\n~~~~~~~~~~~~\n\n- **flag**: a command line argument marked with a double dash or each\n component of a group denoted by a single dash. E.g.,\n\n - ``--verbose --logfile logs/app.txt`` has two flags: ``verbose``\n and ``logfile``.\n - ``-czf archive.tgz app/`` has three flags: ``c``, ``z``, and\n ``f``.\n\n- **token**: a white-space separated command line item. E.g.,\n\n - \\`--input= --logfile logs/app.txt\n\nRelated libraries\n-----------------\n\n- https://github.com/docopt/docopt\n- http://docs.python.org/2/library/argparse.html\n- http://docs.python.org/2/library/optparse.html (Deprecated)\n\nTODO: write about differences between this library (``argv``) and these\nlibraries, relative merits of each, opposing philosophies, etc.\n\nLicense\n-------\n\nCopyright (c) 2013 Christopher Brown. `MIT\nLicensed `__.\n\n.. |Travis CI Build Status| image:: https://travis-ci.org/chbrown/argv.png?branch=master\n :target: https://travis-ci.org/chbrown/argv", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/chbrown/argv", "keywords": null, "license": "Copyright (c) 2013 Christopher Brown\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "argv", "package_url": "https://pypi.org/project/argv/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/argv/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/chbrown/argv" }, "release_url": "https://pypi.org/project/argv/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Simpler command line argument parsing", "version": "0.0.3" }, "last_serial": 930007, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "ab9029a0e9675407ab17c258945f3279", "sha256": "ce8e08d227758f38704954269d37b0002d45c0e9f2394048f66c76cc4cae498a" }, "downloads": -1, "filename": "argv-0.0.3.tar.gz", "has_sig": false, "md5_digest": "ab9029a0e9675407ab17c258945f3279", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6757, "upload_time": "2013-11-26T21:26:50", "url": "https://files.pythonhosted.org/packages/ea/de/35b617e02843d7b5d7fe462a9c7823c8d55dab72f91526e5d25da49fac9e/argv-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ab9029a0e9675407ab17c258945f3279", "sha256": "ce8e08d227758f38704954269d37b0002d45c0e9f2394048f66c76cc4cae498a" }, "downloads": -1, "filename": "argv-0.0.3.tar.gz", "has_sig": false, "md5_digest": "ab9029a0e9675407ab17c258945f3279", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6757, "upload_time": "2013-11-26T21:26:50", "url": "https://files.pythonhosted.org/packages/ea/de/35b617e02843d7b5d7fe462a9c7823c8d55dab72f91526e5d25da49fac9e/argv-0.0.3.tar.gz" } ] }