A package for color printing in the console
Project description
简介
- 在控制台中用于彩色打印的包
- 采用的是亮色
- 支持多值打印
- 支持使用十六进制颜色值(如
"FF00FF"或"#00FF00")打印对应颜色的文字
安装
pip install --index-url https://pypi.org/simple colorPrintConsole -U
使用
from colorPrintConsole import ColorPrint
cp = ColorPrint()
cp.red("This is red.")
cp.green("This is green.")
cp.yellow("This is yellow.")
cp.blue("This is blue.")
cp.magenta("This is magenta.")
cp.cyan("This is cyan.")
cp.red('123', '456', '789') # 多值打印
cp.color_hex("FFC0CB", "This is pink.") # 自定义十六进制颜色值
cp.color_hex("#800080", "This is purple.") # 自定义十六进制颜色值
展示
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colorprintconsole-1.0.7.tar.gz.
File metadata
- Download URL: colorprintconsole-1.0.7.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3245907caccec47f70a898ca908a15a71899f6f873f9e4381dc4c53f2a43060e
|
|
| MD5 |
145b163678baa30caa27638989c31811
|
|
| BLAKE2b-256 |
2d6ea6d1f38a2efdd4ca3351a12499b26b9eb442180cea2c2e1364cefda2273c
|
File details
Details for the file colorprintconsole-1.0.7-py3-none-any.whl.
File metadata
- Download URL: colorprintconsole-1.0.7-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13c2de1422302c4ec60a6246b3dadb207f626dab24695e8dab9a491e182d4cc0
|
|
| MD5 |
0ef7fb7b164cbe719a1e07855af957ac
|
|
| BLAKE2b-256 |
d6037d2c6d61ea01f0b434655ccd2f7cf6644bdc8533c06f5ab93f049e699a64
|