Metadata-Version: 2.1
Name: colort
Version: 0.7
Summary: Display colored text in the terminal         
Home-page: https://github.com/thep0y/colort
Author: thepoy
Author-email: thepoy@163.com
License: MIT
Keywords: color terminal
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENSE

# colort
终端中的彩色显示

## 使用

### 安装

```shell
pip install colort
```

### 使用

```python
from colort import display_style as ds

src = "这是要显示的文本"
dist = ds.format_with_one_style(src, ds.foreground_color.red)
print("更改文字颜色：", dist)
dist = ds.format_with_one_style(src, ds.backgorud_color.green)
print("更改文字背景色：", dist)
dist = ds.format_with_multiple_styles(src, ds.foreground_color.red, ds.mode.underline, ds.mode.bold)
print("多种样式：", dist)
```

效果：

![sample](https://cdn.jsdelivr.net/gh/thep0y/image-bed/md/1622076879923.png)


