Skip to main content

Bash color

Available colors

  • BLACK
  • RED
  • GREEN
  • BROWN
  • BLUE
  • PURPLE
  • CYAN
  • LIGHT_GRAY
  • DEFAULT
  • DARK_GRAY
  • LIGHT_RED
  • LIGHT_GREEN
  • YELLOW
  • LIGHT_BLUE
  • LIGHT_PURPLE
  • LIGHT_CYAN
  • WHITE

Available effect

  • BOLD
  • DIM (not working on Konsole)
  • UNDERLINE
  • BLINK (not working on Konsole and Gnome Terminal)
  • INVERSE
  • HIDDEN (not working on Konsole)

Example

from bashcolor import RED, UNDERLINE, colorize

print(colorize('Red color', RED))
print(colorize('Red background', background=RED))
print(colorize('Underline', effects=[UNDERLINE]))

API

def colorize(
    text,
    color=None,
    background=None,
    effects=[],
    color_256=None,
    background_256=None,
    with_end=True):

Metadata

Release files for bashcolor 1.1.1

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

Built distribution (wheel)

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

Release files / bashcolor-1.1.1-py3-none-any.whl

Download URL bashcolor-1.1.1-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77f02f25dcf64bc6282985cf1f9c6b76019dbcfd2744dc02c86897b41350796b
BLAKE2b-256 checksum
How to use checksums
9200ebe438b30e933b1b8da0dfc4aecd9145c07ba7a7f53ecb63464de34a71f7
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.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

Security for bashcolor 1.1.1

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.

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