pycolorise
- Add colors/fonts to the terminal
- The terminal colorizer is a tool that improves the visual experience of terminal applications
Join Official Discord Server for more guidance !
Features
-
It provides templates for foreground, background colors and font styles for re-usability.
-
It supports 24-bit true colors, RGB, and hex colors, providing a wide range of color options.
-
The colorizer is built using object-oriented programming principles, making it highly customizable.
-
Developers can easily create their own color schemes to suit their needs.
-
The colorizer has no dependencies, making it easy to integrate into any project without adding unnecessary overhead.
Installation
For stable version, use below command
pip install -U pycolorise
For latest/beta version, install it using git
pip install -U git+https://github.com/Modern-Realm/pycolorise
Quickstart
Create a file with '.py ' extension, Like: main.py
# For foreground colors
from pycolorise.colors import *
# For background colors
from pycolorise.bgColors import *
# For font styles like: bold, italic, etc
from pycolorise.styles import *
print(Purple("• Foreground colors:"))
print(
Red("red"), BrightRed("bred"),
Green("green"), BrightGreen("bgreen")
)
print(Purple("\n• Background colors:"))
print(
BgRed("red"), BgBrightRed("bred"),
BgGreen("green"), BgBrightGreen("bgreen")
)
print(Purple("\n• Fonts:"))
print(
Bold("bold"), Underline("underline"),
StrikeThrough("strike through"),
Italic("italic"), Framed("framed")
)
Output:
Useful Links:
- For more guidance check Examples
- Documentation
- Contributing
- Code of Conduct
Contact Us
Metadata
Release files for pycolorise 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycolorise-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pycolorise-1.0.0-py3-none-any.whl
| Download URL | pycolorise-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78e710151bdbb4936e2bc44336d390696c3e1fd892ccac92552210960e74daba
|
|
BLAKE2b-256 checksum How to use checksums |
caed2452fdaad3bdbaf53ab509c8e0880ad18381a492d1a60cbb3da8fae21df3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for pycolorise 1.0.0
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.