Skip to main content

终端彩色工具 + 安全密钥生成

Project description

text_discoloration

Colorful terminal output with typewriter effect. Zero dependencies.

Features

Color Output

  • 8 classic colors: Red, Green, Yellow, Blue, Purple, Cyan, White, Black
  • Direct color printing: color_print_red("Hello")
  • Color typewriter effect: typewriter_blue("Hello", delay=0.05)

Typewriter Effects

  • Standard typewriter: typewriter("text", delay=0.05)
  • Random color typewriter: random_typewriter("rainbow text")
  • Custom color typewriter: color_typewriter("text", "green")

Status Prompts

  • info("Loading...") → Blue [INFO]
  • success("Done!") → Green [SUCCESS]
  • error("Failed") → Red [ERROR]
  • warn("Check this") → Yellow [WARNING]

Utilities

  • slow_print("slow text", delay=0.05) — Print character by character
  • color_print_red("text") — Print without typewriter effect

Installation

pip install text_discoloration

Update Notice

  • Log prompt is disabled by default.
  • If you need to enable log prompts, use the example below:
from text_discoloration import set_verbose
set_verbose()

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

text_discoloration-3.0.2.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

text_discoloration-3.0.2-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file text_discoloration-3.0.2.tar.gz.

File metadata

  • Download URL: text_discoloration-3.0.2.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for text_discoloration-3.0.2.tar.gz
Algorithm Hash digest
SHA256 6637a1e6de94877643cc18ef09d91352f4a75e251ca71ca98b1fb54609050662
MD5 68d40753b9d97e31916a2c6e61963395
BLAKE2b-256 c3e8798eb4184085e4c42218d2e2c1a207a628f174ec9e4885860828a711b578

See more details on using hashes here.

File details

Details for the file text_discoloration-3.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for text_discoloration-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5b6cab4b2afba85c6ef2f9260baa280f5b86d073697617c93a4015e74617a167
MD5 2e69d78d8eedfea60ad8568729cc4478
BLAKE2b-256 a9d574423f102007b8100487ea4e25e01e488ff6ceca8e49bf53ca00cb361d29

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