{
"info": {
"author": "Samuel Chen",
"author_email": "samuel.net@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules"
],
"description": "# Optenum\n\n[](https://pypi.org/project/optenum/)\n[](https://travis-ci.org/samuelchen/optenum)\n[](https://pypi.org/project/optenum/)\n[](https://pypi.org/project/optenum/)\n[](https://pypi.org/project/optenum/)\n[](https://pypi.org/project/optenum/)\n\n\n\nA missing Python Option/Enum library which supports enum code, name, text, even (code, name) tuple list and so on.\n\nName \"**optenum**\" comes from '**opt**ion' + '**enum**eration'.\n\nCompatible with `Python 2.7+` and `Python 3.0+`.\n\n# Install\n\nPython 3.x, 2.7\n\n```bash\npip install optenum\n```\n\nFor those probably missing `six` module:\n\n```bash\npip install six optenum\n```\n\n# Quick start\n\n1. Simple as Enum type\n\n Says we define a simple enum:\n\n ```python\n from optenum import Options\n\n class Fruit(Options):\n APPLE = 1\n ORANGE = 2\n BANANA = 3 \n ```\n\n Try the following in Python command line:\n\n ```\n >>> from optenum import Option, Options\n >>> class Fruit(Options):\n ... APPLE = 1\n ... ORANGE = 2\n ... BANANA = 3\n >>> \n >>> Fruit.APPLE\n