Skip to main content

cprints

安装说明

使用pip或其他 PyPi 软件包进行安装

pip install cprints

使用 cprints 输出彩色文本

您可以试试:

from cprints import cp


# 红色文字 文字样式: 下划线
cp.print_red("Hello World", style=cp.underline)

# 绿色文字 红色背景
cp.print_green("Hello World", bg="red")

# 黄色文字 黑色背景 文字样式: 下换线 and 高亮
cp.cprint(
    "Hello World",
    fg="yellow",
    bg=cp.black,
    style=["underline", "高亮"]
)

# color着色文字
# 黑色文字 白色背景 文字样式: 反显
text = cp.color("Hello World", fg=cp.black, bg=cp.white, style=cp.reverse)
print(text)

Metadata

Release files for cprints 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cprints 1.0.7
File Size Uploaded Provenance Actions
cprints-1.0.7.tar.gz 5.6 kB Without provenance Details for cprints-1.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cprints 1.0.7
File Interpreter ABI Platform Actions
cprints-1.0.7-py3-none-any.whl Python 3 none any Details for cprints-1.0.7-py3-none-any.whl

Total release size: 11.1 kB

Release files / cprints-1.0.7.tar.gz

Download URL cprints-1.0.7.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
041cf4516cae9699ef687d20b372d3540b3e94c1ab38711338145abb204be570
BLAKE2b-256 checksum
How to use checksums
d801317894bfba1b5482e0df55f42d7deb34b6273620193f8ab1feffe4e4ce93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Release files / cprints-1.0.7-py3-none-any.whl

Download URL cprints-1.0.7-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bab3b4c5369bc6c22261c6ab496fc09b9748fd1d251c7e6aa6755e5baf52b365
BLAKE2b-256 checksum
How to use checksums
03a1b05f9cb81ee2005461904f8e0c0d0fbba24aa01f46d6cd688384b447df38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Security for cprints 1.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page