Skip to main content

VividHues: super lightweight package for coloured strings in Python!

Project description

VividHues :rainbow: :package:

VividHues

CodeFactor Latest SemVer Repo Size Total Lines

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


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

Uploaded Source

Built Distribution

VividHues-3.3.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for VividHues-3.3.1.tar.gz
Algorithm Hash digest
SHA256 39a7ddbd607e35b66ff2a6353a44660a7afd5183b270c3b1617786d8c511043a
MD5 45775da71568050172c5c52434dd3c24
BLAKE2b-256 ccd571475cfeb859e986526151c3241dddd55f9c228e58be2f8c4da41861de97

See more details on using hashes here.

File details

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

File metadata

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

Hashes for VividHues-3.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7669cac172540eef17d7816b5e939435ed254e1d522332de8281b9c2529ad3a6
MD5 f37fd6de418e52790d8a25f4baecef42
BLAKE2b-256 300a40a4ec6b43fd61cad1d7301451b425009732cc5eaf810725e1e11388ff5b

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