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.3.0.tar.gz
(14.5 kB
view details)
Built Distribution
VividHues-3.3.0-py3-none-any.whl
(14.5 kB
view details)
File details
Details for the file VividHues-3.3.0.tar.gz
.
File metadata
- Download URL: VividHues-3.3.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 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 | 7b5bdbf5a70cfcfab4395495819e257d02091615bef41a30b08f53c8de4a3e87 |
|
MD5 | ccab4d299c0b27c2b4fb44d78e53fc3b |
|
BLAKE2b-256 | 2c1f02cb97b90a886238be5ef6fb2df57a3b1a540726098dcffea4baf33400cd |
File details
Details for the file VividHues-3.3.0-py3-none-any.whl
.
File metadata
- Download URL: VividHues-3.3.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 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 | 971658caa1723a201e590e80aef9d2a4c5e5a6ee9dc0c89edaea2132ed558dc4 |
|
MD5 | 347caad1726bd0dae04cbb7f2165a949 |
|
BLAKE2b-256 | 08c56ef7bb605f58c6d3bdf79291f7dd2a0c5b68afdd0a515abe8764d11bcfa1 |