-
-
Notifications
You must be signed in to change notification settings - Fork 0
base
XulbuX edited this page Aug 28, 2025
·
4 revisions
This class includes hexa color constants (string).
Constant | Color |
---|---|
WHITE |
|
LIGHT_GRAY |
|
GRAY |
|
DARK_GRAY |
|
BLACK |
|
RED |
|
CORAL |
|
ORANGE |
|
TANGERINE |
|
GOLD |
|
YELLOW |
|
LIME |
|
GREEN |
|
NEON_GREEN |
|
TEAL |
|
CYAN |
|
ICE |
|
LIGHT_BLUE |
|
BLUE |
|
LAVENDER |
|
PURPLE |
|
MAGENTA |
|
PINK |
|
ROSE |
This class includes various text character-set constants (string).
Constant | Description |
---|---|
ALL |
Code to signal that all characters are allowed. |
DIGITS |
Digits: 0 -9
|
FLOAT_DIGITS |
Digits: 0 -9 with decimal point .
|
HEX_DIGITS |
Digits: 0 -9 Letters: a -f A -F and a hashtag #
|
LOWERCASE |
Lowercase letters a -z
|
LOWERCASE_EXTENDED |
Lowercase letters a -z with all lowercase diacritic letters. |
UPPERCASE |
Uppercase letters A -Z
|
UPPERCASE_EXTENDED |
Uppercase letters A -Z with all uppercase diacritic letters. |
LETTERS |
Lowercase and uppercase letters a -z and A -Z
|
LETTERS_EXTENDED |
Lowercase and uppercase letters a -z A -Z and all diacritic letters. |
SPECIAL_ASCII |
All ASCII special characters. |
SPECIAL_ASCII_EXTENDED |
All ASCII special characters with the extended ASCII special characters. |
STANDARD_ASCII |
All standard ASCII characters. |
FULL_ASCII |
All characters in the ASCII table. |
This class contains constants and methods for use of ANSI escape codes.
Constant | Description |
---|---|
ESCAPED_CHAR |
The printable ANSI escape character. |
CHAR |
The ANSI escape character. |
START |
The start of an ANSI escape sequence. |
SEP |
The separator between ANSI escape sequence parts. |
END |
The end of an ANSI escape sequence. |
A tuple of the default console color names:
tuple[str, ...]
A dictionary of all custom format keys and their corresponding ANSI format number codes:
dict[str | tuple[str, ...], int]
This method generates an ANSI sequence with parts
amount of placeholders.
Param: parts: int = 1
the amount of parts that the generated formattable ANSI sequence should have.
Returns: the generated formattable ANSI sequence
★⠀Python Library by XulbuX⠀★
-
Intended Audience:
- Developers
-
License:
- OSI Approved
- MIT License
-
Operating Systems:
- Full Library: OS Independent
-
Supported Python Versions:
- Python 3.13
- Python 3.12
- Python 3.11
- Python 3.10
-
Topics:
- Libraries
- Python Modules
- Software Development