Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-23T15:58:48.000Z (over 3 years ago)
- Last Synced: 2024-10-08T14:55:52.950Z (3 months ago)
- Topics: color, prettyprint, python, python3, string, string-manipulation, strings
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- 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
![ezpycolor-example-output.PNG](https://github.com/bonifield/ezpycolor/raw/main/ezpycolor-example-output.PNG)### 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
```