Skip to main content

A simple library to get colors in the bash terminal

Project description

# Bash color

## Available colors

* BLACK
* RED
* GREEN
* BROWN
* BLUE
* PURPLE
* CYAN
* LIGHT_GRAY
* DEFAULT
* DARK_GRAY
* LIGHT_RED
* LIGHT_GREEN
* YELLOW
* LIGHT_BLUE
* LIGHT_PURPLE
* LIGHT_CYAN
* WHITE

## Available effect

* BOLD
* DIM (not working on Konsole)
* UNDERLINE
* BLINK (not working on Konsole and Gnome Terminal)
* INVERSE
* HIDDEN (not working on Konsole)

## Example

```python
from bash import colorize, RED, UNDERLINE

print(colorize('Red color', RED))
print(colorize('Red background', background=RED))
print(colorize('Underline', effect=UNDERLINE))
```

## API

```python
def colorize(
text,
color=None,
background=None,
effects=[],
color_256=None,
background_256=None,
with_end=True):
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
bashcolor-1.0.1-py2-none-any.whl (3.9 kB) Copy SHA256 hash SHA256 Wheel 2.7
bashcolor-1.0.1.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page