{ "info": { "author": "Utsob Roy", "author_email": "roy@codesign.com.bd", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# Django Postgresql RGB ColorField\n\nThis is a ColorField based on django's `django.contrib.postgres.ArrayField`. Though it shows Hex in admin and let you pick color, it is saving its value as a RGB array. Which is perticularly useful if you want to do query and calculation over it. e.g. Getting colors close to another.\n\n\n### Requirements\n\n1. Python 3.X\n2. Postgresql database in django.\n\n\n### Installation\n\n```bash\npip install django-postgresql-rgb-colorfield\n```\n\n### Quick start\n \n1. Add `colorfield` to your INSTALLED_APPS setting like this:\n\n```python\nINSTALLED_APPS = [\n ...\n 'colorfield',\n]\n```\n\n2. Import and Use `ColorField`:\n \n```python\nfrom django.db import models\nfrom colorfield.fields import ColorField\n# Create your models here.\n\nclass ColorPallate(models.Model):\n color1 = ColorField(null=True, blank=True)\n color2 = ColorField(null=True, blank=True)\n color3 = ColorField(null=True, blank=True)\n \n def __str__(self):\n return f\"Pallate {self.id}\"\n```", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/codesigntheory/django-postgresql-rgb-colorfield", "keywords": "", "license": "Mozilla Public License 2.0 (MPL 2.0)", "maintainer": "", "maintainer_email": "", "name": "django-postgresql-rgb-colorfield", "package_url": "https://pypi.org/project/django-postgresql-rgb-colorfield/", "platform": "", "project_url": "https://pypi.org/project/django-postgresql-rgb-colorfield/", "project_urls": { "Homepage": "https://gitlab.com/codesigntheory/django-postgresql-rgb-colorfield" }, "release_url": "https://pypi.org/project/django-postgresql-rgb-colorfield/1.3.0/", "requires_dist": null, "requires_python": "", "summary": "A ColorField to save Colors in RGB array in postgresql.", "version": "1.3.0" }, "last_serial": 4139763, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "789cd33175d593375459b31dec70923a", "sha256": "947d8c432a4e12c3573a85cbba87a35c0a18fb53cfed19080343e894e67c3193" }, "downloads": -1, "filename": "django-postgresql-rgb-colorfield-1.0.0.tar.gz", "has_sig": false, "md5_digest": "789cd33175d593375459b31dec70923a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23356, "upload_time": "2018-07-23T06:45:22", "url": "https://files.pythonhosted.org/packages/47/d5/eba6ee478770f8e8b47075e1fa06b9171c97cb51b5fbe48579652af31788/django-postgresql-rgb-colorfield-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "cfe5af3fad460c2bfce309bbf6bd8e8c", "sha256": "551c709c34dbd835aee009a147f08bdeaab7b1fe9b47c8d7e1d43f22a10362af" }, "downloads": -1, "filename": "django_postgresql_rgb_colorfield-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cfe5af3fad460c2bfce309bbf6bd8e8c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25228, "upload_time": "2018-07-23T06:55:29", "url": "https://files.pythonhosted.org/packages/8b/a7/696b0c65f968aa51ca97fb05d2d6d839f50d379ffa775b8082ec8a08e8ac/django_postgresql_rgb_colorfield-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6fb0a86d78d564208742e128fa157ce4", "sha256": "8dd2e45c21fdf1b698051529e69def3511d138a79506d2d9afda4001fb1ec07a" }, "downloads": -1, "filename": "django-postgresql-rgb-colorfield-1.1.0.tar.gz", "has_sig": false, "md5_digest": "6fb0a86d78d564208742e128fa157ce4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23390, "upload_time": "2018-07-23T06:55:31", "url": "https://files.pythonhosted.org/packages/17/a6/701614a6f470e7683c779585593acb29cbad1af443651f6761c75085d12c/django-postgresql-rgb-colorfield-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "77fadbce27d66082f8b2e30acda1f550", "sha256": "281aa6117881f92fcc6cd2cfff1e96de2ea1628c7a8a1896ed9b114dc1da02c9" }, "downloads": -1, "filename": "django-postgresql-rgb-colorfield-1.2.0.tar.gz", "has_sig": false, "md5_digest": "77fadbce27d66082f8b2e30acda1f550", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23395, "upload_time": "2018-07-23T07:00:28", "url": "https://files.pythonhosted.org/packages/bd/05/0cfaa475ee9bb3c8bfefa87f8c032c4f2b42509f075220b9899cfb10a6d6/django-postgresql-rgb-colorfield-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "8fb6de5e2ec3dbc54f83213390941f62", "sha256": "c46aa73f802621aecf3ccf8a00c9817ece343505d235d41aaf3b91fb3180a9f4" }, "downloads": -1, "filename": "django-postgresql-rgb-colorfield-1.2.1.tar.gz", "has_sig": false, "md5_digest": "8fb6de5e2ec3dbc54f83213390941f62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23436, "upload_time": "2018-07-24T02:57:53", "url": "https://files.pythonhosted.org/packages/26/54/b0c46cbe77f8b081e1dac289071e3f134d972ffcf5504d2774ef9b930b41/django-postgresql-rgb-colorfield-1.2.1.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "db90c7407d26f6da76bd1f3462440515", "sha256": "8c1d4abf19ffe7d33820cd26e72189e8e7935f57781beee20c41116067d4521e" }, "downloads": -1, "filename": "django-postgresql-rgb-colorfield-1.2.3.tar.gz", "has_sig": false, "md5_digest": "db90c7407d26f6da76bd1f3462440515", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23377, "upload_time": "2018-07-24T03:02:54", "url": "https://files.pythonhosted.org/packages/ea/21/dbe0954ece63b8c169af855871163e0fc11d7fb06eb98931c92e27d4ad9d/django-postgresql-rgb-colorfield-1.2.3.tar.gz" } ], "1.2.5": [ { "comment_text": "", "digests": { "md5": "8a9fcbbf19ebdba55a663e1aa81b458a", "sha256": "c3ce06b1666e48ed78d6f82e2293bdd638b10397688f8024a1143b3609782fe3" }, "downloads": -1, "filename": "django-postgresql-rgb-colorfield-1.2.5.tar.gz", "has_sig": false, "md5_digest": "8a9fcbbf19ebdba55a663e1aa81b458a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23414, "upload_time": "2018-07-24T03:12:47", "url": "https://files.pythonhosted.org/packages/01/06/2c47f2be074339003ec224e52a63d32ebd76ef2e71b52ac27e851caa9639/django-postgresql-rgb-colorfield-1.2.5.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "a22968914d6d3c40d01dfbf3fdc00bd2", "sha256": "3d2e6e12e1cf747415392d3b0a2d3f48937eaf28c48b49267463e02929b35bff" }, "downloads": -1, "filename": "django-postgresql-rgb-colorfield-1.3.0.tar.gz", "has_sig": false, "md5_digest": "a22968914d6d3c40d01dfbf3fdc00bd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23425, "upload_time": "2018-08-06T10:16:47", "url": "https://files.pythonhosted.org/packages/fb/88/4a85527363a7d6197ee238915e2e532c1a187e75cfd4e967674474659e6b/django-postgresql-rgb-colorfield-1.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a22968914d6d3c40d01dfbf3fdc00bd2", "sha256": "3d2e6e12e1cf747415392d3b0a2d3f48937eaf28c48b49267463e02929b35bff" }, "downloads": -1, "filename": "django-postgresql-rgb-colorfield-1.3.0.tar.gz", "has_sig": false, "md5_digest": "a22968914d6d3c40d01dfbf3fdc00bd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23425, "upload_time": "2018-08-06T10:16:47", "url": "https://files.pythonhosted.org/packages/fb/88/4a85527363a7d6197ee238915e2e532c1a187e75cfd4e967674474659e6b/django-postgresql-rgb-colorfield-1.3.0.tar.gz" } ] }