Terminal output styling - ANSI colors and styles for Python
Project description
Simple Python class with ANSI escape codes for styling and coloring terminal output
Installation
pip3 install pytermcolors
Examples
from pytermcolors import colprint, Color
colprint("Hello World!", fg=Color.FG_CYAN, bg=Color.BG_WHITE, bold=True, italic=True)
from pytermcolors import colorize, Color
print(colorize("WARNING", fg=Color.FG_YELLOW, underline=True))
print(colorize("ERROR", fg=Color.FG_RED, strike=True))
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
pytermcolors-1.1.0.tar.gz
(3.2 kB
view details)
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 pytermcolors-1.1.0.tar.gz.
File metadata
- Download URL: pytermcolors-1.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e7f065546d3eb616f1c1a6f07943b7262e7bdec22681a3cf5c59fdf7c6ddd0f
|
|
| MD5 |
527f2546ca44bae365b94a165c4a1419
|
|
| BLAKE2b-256 |
c1e07fc9b44756f98afeaac52c1419fa5ca02028e0ffdd79622f0ca73e368a0f
|
File details
Details for the file pytermcolors-1.1.0-py3-none-any.whl.
File metadata
- Download URL: pytermcolors-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1cbd9e838a165bef1bff743189109c983d4a64153067a162f4041e0aca1546d
|
|
| MD5 |
91620abc70773cfbb2b0b302b2dc3a1f
|
|
| BLAKE2b-256 |
d7c85a43a13abedd6b0dc17865935bd2959d006ebfcc1608cf04c500bb26ec86
|