Skip to main content

PyTerminalColor

Create attractive python progams with foreground, background colors and styles.

Installation

Using PyPi

  • with pip
    pip install PyTerminalColor
    

Using git

  • clone repo

    git clone https://github.com/dmdhrumilmistry/PyTerminalColor.git
    
  • Change to PyTerminalColor repo directory

    cd PyTerminalColor
    
  • install PyTerminalColor

    pip install -e .
    

Verify installation

python -m PyTerminalColor

Features

  • Foreground Colors: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, LIGHT_GRAY, CYAN
  • Background Colors: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, LIGHT_GRAY, CYAN
  • Styles: NORMAL, BOLD, ITALIC, UNDERLINE

Usage

  • Import and create an TerminalColor object.
from PyTerminalColor.TerminalColor import TerminalColor


colorize = TerminalColor(fgcolor='YELLOW', bgcolor='RED', style='BOLD')
  • print colored text with default object values
colorize.cprint('TerminalColor')
  • print colored text with other values
colorize.cprint('TerminalColor',use_default=False, fgcolor='YELLOW', bgcolor='BLACK', style='ITALIC')

cprint default values:

use_default = True
fgcolor = 'LIGHT_GRAY'
bgcolor = 'BLACK'
style = 'NORMAL'

License

MIT License

Have any Issues?

Create an issue from Issues Tab

Leave A Star⭐

Connect With Me on:



Metadata

Release files for PyTerminalColor 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyTerminalColor 1.0.0
File Size Uploaded Provenance
PyTerminalColor-1.0.0.tar.gz 3.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for PyTerminalColor 1.0.0
File Interpreter ABI Platform
PyTerminalColor-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / PyTerminalColor-1.0.0.tar.gz

Download URL PyTerminalColor-1.0.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
50d36b32ad3d33bd75703723463509eb6f0b8a465ca62ddf595fc997fe2ba049
BLAKE2b-256 checksum
How to use checksums
69afdcc0ee81b4ed1d06172648c62bd9a292bc5a583ffba46399bce4c91637d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release files / PyTerminalColor-1.0.0-py3-none-any.whl

Download URL PyTerminalColor-1.0.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5a2bcdf05d411c1d84afd761bf0981123a9ee9f978e244e8f1400720ea2311b
BLAKE2b-256 checksum
How to use checksums
20b84a80f8f01868f563fd12f135713657878ead7141fc3bfa31251044014537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Security for PyTerminalColor 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page