Metadata-Version: 1.1
Name: django-postgresql-rgb-colorfield
Version: 1.2.1
Summary: A ColorField to save Colors in RGB array in postgresql.
Home-page: https://gitlab.com/codesigntheory/django-postgresql-rgb-colorfield
Author: Utsob Roy
Author-email: roy@codesign.com.bd
License: Mozilla Public License 2.0 (MPL 2.0)
Description: =====
        Django Postgresql RGB ColorField
        =====
        
        This is a ColorField based on django's `from 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.
        
        
        Requirements
        ------------
        1. Python 3.X
        2. Postgresql database in django.
        
        
        Quick start
        -----------
        
        1. Add "polls" to your INSTALLED_APPS setting like this:
        
        .. code:: python
            
            INSTALLED_APPS = [
                ...
                'colorfield',
            ]
        
        2. Import and Use `ColorField`:
        
        .. code:: python
            
            from django.db import models
            from colorfield.fields import ColorField
            # Create your models here.
        
            class ColorPallate(models.Model):
                color1 = ColorField(null=True, blank=True)
                color2 = ColorField(null=True, blank=True)
                color3 = ColorField(null=True, blank=True)
            
                def __str__(self):
                    return f"Pallate {self.id}"
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
