{ "info": { "author": "Ethan Furman", "author_email": "ethan@stoneleaf.us", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Topic :: Database" ], "description": "Yet Another Enumerator is an enum module that supports three different types of enumerations:\r\n\r\n - sequence enums (0, 1, 2, 3, etc.)\r\n - base 2 bitmask enums (0, 1, 2, 4, 8, etc.)\r\n - string enums ('top','bottom','left','right', etc.)\r\n\r\nEach Enumeration is its own class, with instances of that class being singletons. Besides being a value, enum instances can also have their own behavior (use case, anyone?).\r\n\r\nCreating an enum is as simple as::\r\n\r\n from yaenum import Enum, BitMaskEnum, UniqueEnum, enum\r\n\r\n Enum.create('Color', 'red green blue', export=globals())\r\n\r\nor::\r\n \r\n class Color(BitMaskEnum): # python 3+ only\r\n black\r\n red\r\n green\r\n blue\r\n\r\nand if that's too magical for you::\r\n\r\n class Color(BitMaskEnum):\r\n black = enum() # python 2: enum(value=0) etc.\r\n red = enum()\r\n green = enum()\r\n blue = enum()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://python.org/pypi/yaenum", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "yaenum", "package_url": "https://pypi.org/project/yaenum/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/yaenum/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://python.org/pypi/yaenum" }, "release_url": "https://pypi.org/project/yaenum/0.1/", "requires_dist": null, "requires_python": null, "summary": "Enum module supporting sequence, bitmask, and string enumerations", "version": "0.1" }, "last_serial": 571927, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5f54d162b5296cd086022e21eede38b9", "sha256": "ee17c20c43145a26a39fd55fbdfbe16d98649b977bd73ae652218ad5c920a6bb" }, "downloads": -1, "filename": "yaenum-0.1.tar.gz", "has_sig": false, "md5_digest": "5f54d162b5296cd086022e21eede38b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8265, "upload_time": "2013-02-22T20:30:08", "url": "https://files.pythonhosted.org/packages/77/4a/b9d03edf9500c003ceeb1409cdaf4bd3e3fc47a68d08489c77a7cc97b03a/yaenum-0.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "235f33d5e6f32f5b9e3f60ce2f9318fb", "sha256": "b6fd7bcdaf52cb2e8f7958c72e24cea28cc202f4cfe5e5ee64d2020055131ee9" }, "downloads": -1, "filename": "yaenum-0.1.zip", "has_sig": false, "md5_digest": "235f33d5e6f32f5b9e3f60ce2f9318fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12597, "upload_time": "2013-02-22T20:30:05", "url": "https://files.pythonhosted.org/packages/7e/d2/bdff4b33b47f225fd7f6ad8d5902a6fd9db57f1969b2cfd9d364d8b43d34/yaenum-0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5f54d162b5296cd086022e21eede38b9", "sha256": "ee17c20c43145a26a39fd55fbdfbe16d98649b977bd73ae652218ad5c920a6bb" }, "downloads": -1, "filename": "yaenum-0.1.tar.gz", "has_sig": false, "md5_digest": "5f54d162b5296cd086022e21eede38b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8265, "upload_time": "2013-02-22T20:30:08", "url": "https://files.pythonhosted.org/packages/77/4a/b9d03edf9500c003ceeb1409cdaf4bd3e3fc47a68d08489c77a7cc97b03a/yaenum-0.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "235f33d5e6f32f5b9e3f60ce2f9318fb", "sha256": "b6fd7bcdaf52cb2e8f7958c72e24cea28cc202f4cfe5e5ee64d2020055131ee9" }, "downloads": -1, "filename": "yaenum-0.1.zip", "has_sig": false, "md5_digest": "235f33d5e6f32f5b9e3f60ce2f9318fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12597, "upload_time": "2013-02-22T20:30:05", "url": "https://files.pythonhosted.org/packages/7e/d2/bdff4b33b47f225fd7f6ad8d5902a6fd9db57f1969b2cfd9d364d8b43d34/yaenum-0.1.zip" } ] }