{ "info": { "author": "Aaron", "author_email": "a3n@justa3n.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "clop: python Command Line Option Processor\n==========================================\n\n``$ pip install clop``\n\n``$ pydoc clop``\n\n``$ python -m clop # Run the demo``\n\nclop provides minimal command line option specification and processing.\n\nWhen your command line processing requires the power of a king on a real horse,\nuse argparse in the standard python library.\n\nWhen banging two coconut halves together on a stick pony is good enough,\nuse clop.\n\nA single class to specify command line options,\nprocess a command line against those options,\nand make the processed results available as a dict.\nAlso provides a simple help string for each option and the calling program.\n\n::\n\n \"\"\"Your program.\"\"\"\n\n from clop import Clop\n\n ...\n\n # Make a Clop object.\n clp = Clop()\n\n # Specify acceptable options and their arguments.\n clp.addOptionDef(letter = 'k',\n required = True,\n numArgs = 3,\n help = 'Help for option k')\n\n ...\n\n # optArgs is a dictionary of options and arguments\n optArgs = clp.processCmdLine(sys.argv[1:])\n\n ...\n\n # Print the help string when you need it.\n helpStr = clp.helpString('clop:\\nShort demo of the clop module.')\n print(helpStr)\n\n clop:\n Short demo of the clop module.\n \n REQUIRED OPTIONS:\n k: Help for option k\n Allowed arguments: Exactly 3\n m: Help for option m\n Allowed arguments: Exactly 1\n n: Help for option n\n Allowed arguments: 0 or more\n \n OPTIONAL OPTIONS:\n o: Help for option o\n Allowed arguments: Exactly 0\n p: Help for option p\n Allowed arguments: Exactly 1\n q: Help for option q\n Allowed arguments: 0 or more\n\n\nclop includes a demo in its main() function:\n\n``$ python -m clop -k 1 2 3 -m one-two -n 3 4 5 -o -p 1 -q \"one two\"``\n\n``{'k': ['1', '2', '3'], 'm': ['one-two'], 'o': [], 'n': ['3', '4', '5'], 'q': ['one two'], 'p': ['1']}``\n\n- Options are a dash and a single letter: -o\n- An option can be followed by zero or more arguments.\n- An option can only be specified with its letter (-o). No --long options.\n- An option letter can be any \"letter\" where letter.isalpha() is True.\n- Options cannot be composed. Only one character per dash, not -olmp.\n- Options can appear in any order on the command line.\n- Options and arguments on the command line are strings.\n The calling program does any type and value checking and conversion\n of arguments after clop's command line processing.\n Clop makes no judgments other than allowed options and arguments.\n\nMore clop features are unlikely. If you need more, argparse is excellent,\nand comes with a real horse.", "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/a3n/clop", "keywords": "option argument arg command line cmdline", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "clop", "package_url": "https://pypi.org/project/clop/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/clop/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/a3n/clop" }, "release_url": "https://pypi.org/project/clop/0.2.8/", "requires_dist": null, "requires_python": null, "summary": "A simple Command Line Option Processor", "version": "0.2.8" }, "last_serial": 2226549, "releases": { "0.1": [], "0.1.2": [ { "comment_text": "", "digests": { "md5": "7a3c889e22062e167e192d3482996bfd", "sha256": "077eecd8459127ce960b912d56a738b4f3090e5bfef3a4496cddd58a5d082afc" }, "downloads": -1, "filename": "clop-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7a3c889e22062e167e192d3482996bfd", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6951, "upload_time": "2016-06-13T00:49:12", "url": "https://files.pythonhosted.org/packages/71/bf/b6d83bfeac22f18a2154a0ee2a80edf1e1111a9a11f66f170730f96a42f6/clop-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "17afa14204b042b68f1bdd5efaa54f83", "sha256": "e12178dca68af0f7e067bda113097669552174ac093f2ff0a14fa5d1c72f0c7f" }, "downloads": -1, "filename": "clop-0.1.2.tar.gz", "has_sig": false, "md5_digest": "17afa14204b042b68f1bdd5efaa54f83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4737, "upload_time": "2016-06-13T00:49:17", "url": "https://files.pythonhosted.org/packages/50/c6/35eff0b61b316901f2d0721b2de802b8c905842da1da0823f9b889a2e4c3/clop-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3ff0aa3aef7569d95d6eb03e3f193f8c", "sha256": "88a6e8152ed1922930f23e2fe656d1734fc58145ef3595897c5e17ab8d2af96f" }, "downloads": -1, "filename": "clop-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3ff0aa3aef7569d95d6eb03e3f193f8c", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7082, "upload_time": "2016-06-13T01:37:35", "url": "https://files.pythonhosted.org/packages/40/5a/ca4e4943a10bc60be33e3da9c58994707bbd715848552c6affa32fd1ce8e/clop-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e7a64c735901f152b6d172708d32a04a", "sha256": "a54821619e60d8a822fd0fa919c057d0c8dbc82577037d40e872cbe906008bef" }, "downloads": -1, "filename": "clop-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e7a64c735901f152b6d172708d32a04a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4828, "upload_time": "2016-06-13T01:37:40", "url": "https://files.pythonhosted.org/packages/0c/b6/de23ab2c782b5a4c33d83886fd9faee451269283a0ac19672c1c362b5768/clop-0.2.0.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "f089f61a8f82ad24b547edeca49d0d96", "sha256": "25e872033ce45521255fa4707fde40fafcb7489b8262a5f13d6ae97fe8363dff" }, "downloads": -1, "filename": "clop-0.2.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f089f61a8f82ad24b547edeca49d0d96", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7485, "upload_time": "2016-06-15T13:21:30", "url": "https://files.pythonhosted.org/packages/a5/c1/7169e568c4c9ba5046aa0a665d16bf2e3ff91088af08541d6d3ab42ba1a4/clop-0.2.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "20a42addd9ea0c4ebd4622c315ae3867", "sha256": "bf05380a02cfe61b91508d8f6e615cd1d7b10a8e87ff9836e032e30579d83c73" }, "downloads": -1, "filename": "clop-0.2.5.tar.gz", "has_sig": false, "md5_digest": "20a42addd9ea0c4ebd4622c315ae3867", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4958, "upload_time": "2016-06-15T13:22:01", "url": "https://files.pythonhosted.org/packages/ee/01/d9ee21f5afb73388bda2260fec111a3368333080700409252b6dc04ea9b4/clop-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "fdb1f6a29d1583662e7405396b2ff943", "sha256": "72069c195f746a4d715e114285a0fa1673bcfa878085eec5e3907ffa62ff4a77" }, "downloads": -1, "filename": "clop-0.2.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fdb1f6a29d1583662e7405396b2ff943", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7488, "upload_time": "2016-06-15T13:23:59", "url": "https://files.pythonhosted.org/packages/d7/0a/4ea6e831fc2187715cf7a2f365401b86f5685db8cbad81d69ab3b478bd9f/clop-0.2.6-py2.py3-none-any.whl" } ], "0.2.7": [ { "comment_text": "", "digests": { "md5": "2d0f9ea83ff6ac472b747db04fa1fe3a", "sha256": "a82243b1359af98e764b8703a071fb05d5514b299ea3840620685bbc0a3d08ec" }, "downloads": -1, "filename": "clop-0.2.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2d0f9ea83ff6ac472b747db04fa1fe3a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7488, "upload_time": "2016-06-15T13:38:11", "url": "https://files.pythonhosted.org/packages/5a/47/b0d2b8866a9f9e94e4becdb62bc9202b9435d0327939f651cafc7c1d7936/clop-0.2.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "34baace1ce9d4a4af4ba124f5524e10b", "sha256": "b1df68f814ec01bc4d11e7a368c49c37285e67caf18198ea448c8efa0c091394" }, "downloads": -1, "filename": "clop-0.2.7.tar.gz", "has_sig": false, "md5_digest": "34baace1ce9d4a4af4ba124f5524e10b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4961, "upload_time": "2016-06-15T13:38:40", "url": "https://files.pythonhosted.org/packages/c9/5e/4b956eb7bcc25b4cf22a2da9520b83ad31eb86a6735a2ebae6c8235c20c0/clop-0.2.7.tar.gz" } ], "0.2.8": [ { "comment_text": "", "digests": { "md5": "c33a5d170d5c0aa1299ca49673df9f3a", "sha256": "8dfef36497191ca7787e3a19e36cbed782ab79c16e1e90d103e3720d603f66b9" }, "downloads": -1, "filename": "clop-0.2.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c33a5d170d5c0aa1299ca49673df9f3a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7593, "upload_time": "2016-07-17T05:31:26", "url": "https://files.pythonhosted.org/packages/77/43/250758223795d6b01ce7fec88c20ca0b172febbb0ea1dbf19cd6ed2ae7f9/clop-0.2.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e3d2da5ca7293f18d691bff83f17ae25", "sha256": "052462315ee31626401cb940f54eb0e097e57dd82800c7583a7ed5479f17410b" }, "downloads": -1, "filename": "clop-0.2.8.tar.gz", "has_sig": false, "md5_digest": "e3d2da5ca7293f18d691bff83f17ae25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5048, "upload_time": "2016-07-17T05:31:29", "url": "https://files.pythonhosted.org/packages/d4/b2/b0cbc73b2937fdae1e048adcd52b97b4b0ab41d2692bff9918858ec835f3/clop-0.2.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c33a5d170d5c0aa1299ca49673df9f3a", "sha256": "8dfef36497191ca7787e3a19e36cbed782ab79c16e1e90d103e3720d603f66b9" }, "downloads": -1, "filename": "clop-0.2.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c33a5d170d5c0aa1299ca49673df9f3a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7593, "upload_time": "2016-07-17T05:31:26", "url": "https://files.pythonhosted.org/packages/77/43/250758223795d6b01ce7fec88c20ca0b172febbb0ea1dbf19cd6ed2ae7f9/clop-0.2.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e3d2da5ca7293f18d691bff83f17ae25", "sha256": "052462315ee31626401cb940f54eb0e097e57dd82800c7583a7ed5479f17410b" }, "downloads": -1, "filename": "clop-0.2.8.tar.gz", "has_sig": false, "md5_digest": "e3d2da5ca7293f18d691bff83f17ae25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5048, "upload_time": "2016-07-17T05:31:29", "url": "https://files.pythonhosted.org/packages/d4/b2/b0cbc73b2937fdae1e048adcd52b97b4b0ab41d2692bff9918858ec835f3/clop-0.2.8.tar.gz" } ] }