colorama-terminal
在终端有颜色地打印python变量。
使用
带颜色的字符串 Colormsg 类
import colorama_terminal as ct
# 打印紫色的你好
hello = ct.Colormsg("helloworld").set_color('MAGENTA')
print(hello)
# 打印复杂的数据
raw_colormsg = ct.Colormsg.from_built_in_type([{1: True}, {"2": False}])
print(raw_colormsg)
# 打印复杂的数据
ct.print([{1: True}, {"2": False}])
其他功能 proportion_bar shell 函数
from colorama_terminal import * #内置的print被覆盖了
# 进度条
import time
for i in range(0, 101):
time.sleep(0.02)
proportion_bar(i / 100, 'MAGENTA')
print('\nOK')
# 进入交互式
shell()
Metadata
Release files for colorama-terminal 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colorama_terminal-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for colorama_terminal-0.0.1-py3-none-any.whl |
Release files / colorama_terminal-0.0.1-py3-none-any.whl
| Download URL | colorama_terminal-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca715e343a2bc69cbfaf7dec45761df6656bf124450aa301953f5569f693de8b
|
|
BLAKE2b-256 checksum How to use checksums |
8fdac058151790c36bfcf89dd31ae78b577d760425b5ffa1086f4d3a663aec68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for colorama-terminal 0.0.1
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.