terminal-in-colors


Nameterminal-in-colors JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/kurotom/terminal-in-colors.git
SummaryYour terminal in colors :D
upload_time2023-12-10 14:09:13
maintainer
docs_urlNone
authorkurotom
requires_python>=3.7,<4.0
licenseLGPL-3.0-or-later
keywords colors terminal color console
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # terminal-in-colors

Give color to your terminal, using 256 colors or RGB, use bold, italic, underline, among others, in a simple and uncomplicated way.


<p>
<img src="img.png" alt='img' />
</p>


# Instalation

You can install simply using a command, thank *PyPi*.

```bash
$ pip install termina-in-colors
```

# Usage

```python
from terminal_in_color.ColorTerminal import ColorTerminal

string = "Hi"

c = ColorTerminal()

print(c.paint(string, color="red", blink="slow"))
```

# Methods Available

* `paint(string, color, bold, italic, underline, overline, doubleunderline, blink, background, opaque)` - Formats the string using the available options, returns a string.
	- string: text to apply format.
	- color: color by name like "red", by number, or RGB using list of numbers [0, 0, 0].
	- bold: True or False.
	- italic: True or False .
	- underline: True or False.
	- overline: True or False.
	- doubleunderline: True or False.
	- blink: "slow" or "rapid".
	- background: color by name like "red", by number, or RGB using list of numbers [0, 0, 0].
	- opaque: True or False.

* `find(color, exact)` - Searches by color.
    - color: name of color, integer, and returns list to RGB.
    - exact: True or False, optional.

* `clear()` - return string to clear format colors.

* `print_all()` - Print all 256 colors.`


# Documentation

-> **[https://kurotom.github.io/terminal_in_colors/](https://kurotom.github.io/terminal_in_colors/)**

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kurotom/terminal-in-colors.git",
    "name": "terminal-in-colors",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "colors,terminal,color,console",
    "author": "kurotom",
    "author_email": "55354389+kurotom@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/8f/78/6d81badf8fd0b3901f49900c53812e750e3245305813b80828c4fc972310/terminal_in_colors-0.1.3.tar.gz",
    "platform": null,
    "description": "# terminal-in-colors\n\nGive color to your terminal, using 256 colors or RGB, use bold, italic, underline, among others, in a simple and uncomplicated way.\n\n\n<p>\n<img src=\"img.png\" alt='img' />\n</p>\n\n\n# Instalation\n\nYou can install simply using a command, thank *PyPi*.\n\n```bash\n$ pip install termina-in-colors\n```\n\n# Usage\n\n```python\nfrom terminal_in_color.ColorTerminal import ColorTerminal\n\nstring = \"Hi\"\n\nc = ColorTerminal()\n\nprint(c.paint(string, color=\"red\", blink=\"slow\"))\n```\n\n# Methods Available\n\n* `paint(string, color, bold, italic, underline, overline, doubleunderline, blink, background, opaque)` - Formats the string using the available options, returns a string.\n\t- string: text to apply format.\n\t- color: color by name like \"red\", by number, or RGB using list of numbers [0, 0, 0].\n\t- bold: True or False.\n\t- italic: True or False .\n\t- underline: True or False.\n\t- overline: True or False.\n\t- doubleunderline: True or False.\n\t- blink: \"slow\" or \"rapid\".\n\t- background: color by name like \"red\", by number, or RGB using list of numbers [0, 0, 0].\n\t- opaque: True or False.\n\n* `find(color, exact)` - Searches by color.\n    - color: name of color, integer, and returns list to RGB.\n    - exact: True or False, optional.\n\n* `clear()` - return string to clear format colors.\n\n* `print_all()` - Print all 256 colors.`\n\n\n# Documentation\n\n-> **[https://kurotom.github.io/terminal_in_colors/](https://kurotom.github.io/terminal_in_colors/)**\n",
    "bugtrack_url": null,
    "license": "LGPL-3.0-or-later",
    "summary": "Your terminal in colors :D",
    "version": "0.1.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/kurotom/terminal-in-colors/issues",
        "Documentation": "https://kurotom.github.io/terminal_in_colors/",
        "Homepage": "https://github.com/kurotom/terminal-in-colors.git",
        "Repository": "https://github.com/kurotom/terminal-in-colors.git"
    },
    "split_keywords": [
        "colors",
        "terminal",
        "color",
        "console"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b4ea6606584e9740deba446bdaba4fcfc1a991fb2d43261e3941c0c212e678d5",
                "md5": "90dd92a539728577dc4d52fcec9d2706",
                "sha256": "fb4af988ba0a2d9ce44f3c6b51c4bb4c9b04758d77bb3edaa44d03ad37670316"
            },
            "downloads": -1,
            "filename": "terminal_in_colors-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "90dd92a539728577dc4d52fcec9d2706",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 18844,
            "upload_time": "2023-12-10T14:09:03",
            "upload_time_iso_8601": "2023-12-10T14:09:03.919889Z",
            "url": "https://files.pythonhosted.org/packages/b4/ea/6606584e9740deba446bdaba4fcfc1a991fb2d43261e3941c0c212e678d5/terminal_in_colors-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8f786d81badf8fd0b3901f49900c53812e750e3245305813b80828c4fc972310",
                "md5": "dcdea729b743e437c56bda6c12681806",
                "sha256": "e1cccc4f4772df3467a9b8f486b5e0d023c1e8c4ad72036b9d6df16fca9237e3"
            },
            "downloads": -1,
            "filename": "terminal_in_colors-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "dcdea729b743e437c56bda6c12681806",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 17996,
            "upload_time": "2023-12-10T14:09:13",
            "upload_time_iso_8601": "2023-12-10T14:09:13.546856Z",
            "url": "https://files.pythonhosted.org/packages/8f/78/6d81badf8fd0b3901f49900c53812e750e3245305813b80828c4fc972310/terminal_in_colors-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-10 14:09:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kurotom",
    "github_project": "terminal-in-colors",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "terminal-in-colors"
}
        
Elapsed time: 0.17308s