Metadata-Version: 2.4 Name: colored Version: 2.3.2 Summary: Simple python library for color and formatting to terminal Keywords: xterm,color,colour,vt100,ansi,terminal,text,rgb,linux,windows Author-email: Dimitris Zlatanidis Requires-Python: >=3.9 Description-Content-Type: text/markdown Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: POSIX :: Other Classifier: Operating System :: POSIX :: Linux Classifier: Operating System :: Microsoft :: Windows Classifier: Operating System :: Microsoft :: Windows :: Windows 10 Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Typing :: Typed Classifier: Topic :: Terminals License-File: LICENSE.txt Project-URL: homepage, https://dslackw.gitlab.io/colored/ [![Latest Release](https://gitlab.com/dslackw/colored/-/badges/release.svg)](https://gitlab.com/dslackw/colored/-/releases) [![pipeline status](https://img.shields.io/badge/pipeline-master-blue)](https://gitlab.com/dslackw/colored/-/commits/master) [![coverage report](https://gitlab.com/dslackw/colored/badges/master/coverage.svg)](https://gitlab.com/dslackw/colored/-/commits/master) [![Python](https://img.shields.io/badge/python-3.9+-blue)](https://www.python.org/) [![Code style: flake8](https://img.shields.io/badge/code%20style-flake8-orange)](https://flake8.pycqa.org/) [![Type checked: mypy](https://img.shields.io/badge/type%20checked-mypy-blue)](https://mypy-lang.org/) [![Linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen)](https://pylint.org/) [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE) ## About Colored, it's a simple Python library for color and formatting in terminal. Collection of color codes and names for 256 color terminal setups. Colored now supports RGB color mode. As "true color" graphic cards with 16 to 24 bits of color became common, applications began to support 24-bit colors. Terminal emulators supporting setting 24-bit foreground and background colors with escape sequences include Xterm, KDE's Konsole, and iTerm, as well as all libvte based terminals, including GNOME Terminal. The colors work with most terminals and terminals emulators. ANSI/VT100 escape sequences can be used in every programming languages. Colored is powerful and easy to use: ```python title="Python 3.9.17" >>> from colored import Fore, Back, Style >>> >>> Fore.red '\x1b[38;5;1m' >>> >>> Back.red '\x1b[48;5;1m' >>> >>> Style.reset '\x1b[0m' >>> >>> Fore.rgb('100%', '50%', '30%') '\x1b[38;2;255;130;79m' >>> >>> print(f'{Fore.white}{Back.green}Colored is Awesome!!!{Style.reset}') ``` !!! success

>>> Colored is Awesome!!!

## Installing Open up a terminal and install colored with pip command: ```bash $ pip install colored ``` Alternatively, you can grab the latest source code from GitLab: ```bash $ git clone https://gitlab.com/dslackw/colored.git $ cd colored $ pip install . ``` ## Usage The [User Guide](https://dslackw.gitlab.io/colored/user_guide/user_guide/#user-guide) is the place to go to learn how to use the library. The [API Reference](https://dslackw.gitlab.io/colored/api/attributes/) documentation provides API-level documentation. ## License colored is made available under the MIT License. For more details, see [here](https://dslackw.gitlab.io/colored/license/#mit-license). ## Contributing !!! info We happily welcome [contributions](https://dslackw.gitlab.io/colored/contributors/)! ## Donate Did you know that we developers love coffee? [paypal](https://www.paypal.me/dslackw)