https://github.com/weaming/simple-colors
Colorful output in terminal
https://github.com/weaming/simple-colors
Last synced: about 1 year ago
JSON representation
Colorful output in terminal
- Host: GitHub
- URL: https://github.com/weaming/simple-colors
- Owner: weaming
- Created: 2018-11-23T04:06:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-14T09:09:56.000Z (over 7 years ago)
- Last Synced: 2025-04-08T21:41:28.968Z (about 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Colors
Colorful output in terminal.
## Installation
```sh
pip install simple-colors
```
## Usage
```python
from simple_colors import *
print(green('hello'))
print(green('hello', 'bold'))
print(green('hello', ['bold', 'underlined']))
```
## Inlucded colors
* black
* red
* green
* yellow
* blue
* magenta
* cyan
## Included styles:
* bold
* bright
* dim
* italic
* underlined
* blink
* reverse
## CLI Usage
```
$ simple-colors -h
usage: simple-colors [-h]
[-s [{bright,bold,dim,italic,underlined,blink,reverse} [{bright,bold,dim,italic,underlined,blink,reverse} ...]]]
{black,red,green,yellow,blue,magenta,cyan} text
positional arguments:
{black,red,green,yellow,blue,magenta,cyan}
text text of file path
optional arguments:
-h, --help show this help message and exit
-s [{bright,bold,dim,italic,underlined,blink,reverse} [{bright,bold,dim,italic,underlined,blink,reverse} ...]], --style [{bright,bold,dim,italic,underlined,blink,reverse} [{bright,bold,dim,italic,underlined,blink,reverse} ...]]
```