{ "info": { "author": "Joshua Tauberer", "author_email": "jt@occams.info", "bugtrack_url": null, "classifiers": [], "description": "enum3field\n===========\n\nA Django 1.7+ model field for use with Python 3 enums.\n\nWorks with any enum whose values are integers. Subclasses the IntegerField to store the enum as integers in the database. \n\nWhen creating/loading fixtures, values are serialized to dotted names, like \"AnimalType.Cat\" for the example below.\n\nA decorator is needed on Python enums in order to make them work with Django migrations, which require a deconstruct() method on the enum members.\n\nInstallation::\n\n\tpip install enum3field\n\nExample::\n\n\timport enum\n\tfrom enum3field import EnumField, django_enum\n\n\t@django_enum\n\tclass AnimalType(enum.Enum):\n\t Cat = 1\n\t Dog = 2\n\t Turtle = 3\n\n\tclass Animal(models.Model):\n\t animalType = EnumField(AnimalType)\n\nRequires Python 3. Not tested with Django versions prior to 1.7 but might work.", "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/joshdata/enum3field", "keywords": "Django enum field", "license": "CC0 (copyright waived)", "maintainer": null, "maintainer_email": null, "name": "enum3field", "package_url": "https://pypi.org/project/enum3field/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/enum3field/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/joshdata/enum3field" }, "release_url": "https://pypi.org/project/enum3field/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "A Django 1.7+ model field for use with Python 3 enums.", "version": "0.1.1" }, "last_serial": 1357881, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "84b2e3becc8c13e85f4983d8ae312759", "sha256": "d8b11b78133696c97c6fdd4ea3b26a078af9fecf87a876267fd6ccb7fff16184" }, "downloads": -1, "filename": "enum3field-0.1.0.tar.gz", "has_sig": false, "md5_digest": "84b2e3becc8c13e85f4983d8ae312759", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2651, "upload_time": "2014-10-27T23:25:23", "url": "https://files.pythonhosted.org/packages/a4/ce/42fd3d9faf0d74be076a5d4a6c355cfe0c998f73df898f7c4da1a95ef590/enum3field-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d92e83328ac98c1ee3b72857100e2916", "sha256": "ea6196d88bdd75313f38dbbdbc8acd0794c555f4f8ff46d96f407dcc082d6ea5" }, "downloads": -1, "filename": "enum3field-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d92e83328ac98c1ee3b72857100e2916", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2778, "upload_time": "2014-12-22T21:29:00", "url": "https://files.pythonhosted.org/packages/02/84/09ce87190cf19253c6da44837903eca05d3a2c48c3bd07b3975dfee1b321/enum3field-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d92e83328ac98c1ee3b72857100e2916", "sha256": "ea6196d88bdd75313f38dbbdbc8acd0794c555f4f8ff46d96f407dcc082d6ea5" }, "downloads": -1, "filename": "enum3field-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d92e83328ac98c1ee3b72857100e2916", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2778, "upload_time": "2014-12-22T21:29:00", "url": "https://files.pythonhosted.org/packages/02/84/09ce87190cf19253c6da44837903eca05d3a2c48c3bd07b3975dfee1b321/enum3field-0.1.1.tar.gz" } ] }