termcolor-whl


Nametermcolor-whl JSON
Version 1.1.3 PyPI version JSON
download
home_pagehttps://github.com/matthewdeanmartin/termcolor
SummaryANSI Color formatting for output in terminal, fork of termcolor, maintained as of 2023 by Matthew Martin
upload_time2023-05-29 15:51:44
maintainer
docs_urlNone
authorKonstantin Lepa
requires_python>=2.6
licenseMIT
keywords terminals ansi
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # termcolor-whl
Colorize your console output.

This is a fork of `termcolor`, originally created so it would have a wheel package.

 
Note that handling of nested colour tokens has been removed in this package. This is to save on an import of a large package (`re`) and since this is actually not a common usage case.

## Example

```python
import sys
from termcolor import colored, cprint

text = colored('Hello, World!', 'red', attrs=['reverse', 'blink'])
print(text)
cprint('Hello, World!', 'green', 'on_red')

print_red_on_cyan = lambda x: cprint(x, 'red', 'on_cyan')
print_red_on_cyan('Hello, World!')
print_red_on_cyan('Hello, Universe!')

for i in range(10):
    cprint(i, 'magenta', end=' ')


cprint("Attention!", 'red', attrs=['bold'], file=sys.stderr)
```


## Disabling
Any value in the environment variable `ANSI_COLORS_DISABLED` will disable colors.


## Text Properties
Text colors:

> -   grey
> -   red
> -   green
> -   yellow
> -   blue
> -   magenta
> -   cyan
> -   white

Text highlights:
> -   on\_grey
> -   on\_red
> -   on\_green
> -   on\_yellow
> -   on\_blue
> -   on\_magenta
> -   on\_cyan
> -   on\_white

Attributes:
> -   bold
> -   dark
> -   underline
> -   blink
> -   reverse
> -   concealed


## Terminal properties

    Terminal       bold      dark   underline   blink        reverse   concealed
    -------------- --------- ------ ----------- ------------ --------- -----------
    xterm          yes       no     yes         bold         yes       yes
    linux          yes       yes    bold        yes          yes       no
    rxvt           yes       no     yes         bold/black   yes       no
    dtterm         yes       yes    yes         reverse      yes       yes
    teraterm       reverse   no     yes         rev/red      yes       no
    aixterm        normal    no     yes         no           yes       yes
    PuTTY          color     no     yes         no           yes       no
    Windows        no        no     no          no           yes       no
    Cygwin SSH     yes       no     color       color        color     yes
    Mac Terminal   yes       no     yes         yes          yes       yes


## License and Authorship
Original author: Konstantin Lepa <konstantin.lepa@gmail.com>, Copyright (c) 2008-2011 Volvox Development Team
Original license: MIT.

Original source code repository no longer available, this is a fork of the artifacts published to pypi


