rich-color-ext


Namerich-color-ext JSON
Version 0.1.4 PyPI version JSON
download
home_pageNone
SummaryExtend Rich with the ability to parse CSS color names and 3-digit hex colors.
upload_time2025-09-05 10:12:50
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT
keywords 3-digit hex color color names css hex rich
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # rich-color-ext

`rich-color-ext` extends the great [rich](http://GitHub.com/textualize/rich) library to be able to parse 3-digit hex colors (ie. <span style="color:#09f">`#09F`</span>) and CSS color names (ie. <span style="rebeccapurple">`rebeccapurple`</span>).

## Installation

### uv (recommended)

```shell
uv add rich-color-ext
```

### pip

```shell
pip install rich-color-ext
```

## Usage

To make use of `rich-color-ext` all you need to do is import it.

```python
import rich_color_ext
from rich.console import Console

console = Console()
console.print(
    Panel(
        "This is the rich_color_ext example for printing CSS named colors like, \
[bold rebeccapurple]rebeccapurple[/bold rebeccapurple], 3-digit hex \
colors like, [bold #f0f]#f0f[/bold #f0f], and rich.color_triplet.ColorTriplet &\
rich.color.Color instances.",
        padding=(1,2),
    )
)
```

![example](example.svg)

Made by Max Ludden

![maxlogo](https://raw.githubusercontent.com/maxludden/maxludden/refs/heads/gh-pages/Images/maxlogo.svg)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "rich-color-ext",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "3-digit hex, color, color names, css, hex, rich",
    "author": null,
    "author_email": "Max Ludden <dev@maxludden.com>",
    "download_url": "https://files.pythonhosted.org/packages/c3/5f/b1d43c38dbeb06166570a02000dd80c82c3c6cb923e8663f547cc6442372/rich_color_ext-0.1.4.tar.gz",
    "platform": null,
    "description": "# rich-color-ext\n\n`rich-color-ext` extends the great [rich](http://GitHub.com/textualize/rich) library to be able to parse 3-digit hex colors (ie. <span style=\"color:#09f\">`#09F`</span>) and CSS color names (ie. <span style=\"rebeccapurple\">`rebeccapurple`</span>).\n\n## Installation\n\n### uv (recommended)\n\n```shell\nuv add rich-color-ext\n```\n\n### pip\n\n```shell\npip install rich-color-ext\n```\n\n## Usage\n\nTo make use of `rich-color-ext` all you need to do is import it.\n\n```python\nimport rich_color_ext\nfrom rich.console import Console\n\nconsole = Console()\nconsole.print(\n    Panel(\n        \"This is the rich_color_ext example for printing CSS named colors like, \\\n[bold rebeccapurple]rebeccapurple[/bold rebeccapurple], 3-digit hex \\\ncolors like, [bold #f0f]#f0f[/bold #f0f], and rich.color_triplet.ColorTriplet &\\\nrich.color.Color instances.\",\n        padding=(1,2),\n    )\n)\n```\n\n![example](example.svg)\n\nMade by Max Ludden\n\n![maxlogo](https://raw.githubusercontent.com/maxludden/maxludden/refs/heads/gh-pages/Images/maxlogo.svg)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Extend Rich with the ability to parse CSS color names and 3-digit hex colors.",
    "version": "0.1.4",
    "project_urls": null,
    "split_keywords": [
        "3-digit hex",
        " color",
        " color names",
        " css",
        " hex",
        " rich"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "23ac37a28e1f90c38a3322f67fe0f265ebde294518a1bc1826e2627fa238129d",
                "md5": "f6752a778a88cca5dfdf3bc1c5588de3",
                "sha256": "11ed3ab21ecc3b83e0e99c0a141300650118e2ab5178eeff805ea30612b23ea9"
            },
            "downloads": -1,
            "filename": "rich_color_ext-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f6752a778a88cca5dfdf3bc1c5588de3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 8700,
            "upload_time": "2025-09-05T10:12:49",
            "upload_time_iso_8601": "2025-09-05T10:12:49.233978Z",
            "url": "https://files.pythonhosted.org/packages/23/ac/37a28e1f90c38a3322f67fe0f265ebde294518a1bc1826e2627fa238129d/rich_color_ext-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c35fb1d43c38dbeb06166570a02000dd80c82c3c6cb923e8663f547cc6442372",
                "md5": "8f8c1cf72d5d316f4b979ad52d86ed11",
                "sha256": "7c5aaf93d9ba06e839e7e4a0c5cdc917b2e1339343070433a415353fb3cf152f"
            },
            "downloads": -1,
            "filename": "rich_color_ext-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "8f8c1cf72d5d316f4b979ad52d86ed11",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 19486,
            "upload_time": "2025-09-05T10:12:50",
            "upload_time_iso_8601": "2025-09-05T10:12:50.368095Z",
            "url": "https://files.pythonhosted.org/packages/c3/5f/b1d43c38dbeb06166570a02000dd80c82c3c6cb923e8663f547cc6442372/rich_color_ext-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-05 10:12:50",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "rich-color-ext"
}
        
Elapsed time: 0.45308s