{ "info": { "author": "Makoto Kuwata", "author_email": "kwa@kuwata-lab.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.4", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "Overview\r\n========\r\n\r\nCmdopt.py is command-line option parser for Python.\r\n\r\nExample::\r\n\r\n import sys, cmdopt\r\n ## create parser\r\n parser = cmdopt.Parser()\r\n ## define options\r\n parser.option(\"-h, --help\", \"show help\")\r\n parser.option(\"-f, --file=FILE\", \"read file\")\r\n parser.option(\"-i, --indent=N\", \"indent width\")\\\r\n .validation(lambda val: not val.isdigit() and \"integer required.\")\\\r\n .action(lambda val, opts: setattr(opts, 'indent', int(val)))\r\n ## parse args\r\n args = sys.argv[1:]\r\n opts = parser.parse(args) # may raise cmdopt.ParseError\r\n if opts.help:\r\n print(parser.help()) # or parser.help(width=15, indent=\" \")\r\n\r\nFeatures:\r\n\r\n* Validator\r\n* Handler\r\n* Help message\r\n* Multiple option\r\n\r\nSee README_ for details.\r\n\r\n.. _README: https://bitbucket.org/kwatch/cmdopt/wiki/Cmdopt.py", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/packages/source/C/Cmdopt/Cmdopt-0.2.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/Cmdopt", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "Cmdopt", "package_url": "https://pypi.org/project/Cmdopt/", "platform": "any", "project_url": "https://pypi.org/project/Cmdopt/", "project_urls": { "Download": "http://pypi.python.org/packages/source/C/Cmdopt/Cmdopt-0.2.0.tar.gz", "Homepage": "http://pypi.python.org/pypi/Cmdopt" }, "release_url": "https://pypi.org/project/Cmdopt/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "pretty good command-line option parser", "version": "0.2.0" }, "last_serial": 783974, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "649cede76c532c63a9d5443f9f22965a", "sha256": "bd38ea4b82472f20513f13172f8bb628d02736a3185f19d78082329975959f9b" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py2.4.egg", "has_sig": false, "md5_digest": "649cede76c532c63a9d5443f9f22965a", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 7133, "upload_time": "2011-12-13T14:55:46", "url": "https://files.pythonhosted.org/packages/fc/55/e15a3c7f531da34e35705141e1ada01f9c5f53e0f2922fa7ddd0acc0343e/Cmdopt-0.2.0-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "1dd6927d549fe6a75a2b47973f678ce7", "sha256": "2baf74e08b398054f275e09755d7fda0ab0aeb933d0195808e24d360c139ddba" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py2.5.egg", "has_sig": false, "md5_digest": "1dd6927d549fe6a75a2b47973f678ce7", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 6987, "upload_time": "2011-12-13T14:56:10", "url": "https://files.pythonhosted.org/packages/81/50/076f9fbf25568b52c88ce07afed774f10d87c3cf24c73a2b56ebd7546327/Cmdopt-0.2.0-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "331cac9c624f8ccf56a6efa9024129aa", "sha256": "8c5a918166ea76290bf64ba7f1efe427d091050f6340b2a7d2040910f98d9db0" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py2.6.egg", "has_sig": false, "md5_digest": "331cac9c624f8ccf56a6efa9024129aa", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6996, "upload_time": "2011-12-13T14:56:25", "url": "https://files.pythonhosted.org/packages/24/70/59099224700bcb47662d55ebfe028b242b21a1ab8d5f6b51c21c7e19e657/Cmdopt-0.2.0-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "a9f4e09c24138e57c462ab422d98a1db", "sha256": "8d718fc28b942ccf65ccdeaa6e6dc11ef32f921fd15eb4529139ee4d82992296" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py2.7.egg", "has_sig": false, "md5_digest": "a9f4e09c24138e57c462ab422d98a1db", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 6963, "upload_time": "2011-12-13T14:56:33", "url": "https://files.pythonhosted.org/packages/df/f6/3d8c787047904afd731a0abdb077431a3a365d0236c7eff37ea0d832e5b4/Cmdopt-0.2.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "dad880fa751e1f9d5a67bcf0e093a7f0", "sha256": "8af47ae2248e819fcc2fe366205285a39411918ae2c21b5aea5b5f5c321fcc5d" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py3.0.egg", "has_sig": false, "md5_digest": "dad880fa751e1f9d5a67bcf0e093a7f0", "packagetype": "bdist_egg", "python_version": "3.0", "requires_python": null, "size": 6981, "upload_time": "2011-12-13T14:56:40", "url": "https://files.pythonhosted.org/packages/49/98/e339a35f26ed876257f18dcc22458c953fee34e251a82418b001bcaab4a0/Cmdopt-0.2.0-py3.0.egg" }, { "comment_text": "", "digests": { "md5": "44e2e8833aa57a6907a88a1f720e6a25", "sha256": "68e0fa24079c18e6225faeebbfd8033b4eb01a730089828cc183204f842b32ed" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py3.1.egg", "has_sig": false, "md5_digest": "44e2e8833aa57a6907a88a1f720e6a25", "packagetype": "bdist_egg", "python_version": "3.1", "requires_python": null, "size": 6982, "upload_time": "2011-12-13T14:56:47", "url": "https://files.pythonhosted.org/packages/8c/44/e497534f5ae8ea28dbbfd2780abe7c043f90be94a0d5b61bb8a6b48b68c2/Cmdopt-0.2.0-py3.1.egg" }, { "comment_text": "", "digests": { "md5": "5212d3eb2b30afbe58bd65b1e8c96857", "sha256": "79587caa05b7204dec893d11dc2574af766168e7bc24bf62c2ca29864335921b" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py3.2.egg", "has_sig": false, "md5_digest": "5212d3eb2b30afbe58bd65b1e8c96857", "packagetype": "bdist_egg", "python_version": "3.2", "requires_python": null, "size": 6974, "upload_time": "2011-12-13T14:56:55", "url": "https://files.pythonhosted.org/packages/4a/84/2d583f6b9b5a62e421989ecee2ea4503a1d96409488b8d6be18e7be0e63c/Cmdopt-0.2.0-py3.2.egg" }, { "comment_text": "", "digests": { "md5": "0b1a2d36e9466e8727ce30965205694e", "sha256": "7cafc9dd63e48d8fa0a184417fe6e741bba693ac24928248040a7041cb8b403a" }, "downloads": -1, "filename": "Cmdopt-0.2.0.tar.gz", "has_sig": false, "md5_digest": "0b1a2d36e9466e8727ce30965205694e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9675, "upload_time": "2011-12-13T14:55:01", "url": "https://files.pythonhosted.org/packages/1d/0c/1b1b99e21a63cb7a2c5256a00dc1972891727c5db03cb3b5a00b3100ab77/Cmdopt-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "649cede76c532c63a9d5443f9f22965a", "sha256": "bd38ea4b82472f20513f13172f8bb628d02736a3185f19d78082329975959f9b" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py2.4.egg", "has_sig": false, "md5_digest": "649cede76c532c63a9d5443f9f22965a", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 7133, "upload_time": "2011-12-13T14:55:46", "url": "https://files.pythonhosted.org/packages/fc/55/e15a3c7f531da34e35705141e1ada01f9c5f53e0f2922fa7ddd0acc0343e/Cmdopt-0.2.0-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "1dd6927d549fe6a75a2b47973f678ce7", "sha256": "2baf74e08b398054f275e09755d7fda0ab0aeb933d0195808e24d360c139ddba" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py2.5.egg", "has_sig": false, "md5_digest": "1dd6927d549fe6a75a2b47973f678ce7", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 6987, "upload_time": "2011-12-13T14:56:10", "url": "https://files.pythonhosted.org/packages/81/50/076f9fbf25568b52c88ce07afed774f10d87c3cf24c73a2b56ebd7546327/Cmdopt-0.2.0-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "331cac9c624f8ccf56a6efa9024129aa", "sha256": "8c5a918166ea76290bf64ba7f1efe427d091050f6340b2a7d2040910f98d9db0" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py2.6.egg", "has_sig": false, "md5_digest": "331cac9c624f8ccf56a6efa9024129aa", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6996, "upload_time": "2011-12-13T14:56:25", "url": "https://files.pythonhosted.org/packages/24/70/59099224700bcb47662d55ebfe028b242b21a1ab8d5f6b51c21c7e19e657/Cmdopt-0.2.0-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "a9f4e09c24138e57c462ab422d98a1db", "sha256": "8d718fc28b942ccf65ccdeaa6e6dc11ef32f921fd15eb4529139ee4d82992296" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py2.7.egg", "has_sig": false, "md5_digest": "a9f4e09c24138e57c462ab422d98a1db", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 6963, "upload_time": "2011-12-13T14:56:33", "url": "https://files.pythonhosted.org/packages/df/f6/3d8c787047904afd731a0abdb077431a3a365d0236c7eff37ea0d832e5b4/Cmdopt-0.2.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "dad880fa751e1f9d5a67bcf0e093a7f0", "sha256": "8af47ae2248e819fcc2fe366205285a39411918ae2c21b5aea5b5f5c321fcc5d" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py3.0.egg", "has_sig": false, "md5_digest": "dad880fa751e1f9d5a67bcf0e093a7f0", "packagetype": "bdist_egg", "python_version": "3.0", "requires_python": null, "size": 6981, "upload_time": "2011-12-13T14:56:40", "url": "https://files.pythonhosted.org/packages/49/98/e339a35f26ed876257f18dcc22458c953fee34e251a82418b001bcaab4a0/Cmdopt-0.2.0-py3.0.egg" }, { "comment_text": "", "digests": { "md5": "44e2e8833aa57a6907a88a1f720e6a25", "sha256": "68e0fa24079c18e6225faeebbfd8033b4eb01a730089828cc183204f842b32ed" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py3.1.egg", "has_sig": false, "md5_digest": "44e2e8833aa57a6907a88a1f720e6a25", "packagetype": "bdist_egg", "python_version": "3.1", "requires_python": null, "size": 6982, "upload_time": "2011-12-13T14:56:47", "url": "https://files.pythonhosted.org/packages/8c/44/e497534f5ae8ea28dbbfd2780abe7c043f90be94a0d5b61bb8a6b48b68c2/Cmdopt-0.2.0-py3.1.egg" }, { "comment_text": "", "digests": { "md5": "5212d3eb2b30afbe58bd65b1e8c96857", "sha256": "79587caa05b7204dec893d11dc2574af766168e7bc24bf62c2ca29864335921b" }, "downloads": -1, "filename": "Cmdopt-0.2.0-py3.2.egg", "has_sig": false, "md5_digest": "5212d3eb2b30afbe58bd65b1e8c96857", "packagetype": "bdist_egg", "python_version": "3.2", "requires_python": null, "size": 6974, "upload_time": "2011-12-13T14:56:55", "url": "https://files.pythonhosted.org/packages/4a/84/2d583f6b9b5a62e421989ecee2ea4503a1d96409488b8d6be18e7be0e63c/Cmdopt-0.2.0-py3.2.egg" }, { "comment_text": "", "digests": { "md5": "0b1a2d36e9466e8727ce30965205694e", "sha256": "7cafc9dd63e48d8fa0a184417fe6e741bba693ac24928248040a7041cb8b403a" }, "downloads": -1, "filename": "Cmdopt-0.2.0.tar.gz", "has_sig": false, "md5_digest": "0b1a2d36e9466e8727ce30965205694e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9675, "upload_time": "2011-12-13T14:55:01", "url": "https://files.pythonhosted.org/packages/1d/0c/1b1b99e21a63cb7a2c5256a00dc1972891727c5db03cb3b5a00b3100ab77/Cmdopt-0.2.0.tar.gz" } ] }