{ "info": { "author": "Alexander Likhachev", "author_email": "likhachev96@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-rgbfield\n=====================\n\nAn extension to the Django web framework that provides database and form color fields to accept RGB encoded color\nin HEX and store it as 4 bytes int.\n\nWhy use it?\n-------\nIt saves up to 3 bytes for you!!! :)\nThe only loss is when you want to save color in packed form (i.e. you trying to save 'abc' (not '#abc'), which is 3 bytes but its int\nrepresentation is 4 bytes)\n\nInstallation\n-------\nPython package:\n```\npip install django-rgbfield\n```\nNo need to include 'rgbfield' to INSTALLED_APPS because it provides only fields and nothing more.\n\nUsage\n-------\n```python\nfrom django.db import models\nfrom rgbfield.fields import RGBColorField\n\nclass ExampleModel(models.Model):\n color = RGBColorField(default='#fff')\n```\n\nYou can both generate form using ModelForm class or do it manually:\n```python\nfrom django import forms\nfrom rgbfield.fields import RGBColorFormField\n\nclass ExampleForm(forms.Form):\n color = RGBColorFormField(default='#fff')\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/MisterFix/django-rgbfield", "keywords": "django rgb color field", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-rgbfield", "package_url": "https://pypi.org/project/django-rgbfield/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-rgbfield/", "project_urls": { "Homepage": "https://github.com/MisterFix/django-rgbfield" }, "release_url": "https://pypi.org/project/django-rgbfield/1.0/", "requires_dist": [ "Django (>=1.8)", "six" ], "requires_python": "", "summary": "An extension to the Django web framework that provides database and form color fields to accept RGB encoded color in HEX and store it as 4 bytes int", "version": "1.0" }, "last_serial": 2095155, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "2025b08b8ec3a1168e98061c629d578c", "sha256": "714f4d002d82941c685860e0875af4e39e043458374dfd1b9247948ba024b666" }, "downloads": -1, "filename": "django_rgbfield-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2025b08b8ec3a1168e98061c629d578c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5545, "upload_time": "2016-05-02T15:09:56", "url": "https://files.pythonhosted.org/packages/06/ed/f7a75d42998af87a76dd8063a13aa2f9f8594810240eadaf37174547ff07/django_rgbfield-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "79fa26d7dd9c6241c3ef2f860b977b22", "sha256": "597e9b538da764f18a281e4b7d0f37608655eaa6a87b928d69aea066e1ebbaa8" }, "downloads": -1, "filename": "django-rgbfield-1.0.tar.gz", "has_sig": false, "md5_digest": "79fa26d7dd9c6241c3ef2f860b977b22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2915, "upload_time": "2016-05-02T15:10:56", "url": "https://files.pythonhosted.org/packages/bb/22/fc71a1e3fb1d8f2710f805329d4ae2e238943a0f17be9f35f4b2f496902b/django-rgbfield-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2025b08b8ec3a1168e98061c629d578c", "sha256": "714f4d002d82941c685860e0875af4e39e043458374dfd1b9247948ba024b666" }, "downloads": -1, "filename": "django_rgbfield-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2025b08b8ec3a1168e98061c629d578c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5545, "upload_time": "2016-05-02T15:09:56", "url": "https://files.pythonhosted.org/packages/06/ed/f7a75d42998af87a76dd8063a13aa2f9f8594810240eadaf37174547ff07/django_rgbfield-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "79fa26d7dd9c6241c3ef2f860b977b22", "sha256": "597e9b538da764f18a281e4b7d0f37608655eaa6a87b928d69aea066e1ebbaa8" }, "downloads": -1, "filename": "django-rgbfield-1.0.tar.gz", "has_sig": false, "md5_digest": "79fa26d7dd9c6241c3ef2f860b977b22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2915, "upload_time": "2016-05-02T15:10:56", "url": "https://files.pythonhosted.org/packages/bb/22/fc71a1e3fb1d8f2710f805329d4ae2e238943a0f17be9f35f4b2f496902b/django-rgbfield-1.0.tar.gz" } ] }