pyletteyes


Namepyletteyes JSON
Version 0.1.5 PyPI version JSON
download
home_pageNone
SummaryA comprehensive colour manipulation and evaluation library
upload_time2025-02-16 22:40:36
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords colour palette rgb hsl
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Pyletteyes

A comprehensive Python library for colour manipulation and evaluation.

Easily create Colour objects to manipulate or transform as required. Palette objects 
offer a convenient methods for storing, accessing and scoring collections of Colour objects.

## Features

- Colour space conversions (Hex, RGB, HSL)
- Colour manipulation (lighten, darken, complementary colours)
- Palette generation and analysis
- Image colour extraction

## Installation

```bash
pip install pyletteyes
```

## Basic Usage Example

```python
from pyletteyes import Colour
from pyletteyes import Palette

# Create a colour and print RGB string
red = Colour.from_hex("#FF0000")
print(red) # outputs: rgb(255, 0, 0)

# Lighten it and output as HSL values
light_red = red.lighten(0.1)
print(light_red.hsl) # outputs: (0.0, 0.5980392156862745, 1.0)

# Darken it and print as an RGB string
dark_red = red.darken(0.2)
print(dark_red) # outputs: rgb(153, 0, 0)

# Get complementary colour and output as hex
complement = red.get_complementary()
print(complement.to_hex()) # outputs: #00feff

# Get a pastel from the complementary colour
pastel = complement.get_pastel()
print(pastel) # outputs: rgb(101, 203, 204)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyletteyes",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "colour, palette, rgb, hsl",
    "author": null,
    "author_email": "Blake Downward <blakedownward@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/4d/a7/8dad96c65c8621dff455fc2cbb5e47a2b79a51318d95d99d8bf54266db8b/pyletteyes-0.1.5.tar.gz",
    "platform": null,
    "description": "# Pyletteyes\r\n\r\nA comprehensive Python library for colour manipulation and evaluation.\r\n\r\nEasily create Colour objects to manipulate or transform as required. Palette objects \r\noffer a convenient methods for storing, accessing and scoring collections of Colour objects.\r\n\r\n## Features\r\n\r\n- Colour space conversions (Hex, RGB, HSL)\r\n- Colour manipulation (lighten, darken, complementary colours)\r\n- Palette generation and analysis\r\n- Image colour extraction\r\n\r\n## Installation\r\n\r\n```bash\r\npip install pyletteyes\r\n```\r\n\r\n## Basic Usage Example\r\n\r\n```python\r\nfrom pyletteyes import Colour\r\nfrom pyletteyes import Palette\r\n\r\n# Create a colour and print RGB string\r\nred = Colour.from_hex(\"#FF0000\")\r\nprint(red) # outputs: rgb(255, 0, 0)\r\n\r\n# Lighten it and output as HSL values\r\nlight_red = red.lighten(0.1)\r\nprint(light_red.hsl) # outputs: (0.0, 0.5980392156862745, 1.0)\r\n\r\n# Darken it and print as an RGB string\r\ndark_red = red.darken(0.2)\r\nprint(dark_red) # outputs: rgb(153, 0, 0)\r\n\r\n# Get complementary colour and output as hex\r\ncomplement = red.get_complementary()\r\nprint(complement.to_hex()) # outputs: #00feff\r\n\r\n# Get a pastel from the complementary colour\r\npastel = complement.get_pastel()\r\nprint(pastel) # outputs: rgb(101, 203, 204)\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A comprehensive colour manipulation and evaluation library",
    "version": "0.1.5",
    "project_urls": null,
    "split_keywords": [
        "colour",
        " palette",
        " rgb",
        " hsl"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9e6e960d38737c98e56bbe9871d988006b707342bdb40b35f4bc905961bd2946",
                "md5": "714df89941867d36cafa0eeb19d3d80c",
                "sha256": "cf8f398c8ec690ca371659bedcda638ad43ffa04335512249c53a3e34c8ba779"
            },
            "downloads": -1,
            "filename": "pyletteyes-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "714df89941867d36cafa0eeb19d3d80c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 7681,
            "upload_time": "2025-02-16T22:40:34",
            "upload_time_iso_8601": "2025-02-16T22:40:34.159324Z",
            "url": "https://files.pythonhosted.org/packages/9e/6e/960d38737c98e56bbe9871d988006b707342bdb40b35f4bc905961bd2946/pyletteyes-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4da78dad96c65c8621dff455fc2cbb5e47a2b79a51318d95d99d8bf54266db8b",
                "md5": "a1933faa7fa328266864bba26fa8b743",
                "sha256": "1b167edc4fe77a64e40b6cf1d3f20ccb5763e256d6710d5926b775cbf642aa48"
            },
            "downloads": -1,
            "filename": "pyletteyes-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "a1933faa7fa328266864bba26fa8b743",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 11783,
            "upload_time": "2025-02-16T22:40:36",
            "upload_time_iso_8601": "2025-02-16T22:40:36.214249Z",
            "url": "https://files.pythonhosted.org/packages/4d/a7/8dad96c65c8621dff455fc2cbb5e47a2b79a51318d95d99d8bf54266db8b/pyletteyes-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-16 22:40:36",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pyletteyes"
}
        
Elapsed time: 0.84866s