Skip to main content

Colors In Python

Important Note

THESE ARE THE CODES FOR COLORS IN LINUX TERMINAL JUST LIKE HTML
BG = BACKGROUND
BR = BRIGHT
BG_BR = BRIGHT BACKGROUND
THIS ONLY WORKS IN LINUX TERMINAL AND DIDN'T WORK IN CMD OR POWERSHELL IN WINDOWS

Installation

sudo apt install python3 python3-pip
pip install python-colors

Usage

For Ex: Using Blue Color
import colors
colors = colors.colors()
print(colors.BLUE + "Your Text")

All Available Colors

BG = BACKGROUND
BR = BRIGHT
BG_BR = BRIGHT BACKGROUND
RED
BLUE
CYAN
YELLOW
GREEN
MAGENTA
WHITE
BR_RED
BR_GREEN 
BR_YELLOW 
BR_BLUE 
BR_MAGENTA 
BR_CYAN 
BR_WHITE 
BG_BLACK 
BG_RED 
BG_GREEN 
BG_YELLOW 
BG_BLUE 
BG_MAGENTA 
BG_CYAN 
BG_WHITE
BG_BR_BLACK
BG_BR_GREEN 
BG_BR_YELLOW
BG_BR_BLUE
BG_BR_MAGENTA 
BG_BR_CYAN 
BG_BR_WHITE 
RESET
BOLD 
REVERSE
UNDERLINE

Release files for python-colors-linux 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-colors-linux 0.3
File Size Uploaded
python-colors-linux-0.3.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-colors-linux 0.3
File Interpreter ABI Platform
python_colors_linux-0.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / python-colors-linux-0.3.tar.gz

Download URL python-colors-linux-0.3.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5f8d084c0d147205f5c02fa6733ce49d10412b5ba60b8fd486c3d3332d46cb1f
BLAKE2b-256 checksum
How to use checksums
4554f0d89a015344f2824f80054ba3266b311dca8085566202aff7cef7769850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release files / python_colors_linux-0.3-py3-none-any.whl

Download URL python_colors_linux-0.3-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97a041c06167e723f43b643947d1de04d1d79664dcce0595f303bb6a8fff8767
BLAKE2b-256 checksum
How to use checksums
350cc56b64b01c45f6f4777ebb7e8578a331a3d51869f7d4153b5ab3f55fcbe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page