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:
RUN pip install VividHues
# or
COPY requirements.txt .
RUN pip install -r requirements.txt
:toolbox: Python Example
from VividHues import Clr
# f-strings -> highly recommended for your sanity
print(f"{Clr.BO + Clr.UNDERLINE + Clr.LIME}I love VividHues!{Clr.RS}")
any_string = f"{Clr.BO + Clr.CYAN}Hello {Clr.GREEN}earthlings!{Clr.RS}"
print(any_string)
# concatenation -> if you're an odd person
name = input(Clr.PINK + "What's your name?\n\t--> " + Clr.RS + Clr.UL)
print(Clr.RS + Clr.BO + "Hello,", Clr.RED + Clr.UL + name)
: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.5.tar.gz
(15.3 kB
view details)
Built Distribution
VividHues-4.2.5-py3-none-any.whl
(15.3 kB
view details)
File details
Details for the file VividHues-4.2.5.tar.gz
.
File metadata
- Download URL: VividHues-4.2.5.tar.gz
- Upload date:
- Size: 15.3 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 | a2c60613eb356c6577e9ca2d1ee1874b5780ea4941e70ae5775db58563d050ea |
|
MD5 | 76c1377145275a7813f8af99821afe15 |
|
BLAKE2b-256 | 3e254c14a187aaa2e546d39ba1a875eca6c0d6c83b4e9203e2ba5b9f228bfe2b |
File details
Details for the file VividHues-4.2.5-py3-none-any.whl
.
File metadata
- Download URL: VividHues-4.2.5-py3-none-any.whl
- Upload date:
- Size: 15.3 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 | 3741ccbbc8c68ecab43221d25623cb1906ef473232d11ec149ed8e707f00aeee |
|
MD5 | dfe841eeb0023e06df414c03165b0e1a |
|
BLAKE2b-256 | ae970731ae60381a1de39c820ea19bfce73c1fd14aaf011349c0f056072bb55a |