https://github.com/bonifield/ezpycolor
simple colorization of strings in Python
https://github.com/bonifield/ezpycolor
color prettyprint python python3 string string-manipulation strings
Last synced: 11 months ago
JSON representation
simple colorization of strings in Python
- Host: GitHub
- URL: https://github.com/bonifield/ezpycolor
- Owner: bonifield
- License: mit
- Created: 2021-05-23T15:27:36.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-23T15:58:48.000Z (about 5 years ago)
- Last Synced: 2025-03-12T07:31:40.645Z (over 1 year ago)
- Topics: color, prettyprint, python, python3, string, string-manipulation, strings
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ezpycolor
simple colorization of strings in Python
### Installation
```
pip install ezpycolor
```
### Example Output

### Usage
```
from ezpycolor import *
printgreen("hello world")
s = colorpurple("hello")+" "+colorred("world")
print(s)
printrainbow("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
printbgrainbow("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
```
### Objects
```
# print statements
printpurple
printblue
printgreen
printyellow
printgold
printred
printbold
printunderline
printbgpurple
printbgblue
printbggreen
printbgyellow
printbggold
printbgred
printrainbow
printbgrainbow
# string objects
colorpurple
colorblue
colorgreen
coloryellow
colorgold
colorred
colorbold
colorunderline
colorbgpurple
colorbgblue
colorbggreen
colorbgyellow
colorbggold
colorbgred
colorrainbow
colorbgrainbow
```