{ "info": { "author": "Daniel Paz Avalos", "author_email": "dpazavalos@protonmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.5" ], "description": "# Python Command Line Menu Selector (PyCoLiMS)\nA command line menu, designed for single stage selection.\nDisplays a given list on screen for user to select, either in single or multi mode.\nReturns selected item/s to the calling function in the same format as provided.\n\nIf given a dictionary, pycolims will return key/s, allowing easy user input to call a dict value\n\nIn the case of lists too large to display at once, pycolims breaks the list down into terminal-sized\n chunks, with a paging system to cycle between the chunks \n\n\\* It's a series of pointers, not a bunch of new lists. Pycolims tries to stay memory friendly!\n\n### Installation\n\n```\npip install pycolims\n```\n\n### Single Selection menu\n\n```python\nimport pycolims\nmenu_single = pycolims.Single()\nmenu_single.run(array_in, header: str=\"\")\n```\n\nA single selection menu will display items on screen and return a single user selected value\nThis can be a single item or one nested list from a given matrix \n\n### Multi Selection Menu\n```python\nimport pycolims\nmenu_multi = pycolims.Multi()\nmenu_multi.run(array_in, header: str=\"\")\n```\n\nWhen a multi pycolims is used, the menu returns the entire given array with each item converted to \na list, where [0] is a boolean indicating selection\n\n```python\n >>> list_with_booleans = menu_multi.run([0, 1, '2'])\n # User selects first and last options...\n >>> print(list_with_booleans)\n [[True, 0], [False, 1], [True, '2']]\n```\n\nMulti pycolims can also parse a given list in similar format to display items 'already selected'\n\n```python\nprev_settings = [[True, 'val_one'], \n [False, 'val_two']]\n```\n\n#### Pycolims menu options\n\nEach pycolims menu has a series of commands at the bottom\n\n Single menu options\n (-) Prev Page\n (+) Next Page\n (!!) Break\n\n Multi Menu Options\n (-) Prev Page\n (+) Next Page\n (**) Select All (//) Clear All (><) Flip All (..) Return Selected (!!) Break\n\n(-) Prev Page\n(+) Next Page\n\nCycles through available pages\n\n(!!) Break\n\nEasy back out for end user use; throws a Keyboard interrupt error to interrupt code\n\n(**) Select All (//) Clear All\n\nSelects/Clears ALL available items\n\n(><) Flip All\n\nInverts all item selections\n\n(..) Return Selected\n\nFinishes a multi selection menu and returns items\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dpazavalos/pycolims", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pycolims", "package_url": "https://pypi.org/project/pycolims/", "platform": "", "project_url": "https://pypi.org/project/pycolims/", "project_urls": { "Homepage": "https://github.com/dpazavalos/pycolims" }, "release_url": "https://pypi.org/project/pycolims/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "An importable, single stage CLI menu package", "version": "0.2.0" }, "last_serial": 4798257, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "deccf38c926462a04a69a89440605553", "sha256": "e33a2bae7c70aed0f0c8fc1966dfc2ab14e8d33a35a14531e2f800a8b3fdb340" }, "downloads": -1, "filename": "pycolims-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "deccf38c926462a04a69a89440605553", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6683, "upload_time": "2019-01-14T15:14:16", "url": "https://files.pythonhosted.org/packages/42/5c/edbadb4c8a8709656cd33b4b1f5d3579fb2cfc40bd3b6a11d7dc50bf5ff8/pycolims-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba63cf591c096e11233df762c53c9f9b", "sha256": "c3d503ae5da63bb7aa63c49f239f2635a121eb8e4b650fd53d00d7e03dd83b3a" }, "downloads": -1, "filename": "pycolims-0.1.tar.gz", "has_sig": false, "md5_digest": "ba63cf591c096e11233df762c53c9f9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5660, "upload_time": "2019-01-14T15:14:17", "url": "https://files.pythonhosted.org/packages/92/0e/0c6801c42f3370d685f3b3844b1d81820614fa9ce50fb0a8a86746df6680/pycolims-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5c3f184ad50a69c2f0e08708718ae324", "sha256": "85ba9880ba27eeb4dc13b64dc79976180aed5c286310e13ea5e21e4cb0bfa698" }, "downloads": -1, "filename": "pycolims-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5c3f184ad50a69c2f0e08708718ae324", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7057, "upload_time": "2019-01-27T06:49:48", "url": "https://files.pythonhosted.org/packages/10/36/32a321f2e114e3646a355bdae8a98d29178bd5f57ff671756dc05d723c84/pycolims-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "99e9751a0b478b1539eb1b467dc1c27a", "sha256": "b07985d24cf6c3440ec7726afcbbe0e03904ade083d37e283d0443045d575d98" }, "downloads": -1, "filename": "pycolims-0.1.1.tar.gz", "has_sig": false, "md5_digest": "99e9751a0b478b1539eb1b467dc1c27a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5827, "upload_time": "2019-01-27T06:49:50", "url": "https://files.pythonhosted.org/packages/55/5f/79a1abed768c0d2a96368ae6b64c637d5cd1444e6b0b59b4b6a7682cdd5c/pycolims-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "876ef98593bb42034c86f4a495da5a9c", "sha256": "3f8ac2db74ffb6c8bc668ae743d87e3b45a67caabf8f3c59187ef1e47eed824c" }, "downloads": -1, "filename": "pycolims-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "876ef98593bb42034c86f4a495da5a9c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14395, "upload_time": "2019-02-09T03:04:14", "url": "https://files.pythonhosted.org/packages/7d/1c/99140a0bdbf9fe35aac01037cf65d590bb6cef719fa8efa9f0b30a02b25e/pycolims-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "54feee61191871d06a56ec3455834bdb", "sha256": "3f95c5346d16a77ec10cc130f2afd4675210775e8b10be760ee152b4e437ee17" }, "downloads": -1, "filename": "pycolims-0.2.0.tar.gz", "has_sig": false, "md5_digest": "54feee61191871d06a56ec3455834bdb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9398, "upload_time": "2019-02-09T03:04:15", "url": "https://files.pythonhosted.org/packages/82/29/7eedc8248ad4dbebd3707ec97606ee1d58072f8c26e6f50b0c1dc1110688/pycolims-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "876ef98593bb42034c86f4a495da5a9c", "sha256": "3f8ac2db74ffb6c8bc668ae743d87e3b45a67caabf8f3c59187ef1e47eed824c" }, "downloads": -1, "filename": "pycolims-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "876ef98593bb42034c86f4a495da5a9c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14395, "upload_time": "2019-02-09T03:04:14", "url": "https://files.pythonhosted.org/packages/7d/1c/99140a0bdbf9fe35aac01037cf65d590bb6cef719fa8efa9f0b30a02b25e/pycolims-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "54feee61191871d06a56ec3455834bdb", "sha256": "3f95c5346d16a77ec10cc130f2afd4675210775e8b10be760ee152b4e437ee17" }, "downloads": -1, "filename": "pycolims-0.2.0.tar.gz", "has_sig": false, "md5_digest": "54feee61191871d06a56ec3455834bdb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9398, "upload_time": "2019-02-09T03:04:15", "url": "https://files.pythonhosted.org/packages/82/29/7eedc8248ad4dbebd3707ec97606ee1d58072f8c26e6f50b0c1dc1110688/pycolims-0.2.0.tar.gz" } ] }