Skip to main content

VividHues: super lite package for coloured strings in Python!

Project description

VividHues :rainbow: :package:

VividHues

CodeFactor Latest SemVer Repo Size Total Lines

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


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.12.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

VividHues-4.2.12-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file VividHues-4.2.12.tar.gz.

File metadata

  • Download URL: VividHues-4.2.12.tar.gz
  • Upload date:
  • Size: 15.2 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

Hashes for VividHues-4.2.12.tar.gz
Algorithm Hash digest
SHA256 87607b3ff22024ff1b1f0e1c0578b61abe34b9c3d657c2ffd460ba00db768e33
MD5 346a813eb377c0b9e13b152565068d4b
BLAKE2b-256 4f9a7b51c479481bce42a3260dc6f7a190a36681a9a8a8fb02bd02f60ee7ee3f

See more details on using hashes here.

File details

Details for the file VividHues-4.2.12-py3-none-any.whl.

File metadata

  • Download URL: VividHues-4.2.12-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

Hashes for VividHues-4.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ac83520369216c863f66350350c19b4244f20ebefc520df7d15485a59fc48b68
MD5 082f9bf5a1f0c565fc1f630cd1537c85
BLAKE2b-256 3cf5cc768d11648b12bd3d85fa93c8e893eed0eda6e6c2ebb3d55f4ddb416845

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page