A tiny library for terminal text customisation
Project description
zurcolor
A minimal Python library to print custom text in the terminal using ANSI escape codes (for example red or italic).
Installation
pip install zurcolor
Usage
from zurcolor import (
red, blue, green, yellow, purple, cyan, white, pink, black,
red_bg, blue_bg, green_bg, yellow_bg, cyan_bg, purple_bg, pink_bg, white_bg,
bright, dark,
bold, italic, underline, invert, blink
)
print(red("Hello, Red!"))
print(blue("Hello, Blue!"))
print(green("Hello, Green!"))
print(yellow("Hello, Yellow!"))
print(purple("Hello, Purple!"))
print(cyan("Hello, Cyan!"))
print(white("Hello, White!"))
print(pink("Hello, Pink!"))
print(black("Hello, Black!"))
print(red_bg("Hello, Red BG!"))
print(blue_bg("Hello, Blue BG!"))
print(green_bg("Hello, Green BG!"))
print(yellow_bg("Hello, Yellow BG!"))
print(cyan_bg("Hello, Cyan BG!"))
print(purple_bg("Hello, Purple BG!"))
print(pink_bg("Hello, Pink BG!"))
print(white_bg("Hello, White BG!"))
print(bright(red("Hello, Bright Red!")))
print(dark(blue("Hello, Fade Blue!")))
print(italic("Hello, Italic!"))
print(underline("Hello, Underline!"))
print(invert("Hello, Invert!"))
print(blink("Hello, Blink!"))
print(bold("Hello, Bold!"))
License
Apache 2.0
Note
Not every terminal will support all of functions as well as have the same ANSI escape codes support!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zurcolor-0.1.1.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zurcolor-0.1.1.tar.gz.
File metadata
- Download URL: zurcolor-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42d171e82d66533a655d30d449b57852d46bfb52917f40b376a5a1f2a19ddda7
|
|
| MD5 |
a31352b5d1787f838149aae91c6a0147
|
|
| BLAKE2b-256 |
9c5d93139ef0212e6fa29826ba3e3bcb30dfea0d67a529cff728f7c91046ea24
|
File details
Details for the file zurcolor-0.1.1-py3-none-any.whl.
File metadata
- Download URL: zurcolor-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45dad39849c1917753c7561bf42305fc205cdd7a06601fc983c6621002b58561
|
|
| MD5 |
a0de90f53a0a606c687fd859c91b414c
|
|
| BLAKE2b-256 |
0009a7189feafe63371d241787de1d170a8e8cd4b1dae11ed340cffb286d89d0
|