https://github.com/pykit3/k3color
create colored text on terminal
https://github.com/pykit3/k3color
color console terminal
Last synced: 4 months ago
JSON representation
create colored text on terminal
- Host: GitHub
- URL: https://github.com/pykit3/k3color
- Owner: pykit3
- License: mit
- Created: 2020-07-28T11:25:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-08-28T12:36:09.000Z (9 months ago)
- Last Synced: 2025-09-25T06:47:26.626Z (8 months ago)
- Topics: color, console, terminal
- Language: Python
- Homepage: https://blog.openacid.com
- Size: 2.31 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k3color
[](https://github.com/pykit3/k3color/actions/workflows/python-package.yml)
[](https://k3color.readthedocs.io/en/stable/?badge=stable)
[](https://pypi.org/project/k3color)
create colored text on terminal
k3color is a component of [pykit3] project: a python3 toolkit set.
# Install
```
pip install k3color
```
# Synopsis
```python
# output text in blue:
>>> blue('I am blue')
'\x01\x1b[38;5;67m\x02I am blue\x01\x1b[0m\x02'
```
# Author
Zhang Yanpo (张炎泼)
# Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼)
[pykit3]: https://github.com/pykit3