## Documents
- [Changes](https://github.com/matthewdeanmartin/termcolor/blob/main/docs/CHANGES.MD)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/matthewdeanmartin/termcolor",
    "name": "termcolor-whl",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=2.6",
    "maintainer_email": "",
    "keywords": "terminals,ansi",
    "author": "Konstantin Lepa",
    "author_email": "konstantin.lepa@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/3a/fa/61c0a99d9fa786fc2bcd219dc4c0d15be65ebb3152e126308a4b3e01dd35/termcolor_whl-1.1.3.tar.gz",
    "platform": null,
    "description": "# termcolor-whl\nColorize your console output.\n\nThis is a fork of `termcolor`, originally created so it would have a wheel package.\n\n \nNote that handling of nested colour tokens has been removed in this package. This is to save on an import of a large package (`re`) and since this is actually not a common usage case.\n\n## Example\n\n```python\nimport sys\nfrom termcolor import colored, cprint\n\ntext = colored('Hello, World!', 'red', attrs=['reverse', 'blink'])\nprint(text)\ncprint('Hello, World!', 'green', 'on_red')\n\nprint_red_on_cyan = lambda x: cprint(x, 'red', 'on_cyan')\nprint_red_on_cyan('Hello, World!')\nprint_red_on_cyan('Hello, Universe!')\n\nfor i in range(10):\n    cprint(i, 'magenta', end=' ')\n\n\ncprint(\"Attention!\", 'red', attrs=['bold'], file=sys.stderr)\n```\n\n\n## Disabling\nAny value in the environment variable `ANSI_COLORS_DISABLED` will disable colors.\n\n\n## Text Properties\nText colors:\n\n> -   grey\n> -   red\n> -   green\n> -   yellow\n> -   blue\n> -   magenta\n> -   cyan\n> -   white\n\nText highlights:\n> -   on\\_grey\n> -   on\\_red\n> -   on\\_green\n> -   on\\_yellow\n> -   on\\_blue\n> -   on\\_magenta\n> -   on\\_cyan\n> -   on\\_white\n\nAttributes:\n> -   bold\n> -   dark\n> -   underline\n> -   blink\n> -   reverse\n> -   concealed\n\n\n## Terminal properties\n\n    Terminal       bold      dark   underline   blink        reverse   concealed\n    -------------- --------- ------ ----------- ------------ --------- -----------\n    xterm          yes       no     yes         bold         yes       yes\n    linux          yes       yes    bold        yes          yes       no\n    rxvt           yes       no     yes         bold/black   yes       no\n    dtterm         yes       yes    yes         reverse      yes       yes\n    teraterm       reverse   no     yes         rev/red      yes       no\n    aixterm        normal    no     yes         no           yes       yes\n    PuTTY          color     no     yes         no           yes       no\n    Windows        no        no     no          no           yes       no\n    Cygwin SSH     yes       no     color       color        color     yes\n    Mac Terminal   yes       no     yes         yes          yes       yes\n\n\n## License and Authorship\nOriginal author: Konstantin Lepa <konstantin.lepa@gmail.com>, Copyright (c) 2008-2011 Volvox Development Team\nOriginal license: MIT.\n\nOriginal source code repository no longer available, this is a fork of the artifacts published to pypi\n\n\n## Documents\n- [Changes](https://github.com/matthewdeanmartin/termcolor/blob/main/docs/CHANGES.MD)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "ANSI Color formatting for output in terminal, fork of termcolor, maintained as of 2023 by Matthew Martin",
    "version": "1.1.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/matthewdeanmartin/termcolor/issues",
        "Change Log": "https://github.com/matthewdeanmartin/termcolor/blob/main/docs/CHANGES.MD",
        "Documentation": "https://github.com/matthewdeanmartin/termcolor",
        "Homepage": "https://github.com/matthewdeanmartin/termcolor",
        "Repository": "https://github.com/matthewdeanmartin/termcolor"
    },
    "split_keywords": [
        "terminals",
        "ansi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0f31af2861086c83906e3f101a1fb90288f9c0e7a7080c83280cfed0ab02ef7",
                "md5": "394d70aef76858d0f525cd401f37322d",
                "sha256": "5d07e778eef11ee3cc6fe2aa02218d764c7923377a11a2fd96624e2e0d78ed55"
            },
            "downloads": -1,
            "filename": "termcolor_whl-1.1.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "394d70aef76858d0f525cd401f37322d",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.6",
            "size": 4988,
            "upload_time": "2023-05-29T15:51:42",
            "upload_time_iso_8601": "2023-05-29T15:51:42.676596Z",
            "url": "https://files.pythonhosted.org/packages/f0/f3/1af2861086c83906e3f101a1fb90288f9c0e7a7080c83280cfed0ab02ef7/termcolor_whl-1.1.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3afa61c0a99d9fa786fc2bcd219dc4c0d15be65ebb3152e126308a4b3e01dd35",
                "md5": "fc8610a47bb15436745be328fd01b192",
                "sha256": "23174359d04549164988efb34b4ac4f31f9d617641f8c4de760de7053174d013"
            },
            "downloads": -1,
            "filename": "termcolor_whl-1.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "fc8610a47bb15436745be328fd01b192",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.6",
            "size": 4113,
            "upload_time": "2023-05-29T15:51:44",
            "upload_time_iso_8601": "2023-05-29T15:51:44.198266Z",
            "url": "https://files.pythonhosted.org/packages/3a/fa/61c0a99d9fa786fc2bcd219dc4c0d15be65ebb3152e126308a4b3e01dd35/termcolor_whl-1.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-29 15:51:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "matthewdeanmartin",
    "github_project": "termcolor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "termcolor-whl"
}
        
Elapsed time: 0.16328s