{ "info": { "author": "FuGangqiang", "author_email": "fu_gangqiang@qq.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Documentation" ], "description": "=========\npychoice\n=========\n\nAn utility adds code readability to your application and/or API, Code is documentation!\n\n\nInstall\n-------\n\n::\n\n pip install pychoice\n\n\nExample\n-------\n\n::\n\n from pychoice import Choice\n\n Status = Choice(\n (0, 'item0'),\n (1, 'item1'),\n (2, 'item2')\n )\n\n assert Status('item0') == 0\n assert Status('item0', 'item1') == [0, 1]\n\n assert Status[0] == 'item0'\n assert Status[0, 1] == ['item0', 'item1']\n assert Status[...] == ['item0', 'item1', 'item2']\n\n assert Status.exclude('item0') == [1, 2]\n assert Status.pairs('item0', 'item2') == [(0, 'item0'), (2, 'item2')]\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/FuGangqiang/pychoice", "keywords": "choice", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pychoice", "package_url": "https://pypi.org/project/pychoice/", "platform": "", "project_url": "https://pypi.org/project/pychoice/", "project_urls": { "Homepage": "https://github.com/FuGangqiang/pychoice" }, "release_url": "https://pypi.org/project/pychoice/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "An utility adds code readability to your application and/or API, Code is documentation!", "version": "0.1.1" }, "last_serial": 3086249, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "722a8ef41465f22a1fd1369e9d599c9d", "sha256": "b8abb4f2f9ae7632379f3b4747508b31b62bbb69a21641cd16cb72c5f583f6bb" }, "downloads": -1, "filename": "pychoice-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "722a8ef41465f22a1fd1369e9d599c9d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3169, "upload_time": "2017-06-22T04:13:07", "url": "https://files.pythonhosted.org/packages/0c/81/bf8e125310b3584c9d4a8bfba2ccb571ae0a87527b5f753c43145edf87f9/pychoice-0.1.0-py2.py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "731d9a11a73d35620216adf8045b4eec", "sha256": "d597dd02310fa28520b2978f9f30dff416e08ed712d768231e49724bcf6f6b98" }, "downloads": -1, "filename": "pychoice-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "731d9a11a73d35620216adf8045b4eec", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3182, "upload_time": "2017-08-10T08:47:50", "url": "https://files.pythonhosted.org/packages/8f/2a/d92566bc7288ff919c455c9f3cc1c99894fa48ba8a6cb96dff2619ecccbe/pychoice-0.1.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "731d9a11a73d35620216adf8045b4eec", "sha256": "d597dd02310fa28520b2978f9f30dff416e08ed712d768231e49724bcf6f6b98" }, "downloads": -1, "filename": "pychoice-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "731d9a11a73d35620216adf8045b4eec", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3182, "upload_time": "2017-08-10T08:47:50", "url": "https://files.pythonhosted.org/packages/8f/2a/d92566bc7288ff919c455c9f3cc1c99894fa48ba8a6cb96dff2619ecccbe/pychoice-0.1.1-py2.py3-none-any.whl" } ] }