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
* _OTHER
* 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.

Source Distribution

bashcolor-0.9.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

bashcolor-0.9.0-py2-none-any.whl (6.6 kB view details)

Uploaded Python 2

File details

Details for the file bashcolor-0.9.0.tar.gz.

File metadata

  • Download URL: bashcolor-0.9.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bashcolor-0.9.0.tar.gz
Algorithm Hash digest
SHA256 721e121080e87eefde2fed0a72e3d8ee6c3d0ccf98bd1d31a2e5840ac6090272
MD5 307f638070f767a6a11126db2c249184
BLAKE2b-256 aabc6089568d5a6465622d7a1343e06d60406618f74844870d7ca31a6e395949

See more details on using hashes here.

Provenance

File details

Details for the file bashcolor-0.9.0-py2-none-any.whl.

File metadata

File hashes

Hashes for bashcolor-0.9.0-py2-none-any.whl
Algorithm Hash digest
SHA256 7dedc94983f4dbc445a13429e8a5828c5975685483ed235b1136f7e9080b7737
MD5 3cd7e8bbf152d77644fad091f772eaa6
BLAKE2b-256 1124b6a694801ba421a66fbaffda197f39490a4f979d451fe36707d2e1970079

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page