VividHues: super lightweight package for coloured strings in Python!
Project description
VividHues :rainbow: :paintbrush: :package:
VividHues: super lightweight package for coloured strings in Python!
:hammer_and_wrench: Official Installation
Use this command to install VividHues.
pip install VividHues
:bricks: Dependency
requirements.txt
VividHues>=2.7.9
Dependabot.yml
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
:toolbox: Python Example
from VividHues import Clr
# f-strings - recommended
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)
# alternatives
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 colours:
Colour Codes | Formatting Codes | Formatting Code Abbreviations |
---|---|---|
Clr.RED | Clr.UNDERLINE | Clr.UL |
Clr.ORANGE | Clr.BOLD | Clr.BO |
Clr.YELLOW | Clr.RESET | Clr.RS |
Clr.LIME | ||
Clr.GREEN | ||
Clr.BLUE | ||
Clr.CYAN | ||
Clr.PURPLE | ||
Clr.PINK | ||
Clr.BLACK | ||
Clr.WHITE |
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-3.2.10.tar.gz
(14.5 kB
view hashes)
Built Distribution
VividHues-3.2.10-py3-none-any.whl
(14.4 kB
view hashes)
Close
Hashes for VividHues-3.2.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec4a5c2e08875955e86634b695071885561d11cfea6635724f8f9bca809ff7d4 |
|
MD5 | b2c5c01a6ea79213fb668a22df973bb5 |
|
BLAKE2b-256 | e8741caae0eb77609d9ba89bef9c62ca1abaee9206b1f1aaa25b3d8fc7fa9867 |