VividHues: super lite package for colored strings in Python!
Project description
VividHues :rainbow: :package:
VividHues: super lite package for colored strings in Python!
:hammer_and_wrench: Official Installation
Use this command, in your command line, to install VividHues.
pip install VividHues
:bricks: Dependency
requirements.txt (Highly Recommended!)
Append this to your Python packages requirements file.
VividHues>=2.7.9 # only has Clr codes
VividHues>=4.1.0 # has new features such as abbreviations & Clr.rainbow()
Dependabot.yml (optional)
Create this file, to add your GitHub repo as a dependent.
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
Dockerfile (optional)
If you have a Docker container. :whale2:
# recommended
COPY requirements.txt .
RUN pip install -r requirements.txt
# alternatively...
RUN pip install VividHues
:snake: Python Example
print(Clr.BO + Clr.UL + Clr.rainbow('I love VividHues!') + Clr.RS)
print(f"{Clr.RED}It's got my fave color!{Clr.RS}")
print(f"Soooo {Clr.jazzy('jazzy') + Clr.RS}")
# ^^^
# you'll get an error using "" in f-string interpolations
print(Clr.pattern("Kenny Oliver", Clr.PURPLE, Clr.CYAN, Clr.LIME))
:rainbow: Available Clr codes:
Just put a code in the gap Clr.___
Clr: RED, ORANGE, YELLOW, LIME, GREEN, BLUE, CYAN, PURPLE, PINK, BLACK, WHITE
Formatter: UNDERLINE, UL, BOLD, BO, RESET, RS
:magic_wand: Magic Functions
:game_die: Clr.random()
print(Clr.random(string))
Picks a random Clr code.
:saxophone: Clr.jazzy()
print(Clr.jazzy(string))
Jazzes up your console by giving each letter of the string passed a random color!
It's a total gamble, that's guaranteed to be ugly! :)
:rainbow: Clr.rainbow()
print(Clr.rainbow(string))
Makes any string colored in a rainbow pattern.
:test_tube: Clr.pattern()
print(Clr.pattern(string, *color))
Paint your letters in a repeating pattern, by specifying an unlimited amount of Clr codes!
Kenny Oliver ©2021
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
VividHues-5.2.0.tar.gz
(15.4 kB
view details)
Built Distribution
VividHues-5.2.0-py3-none-any.whl
(15.5 kB
view details)
File details
Details for the file VividHues-5.2.0.tar.gz
.
File metadata
- Download URL: VividHues-5.2.0.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c11e414eb4d86bb5b16d76d80dc004d5f88447a808ed13e12908b24703a6888e |
|
MD5 | 7b1bae4723bdfc9bcb93315f6bb7dc99 |
|
BLAKE2b-256 | a3815fcf80b582a66015914b7ee4954642824332bcfc43b07aeb1e2e37bdbded |
File details
Details for the file VividHues-5.2.0-py3-none-any.whl
.
File metadata
- Download URL: VividHues-5.2.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5e31b717f726228ba9a0e1924b940e145e13704a2059f6e93db6e434d5897c5 |
|
MD5 | 34ada22d3e6c94958aa3e493ba4c1410 |
|
BLAKE2b-256 | 6df53cda0e738174aacf7f139382e7f871d5daf849ba577699efe0bed8f1951e |