Skip to main content

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.")  # 自定义十六进制颜色值

展示

效果展示1

效果展示2

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

colorprintconsole-1.0.7.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colorprintconsole-1.0.7-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

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

Hashes for colorprintconsole-1.0.7.tar.gz
Algorithm Hash digest
SHA256 3245907caccec47f70a898ca908a15a71899f6f873f9e4381dc4c53f2a43060e
MD5 145b163678baa30caa27638989c31811
BLAKE2b-256 2d6ea6d1f38a2efdd4ca3351a12499b26b9eb442180cea2c2e1364cefda2273c

See more details on using hashes here.

File details

Details for the file colorprintconsole-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for colorprintconsole-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 13c2de1422302c4ec60a6246b3dadb207f626dab24695e8dab9a491e182d4cc0
MD5 0ef7fb7b164cbe719a1e07855af957ac
BLAKE2b-256 d6037d2c6d61ea01f0b434655ccd2f7cf6644bdc8533c06f5ab93f049e699a64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page