coloreflection


Namecoloreflection JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/Addefan/coloreflection
SummaryModule for using colors for the terminal, based on reflection
upload_time2023-06-28 18:49:45
maintainer
docs_urlNone
authorVitaly Zorin
requires_python>=3.0,<4.0
licenseGPL-3.0-or-later
keywords colorist terminal
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![Coloreflection icon](https://github.com/Addefan/coloreflection/blob/main/images/logo.png?raw=true)

# Coloreflection

A tool with which you can use colors in your Python code to decorate terminal output.

## Install

```shell
pip install coloreflection
```

or,

```shell
poetry add coloreflection
```

## Capabilities

### Dark PyCharm theme

![Styles with dark PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/styles_dark.png?raw=true)
![Foreground colors with dark PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/foreground_dark.png?raw=true)
![Background colors with dark PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/background_dark.png?raw=true)

### Light PyCharm theme

![Styles with light PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/styles_light.png?raw=true)
![Foreground colors with light PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/foreground_light.png?raw=true)
![Background colors with light PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/background_light.png?raw=true)

## Usage

```python
from coloreflection import Color

C = Color()

print(C.border(" Using style for text "))
print(C.FG.red("Changing text color"))
print(C.BG.green("Changing text background"))

print(C.border(C.bold(C.FG.pink("You can"))), "combine", 
      C.BG.blue(C.FG.yellow(f"different colors{C.reverse(' and styles.')}")))
```
![Usage examples](https://github.com/Addefan/coloreflection/blob/main/images/usage.png?raw=true)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Addefan/coloreflection",
    "name": "coloreflection",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.0,<4.0",
    "maintainer_email": "",
    "keywords": "colorist,terminal",
    "author": "Vitaly Zorin",
    "author_email": "addefan@mail.ru",
    "download_url": "https://files.pythonhosted.org/packages/cf/01/686633b61f67de75913d965e49e91905a5cddff95fbc6b96efa3c28b35c5/coloreflection-0.1.0.tar.gz",
    "platform": null,
    "description": "![Coloreflection icon](https://github.com/Addefan/coloreflection/blob/main/images/logo.png?raw=true)\n\n# Coloreflection\n\nA tool with which you can use colors in your Python code to decorate terminal output.\n\n## Install\n\n```shell\npip install coloreflection\n```\n\nor,\n\n```shell\npoetry add coloreflection\n```\n\n## Capabilities\n\n### Dark PyCharm theme\n\n![Styles with dark PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/styles_dark.png?raw=true)\n![Foreground colors with dark PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/foreground_dark.png?raw=true)\n![Background colors with dark PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/background_dark.png?raw=true)\n\n### Light PyCharm theme\n\n![Styles with light PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/styles_light.png?raw=true)\n![Foreground colors with light PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/foreground_light.png?raw=true)\n![Background colors with light PyCharm theme](https://github.com/Addefan/coloreflection/blob/main/images/background_light.png?raw=true)\n\n## Usage\n\n```python\nfrom coloreflection import Color\n\nC = Color()\n\nprint(C.border(\" Using style for text \"))\nprint(C.FG.red(\"Changing text color\"))\nprint(C.BG.green(\"Changing text background\"))\n\nprint(C.border(C.bold(C.FG.pink(\"You can\"))), \"combine\", \n      C.BG.blue(C.FG.yellow(f\"different colors{C.reverse(' and styles.')}\")))\n```\n![Usage examples](https://github.com/Addefan/coloreflection/blob/main/images/usage.png?raw=true)\n",
    "bugtrack_url": null,
    "license": "GPL-3.0-or-later",
    "summary": "Module for using colors for the terminal, based on reflection",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/Addefan/coloreflection",
        "Repository": "https://github.com/Addefan/coloreflection"
    },
    "split_keywords": [
        "colorist",
        "terminal"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9eec96538918d4774ca0e58e7f93b2fd3326c243ed138ee8fa28677e0b4f364b",
                "md5": "254b26c5740dccd8668ee22ae2e2818a",
                "sha256": "6c78a7e0204618069ccd12825bf7c4d9343cfc8e51a4b4e9509b6759d9a2db1a"
            },
            "downloads": -1,
            "filename": "coloreflection-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "254b26c5740dccd8668ee22ae2e2818a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0,<4.0",
            "size": 14726,
            "upload_time": "2023-06-28T18:49:43",
            "upload_time_iso_8601": "2023-06-28T18:49:43.427901Z",
            "url": "https://files.pythonhosted.org/packages/9e/ec/96538918d4774ca0e58e7f93b2fd3326c243ed138ee8fa28677e0b4f364b/coloreflection-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf01686633b61f67de75913d965e49e91905a5cddff95fbc6b96efa3c28b35c5",
                "md5": "430aa404589eaf08ee180cb92707c008",
                "sha256": "eef1ef13c7d45798f3acd6c2e4907c33c21594f94df9a7851f16767c0a673e74"
            },
            "downloads": -1,
            "filename": "coloreflection-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "430aa404589eaf08ee180cb92707c008",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.0,<4.0",
            "size": 14541,
            "upload_time": "2023-06-28T18:49:45",
            "upload_time_iso_8601": "2023-06-28T18:49:45.260761Z",
            "url": "https://files.pythonhosted.org/packages/cf/01/686633b61f67de75913d965e49e91905a5cddff95fbc6b96efa3c28b35c5/coloreflection-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-28 18:49:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Addefan",
    "github_project": "coloreflection",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "coloreflection"
}
        
Elapsed time: 8.06232s