{ "info": { "author": "Vimal Aravindashan", "author_email": "vimal.aravindashan@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.8", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "==============\nDjango BigFeat\n==============\n\nDjango BigFeat is custom field to add up to 63 boolean features using a BigIntegerField.\n\nQuick start\n-----------\n\n.. code:: python\n\n from django.db import models\n from bigfeat import BigFeatField\n \n class ModelWithOptionalFeatures(models.Model):\n FEATURES = {\n 'FEATURE_1' : 0x0000000000000001,\n 'FEATURE_2' : 0x0000000000000002,\n 'FEATURE_3' : 0x0000000000000004,\n 'FEATURE_4' : 0x0000000000000008,\n ...\n 'FEATURE_61' : 0x1000000000000000,\n 'FEATURE_62' : 0x2000000000000000,\n 'FEATURE_63' : 0x4000000000000000,\n }\n features = BigFeatField(masks=FEATURES)\n \n m = ModelWithOptionalFeatures.objects.get(id=1)\n print m.features.feature_1\n if m.features.feature_2:\n print m.features.feature_3 if m.features.feature_4 else m.features.feature_5\n print m.features\n\nNotes\n-----\n\nThe most significant bit (0x8000000000000000) cannot be used since\nBigIntegerField is stored as a signed integer and will cause an OverflowError", "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/f0r4y312/django-bigfeat", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-bigfeat", "package_url": "https://pypi.org/project/django-bigfeat/", "platform": "any", "project_url": "https://pypi.org/project/django-bigfeat/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/f0r4y312/django-bigfeat" }, "release_url": "https://pypi.org/project/django-bigfeat/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Custom field to add multiple boolean features using a BigIntegerField.", "version": "0.1.1" }, "last_serial": 2447204, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "3171811c81289fdfbbb8d64ffa14bfa4", "sha256": "c66dafa14e53e6e6961e75e1b55f40d4ae9d39e4213452b7e3e9c709afb8cb98" }, "downloads": -1, "filename": "django_bigfeat-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "3171811c81289fdfbbb8d64ffa14bfa4", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3962, "upload_time": "2016-11-07T15:25:46", "url": "https://files.pythonhosted.org/packages/86/95/6338802b1d69366982f0f75fd2568ddbbfb9d0999111b0350ee7a5e73c6e/django_bigfeat-0.1.0-py2-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "120b4526990d6955d57bf7e9625b3e66", "sha256": "7c57b9d0abd8c4b115004b21e208041fb6656e764dae23c0abd606ce35c6e457" }, "downloads": -1, "filename": "django_bigfeat-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "120b4526990d6955d57bf7e9625b3e66", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3987, "upload_time": "2016-11-07T15:43:08", "url": "https://files.pythonhosted.org/packages/b3/c0/6a57e50e9975801bdd615c8b22a2c3451dc0bed236ff48dea0ea6cfcf751/django_bigfeat-0.1.1-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "120b4526990d6955d57bf7e9625b3e66", "sha256": "7c57b9d0abd8c4b115004b21e208041fb6656e764dae23c0abd606ce35c6e457" }, "downloads": -1, "filename": "django_bigfeat-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "120b4526990d6955d57bf7e9625b3e66", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3987, "upload_time": "2016-11-07T15:43:08", "url": "https://files.pythonhosted.org/packages/b3/c0/6a57e50e9975801bdd615c8b22a2c3451dc0bed236ff48dea0ea6cfcf751/django_bigfeat-0.1.1-py2-none-any.whl" } ] }