Skip to main content

Enables ANSI escape code support for Windows 10 terminal. Has 8-bit ANSI color presets.

Project description

HueKit

Huekit is a simple package which lets you style and color text. Unlike colorama and other python text color-izers, huekit also lets you style text, and has more color variety than colorama.

How To Use

The following is a code block which will later be explained, showing how to use huekit:

from huekit import huekit

print(huekit.color("red") + huekit.bgcolor("blue") + "This text is red (with a blue background)," + huekit.style("bold") + " And this text is bold!")

from huekit import huekit: import the library.

huekit.color("red")": this is huekit's color function. For a full list of the avaliable colors, please run huekit.colors().

huekit.bgcolor("blue"): this is huekit's background color function. For a full list of the avaliable background colors, please run huekit.bgcolors().

huekit.style("bold"): this is huekit's style function. For a full list of the avaliable styles, please run huekit.styles().

Notes

  • huekit.color("white") resets all effects, doesn't just change the color to white.
  • You can concatenate styles, background colors and colors together.

If you just want to fix the Windows (10) terminal ANSI support, run huekit.fix_windows_please(). It is safe to run this multiple times and run this on other OSes (this won't do anything).

Warnings

  • This has not been tested on Windows versions below Windows 10.
  • When this module is imported, fix_windows_please() is automatically called.

Be cautious of these factors. These are most probably not going to be fixed.

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

huekit-0.1.1.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

huekit-0.1.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file huekit-0.1.1.tar.gz.

File metadata

  • Download URL: huekit-0.1.1.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for huekit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1f51912109f5261d4933108f1691ecaaeeec370bfac5c65be9bdcefb60e8b1d6
MD5 144cc91d9c31e1ff3ec1581d0f3f8597
BLAKE2b-256 54d3c790059868482f5fed6fef267bcde0b2c20d39508ac90a9e542ee756cabf

See more details on using hashes here.

File details

Details for the file huekit-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: huekit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for huekit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ecc9d0ff4967a13c14cf14907f64c1f198135b178eee3c0a03a3e2773c29831a
MD5 1ae26a8a961d5a210759e9252c06b279
BLAKE2b-256 8e82b30d852bb74012f0e8b6d9618a3571bcf16b9ec19e801e34d6f56170593a

See more details on using hashes here.

Supported by

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