SysColors
How to use ?
1-) Module Install and Import
- Install Module
pip install syscolors
pip3 install syscolors
- Import Module
from syscolors.sysColors import SystemColors
2-) proxyController class must be called.
clr = SystemColors()
3-) Default colors and Font Formating
Colors = clr.red | clr.yellow | clr.blue | clr.green | clr.magenta | clr.black | clr.white
Background Colors = clr.bgRed | clr.bgYellow | clr.bgBlue | clr.bgGreen | clr.bgBlack | clr.bgWhite
Color Reset = clr.reset
Font Formating = clr.bold | clr.underline | clr.reversed
4-) Outputs
| Code | Output |
|---|---|
print(clr.red + "Red Color") |
|
print(clr.yellow + "Yellow Color") |
|
print(clr.blue + "Blue Color") |
|
print(clr.green + "Green Color") |
|
print(clr.magenta + "Magenta Color") |
|
print(clr.black + "Black Color") |
|
print(clr.white + "White Color") |
|
print(clr.bgRed + "Red Background Color") |
|
print(clr.bgYellow + "Yellow Background Color") |
|
print(clr.bgBlue + "Blue Background Color") |
|
print(clr.bgGreen + "Green Background Color") |
|
print(clr.black + "Black Background Color") |
|
print(clr.white + "White Background Color") |
|
print(clr.bold + "Font Style Bold") |
|
print(clr.underline + "Font Style Underline") |
|
print(clr.reversed + "Font Style Reversed") |
5-) setColor() and setBgClr() Methods
text = clr.setColor(35)
print(text + "SetColor"+reset)
output _>
#If you don't know the color numbers, you can call the getAllColor() method.
clr.getAllColor()
output2 _>
bgColor = clr.setBgClr(202)
print(bgColor+"Background Color"+reset)
output3 _>
#If you don't know the background color numbers, you can call the getAllBgColor() method.
clr.getAllBgColor()
output4 _>
6-) RGBSetClr() and RGBSetBgClr() Methods
#Default RGB = "240;248;255" => Type(string)
color = clr.RGBSetClr("155;205;155")
print(color+"RGBSetColor Method"+reset)
output Default _>
output set color _>
# RGB Background Color
#Default RGB = "240;248;255" => Type(string)
Bgcolor = clr.RGBSetBgClr("0;199;140") + clr.black
print(Bgcolor+"RGBSetBgColor Method"+reset)
output Default BG _>
output set BgColor _>
Use getAllRGB() Method
#detail = True =>> Returns color and rgb code if detail parameter is true.
#detail = False =>> If the parameter is False, the dictionary is returned.
print(clr.getAllRGB(detail=False))
#output _>
{'ALICEBLUE': '240;248;255', 'ANTIQUEWHITE': '250;235;215', 'ANTIQUEWHITE1': '255;239;219', 'ANTIQUEWHITE2': '238;223;204', 'ANTIQUEWHITE3': '205;192;176', 'ANTIQUEWHITE4': '139;131;120'...'YELLOW2': '238;238;0', 'YELLOW3': '205;205;0', 'YELLOW4': '139;139;0'}
print(clr.getAllRGB(detail=True))
output getAllRGB > True _>
7-) setHexColor() and setHexBg() Methods
#Default HexCode = "#B12345" => Type(string)
color = clr.setHexColor("#dc143c")
print(color+"SetHexColor Method"+reset)
color = clr.setHexBg("#dc143c")
print(color+"SetHexBg Method"+reset)
output SetHexColor _>
output SetHexBg _>
Use getAllHex() Method
#Returns all hex color codes and colors.
clr.getAllHex()
#output _>
Metadata
Release files for syscolors 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| syscolors-0.0.5.tar.gz | 11.6 kB | Without provenance | Details for syscolors-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| syscolors-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for syscolors-0.0.5-py3-none-any.whl |
Total release size: 21.5 kB
Release files / syscolors-0.0.5.tar.gz
| Download URL | syscolors-0.0.5.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2951396ef0e8618d6eb365d4d0b91ad0f52879755e6d684e0ae9c7d0a161fd56
|
|
BLAKE2b-256 checksum How to use checksums |
d6eb44776af0908f09d4efd8fbfcf2cfbb96004fa1ae7233ddd15fda4c5958fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
|
Release files / syscolors-0.0.5-py3-none-any.whl
| Download URL | syscolors-0.0.5-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84b2ec7586d183cfbba0b3299aa4a3654a405bcbed54ba099a446e1520c9c73d
|
|
BLAKE2b-256 checksum How to use checksums |
ee60327637c5a0980b24efb6a52a78579156f132ff7def26607b7b653213d334
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
|
Security for syscolors 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.