Metadata-Version: 2.4
Name: text_discoloration
Version: 2.6.0
Summary: 彩色文字、打字机效果、二进制解析、文件操作、哈希、日志 - 零依赖
Home-page: https://github.com/shiroko973/text-discoloration
Author: shiroko
Author-email: 3207774253@qq.com
License: MIT
Project-URL: Bug Reports, https://github.com/shiroko973/text-discoloration/issues
Project-URL: Source, https://github.com/shiroko973/text-discoloration
Project-URL: Changelog, https://github.com/shiroko973/text-discoloration/blob/main/CHANGELOG.md
Keywords: terminal color typewriter gradient rainbow progress-bar spinner table tree live highlight binary hash logger file
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

# text_discoloration

Colorful terminal output with typewriter effect. Zero dependencies.

## Features

###  Color Output
- 8 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

```bash
pip install text_discoloration

# Changelog

## [2.6.0] - 2026-05-07

### Added
-  新增 `hash_text()` 文本哈希计算（支持 md5, sha1, sha256, sha512）
-  新增 `hash_file()` 文件哈希计算
-  新增 `Logger` 类，支持精美日志输出（带时间戳、颜色、文件写入）
-  新增 `read_file()` 读取文件内容
-  新增 `write_file()` 写入文件
-  新增 `create_file()` 创建文件
-  新增 `append_file()` 追加内容到文件
-  新增 `edit_file()` 边看边写编辑器

### Changed
- pass

## [2.5.0] - 2026-05-06

### Added
-  新增 `Live` 类和 `live()` 实时刷新显示功能
-  新增 `highlight()` 关键词高亮显示功能

## [2.4.0] - 2026-05-05

### Added
-  新增 `table()` 表格打印功能
-  新增 `tree()` 树形结构显示功能

## [2.3.5] - 2026-05-05

### Added
-  新增 `binary_text()` 二进制转文字
-  新增 `text_to_binary()` 文字转二进制
-  新增 `binary_exec()` 二进制执行
-  新增 `binary_from_file()` / `binary_to_file()` / `binary_exec_file()` 文件操作

## [2.3.0] - 2026-05-04

### Added
-  进度条、标题框、分隔线、加载动画、列表项
-  渐变文字、彩虹文字、二进制输出

## [2.2.0] - 2026-05-04

### Added
-  全局开关 `enable()` / `disable()`
-  强制彩色 `force_color()`
-  自动 TTY 检测

## [2.1.0] - 2026-05-04

### Added
-  渐变文字 `gradient_text()`
-  彩虹文字 `rainbow_text()`
-  二进制输出 `binary_output()`

## [2.0.0] - 2026-05-03

### Added
-  重构代码，移除重复
-  新增状态提示函数 `info()`, `success()`, `error()`, `warn()`
-  Windows ANSI 支持改用 ctypes
