Metadata-Version: 2.1
Name: colorama-terminal
Version: 0.0.1
Summary: 在终端有颜色地打印python变量
Home-page: https://github.com/nanarino/colorama-terminal
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

# colorama-terminal

在终端有颜色地打印python变量。


## 使用

带颜色的字符串 `Colormsg` 类

```python
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` 函数

```python
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()
```
