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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f51912109f5261d4933108f1691ecaaeeec370bfac5c65be9bdcefb60e8b1d6
|
|
| MD5 |
144cc91d9c31e1ff3ec1581d0f3f8597
|
|
| BLAKE2b-256 |
54d3c790059868482f5fed6fef267bcde0b2c20d39508ac90a9e542ee756cabf
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecc9d0ff4967a13c14cf14907f64c1f198135b178eee3c0a03a3e2773c29831a
|
|
| MD5 |
1ae26a8a961d5a210759e9252c06b279
|
|
| BLAKE2b-256 |
8e82b30d852bb74012f0e8b6d9618a3571bcf16b9ec19e801e34d6f56170593a
|