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"
Dockerfile
RUN pip install VividHues
# or
COPY requirements.txt .
RUN pip install -r requirements.txt
: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.11.tar.gz
(14.5 kB
view details)
Built Distribution
File details
Details for the file VividHues-3.2.11.tar.gz
.
File metadata
- Download URL: VividHues-3.2.11.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec05d5c168df07ce069a637e5f0183061b988dcade8bfbabd741903e8e1e9f51 |
|
MD5 | ffebf379b19f6859cc25eb12aff1e39f |
|
BLAKE2b-256 | e9ed07f8843999f9a03641b1f2eca66e5d33814aa44879ec56d00884da41870d |
File details
Details for the file VividHues-3.2.11-py3-none-any.whl
.
File metadata
- Download URL: VividHues-3.2.11-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1210a6a2968850b6f680c66a2e408e86f6e6fd0cefa7b705566d2bdb0e30bdb |
|
MD5 | 1d787c662ea393cd17c7f1a1dd05d94c |
|
BLAKE2b-256 | 953bbb21e1885348b68211956cc79f8c421553b54939c4b3654ae130879763d1 |