simplecolor


Namesimplecolor JSON
Version 1.0 PyPI version JSON
download
home_page
SummarySimpleColor - Add colors to your terminal output easily
upload_time2023-10-02 16:53:23
maintainer
docs_urlNone
authorVisuallySynced
requires_python
license
keywords python color terminal output text color terminal formatting
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# SimpleColor



SimpleColor is a Python module for adding color to your terminal output easily.



## Installation



You can install SimpleColor using pip. Simply run the following command:



```bash

pip install simplecolor

```



## Usage



```python

import simplecolor



# Colorize text with predefined colors

colored_text = simplecolor.colorize("Hello, World!", "red", "bg_black")



# Colorize text with custom hex colors

hex_colored_text = simplecolor.hex_colorize("Custom Color", "#FFA500", "bg_white")



# Clear the terminal screen

simplecolor.clear_terminal()

```



Or



```python

import SimpleColor



# Colorize text with predefined colors but also automatically resets

colored_text = simplecolor.colorize("Hello, World!", "red", "bg_black", reset=True)



# Colorize text with custom hex colors but also automatically resets

hex_colored_text = simplecolor.hex_colorize("Custom Color", "#FFA500", "bg_white", reset=True)



# Clear the terminal screen

simplecolor.clear_terminal()

```



## Predefined Colors



SimpleColor provides a variety of predefined colors, including:



- reset

- black

- red

- green

- yellow

- blue

- purple

- cyan

- white

- gray

- light_red

- light_green

- light_yellow

- light_blue

- light_purple

- light_cyan

- pink

- orange

- teal

- dark_gray

- dark_red

- dark_green

- dark_yellow

- dark_blue

- dark_purple

- dark_cyan

- light_gray

- bold_white

- bg_black

- bg_red

- bg_green

- bg_yellow

- bg_blue

- bg_purple

- bg_cyan

- bg_white

- bg_light_gray

- bg_dark_gray

- bg_light_red

- bg_light_green

- bg_light_yellow

- bg_light_blue

- bg_light_purple

- bg_light_cyan

- bg_bold_white


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "simplecolor",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,color,terminal output,text color,terminal formatting",
    "author": "VisuallySynced",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/c0/9f/209221c7ed3137b70a18e05cd9848c8c9b6d5f45ba253a853a802924ba83/simplecolor-1.0.tar.gz",
    "platform": null,
    "description": "\r\n# SimpleColor\r\n\r\n\r\n\r\nSimpleColor is a Python module for adding color to your terminal output easily.\r\n\r\n\r\n\r\n## Installation\r\n\r\n\r\n\r\nYou can install SimpleColor using pip. Simply run the following command:\r\n\r\n\r\n\r\n```bash\r\n\r\npip install simplecolor\r\n\r\n```\r\n\r\n\r\n\r\n## Usage\r\n\r\n\r\n\r\n```python\r\n\r\nimport simplecolor\r\n\r\n\r\n\r\n# Colorize text with predefined colors\r\n\r\ncolored_text = simplecolor.colorize(\"Hello, World!\", \"red\", \"bg_black\")\r\n\r\n\r\n\r\n# Colorize text with custom hex colors\r\n\r\nhex_colored_text = simplecolor.hex_colorize(\"Custom Color\", \"#FFA500\", \"bg_white\")\r\n\r\n\r\n\r\n# Clear the terminal screen\r\n\r\nsimplecolor.clear_terminal()\r\n\r\n```\r\n\r\n\r\n\r\nOr\r\n\r\n\r\n\r\n```python\r\n\r\nimport SimpleColor\r\n\r\n\r\n\r\n# Colorize text with predefined colors but also automatically resets\r\n\r\ncolored_text = simplecolor.colorize(\"Hello, World!\", \"red\", \"bg_black\", reset=True)\r\n\r\n\r\n\r\n# Colorize text with custom hex colors but also automatically resets\r\n\r\nhex_colored_text = simplecolor.hex_colorize(\"Custom Color\", \"#FFA500\", \"bg_white\", reset=True)\r\n\r\n\r\n\r\n# Clear the terminal screen\r\n\r\nsimplecolor.clear_terminal()\r\n\r\n```\r\n\r\n\r\n\r\n## Predefined Colors\r\n\r\n\r\n\r\nSimpleColor provides a variety of predefined colors, including:\r\n\r\n\r\n\r\n- reset\r\n\r\n- black\r\n\r\n- red\r\n\r\n- green\r\n\r\n- yellow\r\n\r\n- blue\r\n\r\n- purple\r\n\r\n- cyan\r\n\r\n- white\r\n\r\n- gray\r\n\r\n- light_red\r\n\r\n- light_green\r\n\r\n- light_yellow\r\n\r\n- light_blue\r\n\r\n- light_purple\r\n\r\n- light_cyan\r\n\r\n- pink\r\n\r\n- orange\r\n\r\n- teal\r\n\r\n- dark_gray\r\n\r\n- dark_red\r\n\r\n- dark_green\r\n\r\n- dark_yellow\r\n\r\n- dark_blue\r\n\r\n- dark_purple\r\n\r\n- dark_cyan\r\n\r\n- light_gray\r\n\r\n- bold_white\r\n\r\n- bg_black\r\n\r\n- bg_red\r\n\r\n- bg_green\r\n\r\n- bg_yellow\r\n\r\n- bg_blue\r\n\r\n- bg_purple\r\n\r\n- bg_cyan\r\n\r\n- bg_white\r\n\r\n- bg_light_gray\r\n\r\n- bg_dark_gray\r\n\r\n- bg_light_red\r\n\r\n- bg_light_green\r\n\r\n- bg_light_yellow\r\n\r\n- bg_light_blue\r\n\r\n- bg_light_purple\r\n\r\n- bg_light_cyan\r\n\r\n- bg_bold_white\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "SimpleColor - Add colors to your terminal output easily",
    "version": "1.0",
    "project_urls": null,
    "split_keywords": [
        "python",
        "color",
        "terminal output",
        "text color",
        "terminal formatting"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cbe63ab377d712f61b7957f325514e64f082ef888c6314710f5b5052e76a4af7",
                "md5": "72b641b6141c64218c6822c9d8d25d19",
                "sha256": "1a754d6435d69de081e8fb7a4221591228b45c1e883012b6c2a0958d01cd7760"
            },
            "downloads": -1,
            "filename": "simplecolor-1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "72b641b6141c64218c6822c9d8d25d19",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 1696,
            "upload_time": "2023-10-02T16:53:21",
            "upload_time_iso_8601": "2023-10-02T16:53:21.892547Z",
            "url": "https://files.pythonhosted.org/packages/cb/e6/3ab377d712f61b7957f325514e64f082ef888c6314710f5b5052e76a4af7/simplecolor-1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c09f209221c7ed3137b70a18e05cd9848c8c9b6d5f45ba253a853a802924ba83",
                "md5": "634e481bd9521e32ad2bd3233945915f",
                "sha256": "0f16a7287b7326ddd4377b965cd24fdd49934a67bae747285a348f64b17c7166"
            },
            "downloads": -1,
            "filename": "simplecolor-1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "634e481bd9521e32ad2bd3233945915f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2055,
            "upload_time": "2023-10-02T16:53:23",
            "upload_time_iso_8601": "2023-10-02T16:53:23.148590Z",
            "url": "https://files.pythonhosted.org/packages/c0/9f/209221c7ed3137b70a18e05cd9848c8c9b6d5f45ba253a853a802924ba83/simplecolor-1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-02 16:53:23",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "simplecolor"
}
        
Elapsed time: 0.16469s