VividHues: super lite package for coloured 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')}")
# ^^^
# you'll get an error using "" in f-string interpolations
:rainbow: Available Clr codes:
Just put a color in the gap Clr.___
RED, ORANGE, YELLOW, LIME, GREEN, BLUE, CYAN, PURPLE, PINK, BLACK, WHITE
Or use a 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.
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-4.2.13.tar.gz
(15.2 kB
view hashes)
Built Distribution
VividHues-4.2.13-py3-none-any.whl
(15.3 kB
view hashes)
Close
Hashes for VividHues-4.2.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34f5fd60a37c2b67154442a75d86ed8dc7864e16c7ee606e73f3d616e165d9a6 |
|
MD5 | 1e24ccaac15050badd3c7530eaf0cd1c |
|
BLAKE2b-256 | d482b88dc26029b8d519aa320b385b8f6dfb0e913ded342d3fc76a4e8a23e29d |