Skip to main content

A simple library to print with color and style on Python 3

Project description

colorprint3

A simple library to print with color and style on Python 3

Installation

Use the package manager pip to install colorprint3.

pip install colorprint3

Usage

Same as build-in print() function but have a few extra arguments : fg_color, bg_color and style.

colorprint3.print(*word,sep=None,end=None,file=None,flush=None,fg_color=None,bg_color=None,style=[])

fg_color values : black, red, green, yellow, blue, magenta, cyan, white, s_black, s_red, s_green, s_yellow, s_blue, s_magenta, s_cyan, s_white & Custom colors.

bg_color values : black, red, green, yellow, blue, magenta, cyan, white, s_black, s_red, s_green, s_yellow, s_blue, s_magenta, s_cyan, s_white & Custom colors.

fg_color and bg_color also accept direct integer input from 0 to 7.

style values : bold, underline, italic, faint. Accepting multiple style by putting them inside a list.

Custom color format : [r,g,b]

Contributing

Please open an issue to report a bug or give suggestion.

License

GNU GPLv3+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colorprint3-1.3a1.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

colorprint3-1.3a1-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file colorprint3-1.3a1.tar.gz.

File metadata

  • Download URL: colorprint3-1.3a1.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for colorprint3-1.3a1.tar.gz
Algorithm Hash digest
SHA256 aa6a0a1f3f8b1a67381eea3907a5f00aee4946e807ca52ff493d4da64196ce89
MD5 9df6766e881011884ab3d3ff4af97a34
BLAKE2b-256 b0547fb5423f357328220a95ae7b90ccadb47544eff9f2b97430bc1f74cfae80

See more details on using hashes here.

File details

Details for the file colorprint3-1.3a1-py3-none-any.whl.

File metadata

  • Download URL: colorprint3-1.3a1-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for colorprint3-1.3a1-py3-none-any.whl
Algorithm Hash digest
SHA256 b217304bb0e5c26a73347240895eea6237ba74e241025f4c0a74874bf74f2a2d
MD5 8251e4f89908acc156d9cf740af01a59
BLAKE2b-256 09d1828585d382bf5a7d2c84153a14bb8f0e5e0daa50da3f2dee8356e3d4c313

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page