支持各种趣味打印的 Python 工具库
Project description
InterestPrint 趣味打印库
作者: 袁窦涵 邮箱: w111251@outlook.com
功能介绍
一款支持跨平台彩色打印、趣味喵喵环绕打印的 Python 工具库,轻量无第三方依赖,开箱即用。
函数说明
ColorfulPrint
带颜色的终端打印函数,支持 Windows/Linux/macOS 三大主流系统,可选字体颜色、加粗效果。
- 参数:
*text(打印内容,支持多参数传入)、color(字体颜色,默认值:white)、bold(是否加粗,默认值:False)、end(结尾字符,默认值:)、sep(多参数分隔符,默认值:空格) - 支持颜色:black/red/green/yellow/blue/purple/cyan/white
FrontBackPrint
可设置前后缀的打印
- 参数:
*text要打印的内容(可变参数)、front: 前缀(默认^)、back: 后缀(\EQUALTOFRONT的意思是前后缀相同)、end结尾字符,默认换行、sep多个参数的分隔符,默认空格
MeowPrint
带猫咪表情(🐱)环绕的趣味打印函数,可自定义前后喵表情数量、是否显示前后表情。
- 参数:
*text(打印内容,支持多参数传入)、meow_count(喵表情数量,默认值:1)、end(结尾字符,默认值:)、sep(多参数分隔符,默认值:空格)、front(是否前置喵表情,默认值:True)、back(是否后置喵表情,默认值:True)
BgColorfulPrint
带背景颜色的终端打印函数,支持 Windows/Linux/macOS 三大主流系统,默认白色字体,可选背景颜色、加粗效果。
- 参数:
*text(打印内容,支持多参数传入)、bg_color(背景颜色,默认值:black)、end(结尾字符,默认值:)、sep(多参数分隔符,默认值:空格)、bold(是否加粗,默认值:False) - 支持背景颜色:black/red/green/yellow/blue/purple/cyan/white
FgAndBgColorfulPrint
同时设置前景色(字体色)和背景色的终端打印函数,支持 Windows/Linux/macOS 三大主流系统,灵活搭配字体色与背景色。
- 参数:
*text(打印内容,支持多参数传入)、fg_color(前景色/字体色,默认值:white)、bg_color(背景颜色,默认值:black)、end(结尾字符,默认值:)、sep(多参数分隔符,默认值:空格) - 支持颜色:black/red/green/yellow/blue/purple/cyan/white
FgColorfulPrint
ColorfulPrint 的别名(Alias),功能与 ColorfulPrint 完全一致,语义更直观(Fg 对应 Foreground,前景色/字体色)。
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
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 interestprint-0.4.3.tar.gz.
File metadata
- Download URL: interestprint-0.4.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73ca90dfce291ce392945dd8115d393bf12dfd4c9e6e57f7f40ddf5920108426
|
|
| MD5 |
6fca8f32ff96b0d949c8b0c2cc9c367f
|
|
| BLAKE2b-256 |
04e8810103fa64caff6f6ece4dfa8c8d84c3d86e5189f4fdf0aef7a95b5e808a
|
File details
Details for the file interestprint-0.4.3-py3-none-any.whl.
File metadata
- Download URL: interestprint-0.4.3-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a57373e9e5071bc65c77d9e410ac7012e8726da6aedc82697c34abccab7779e9
|
|
| MD5 |
2ac38f9303a7df491983f103b8cdbd5a
|
|
| BLAKE2b-256 |
eec68967be155a57c7e50c841109f60af50d4f5cb8bd00bf6dfb8d77466999be
|