Colored Prints for python
Project description
Colored Terminal
* Python support for colored text in terminal
from cterminal import *
cprint(style.RED + "test")
"""@params for cprint()
- string: Required (can be multiple strings)
- separator: Optional, default is " "
- end: Optional, default is "\n"
- file: Optional, default is sys.stdout
- flush: Optional, default is False
"""
your_fg_color = getfgfromrgb(r, g, b)
your_bg_color = getbgfromrgb(r, g, b)
Supported
Platform | Colors |
---|---|
Windows | Yes |
Linux | Yes |
Colors |
---|
BLACK |
RED |
GREEN |
YELLOW |
BLUE |
MAGENTA |
CYAN |
WHITE |
UNDERLINE |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cterminal-1.4.0.tar.gz
(2.6 kB
view details)
File details
Details for the file cterminal-1.4.0.tar.gz
.
File metadata
- Download URL: cterminal-1.4.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.25.1 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1b63d4105ab5106d18bf20950398d16dcda2633ebef44f84d77a296d5b363c7 |
|
MD5 | 8eb42139c56270644ca149115a352bc4 |
|
BLAKE2b-256 | 3b44bc2fbc10451de7a7e7168246c0951f7c7aba343a66fc56f315c669a17bd3 |