Skip to main content

Chalky

Supported Versions Test Status Documentation Status Codecov Code Style: Black

Simple ANSI terminal text coloring

Yet another terminal text coloring library…

Why? Because, I like certain things and I hate certain things about the currently available solutions. This here is my attempt to build an interface for simply applying ANSI escape sequences to strings that I enjoy and can update at my own free will. That is it, there is nothing new or interesting that this packages adds. Thanks 🎉

For more interesting details, please visit the documentation.

Style Composition

from chalky import sty, fg

my_style = sty.bold & fg.red
print(my_style | "This is red on black")
print(my_style.reverse | "This is black on red")

Basic Colors

Style Chaining

from chalky import chain

print(chain.bold.green | "I'm bold green text")
print(chain.white.bg.red.italic | "I'm italic white text on a red background")

Style Colors

Truecolor

from chalky import rgb, sty, hex

print(rgb(23, 255, 122) & sty.italic | "Truecolor as well")
print(sty.bold & hex("#ff02ff") | "More and more colors")

True Colors

Disable Colors

from chalky import configure, fg

print(fg.red | "I am red text")
configure(disable=True)
print(fg.red | "I am NOT red text")

Configure

Metadata

Release files for chalky 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 chalky 1.0.0
File Size Uploaded Provenance Actions
chalky-1.0.0.tar.gz 18.7 kB Without provenance Details for chalky-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 45.0 kB

Release files / chalky-1.0.0.tar.gz

Download URL chalky-1.0.0.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e9b69d0a857745555ad45ae825b79ace24f0fb0dce52011b030be727ac39e832
BLAKE2b-256 checksum
How to use checksums
2c9b4b658bfa6c2b3f9b3e609aa4e49b234dface34da97a29d78e2e9e76a6b80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.6 Darwin/18.7.0

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

Download URL chalky-1.0.0-py3-none-any.whl
Size 26.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53867201f7a2876e2040380bac977442cb3dde525ef80dee149597b9894a9b42
BLAKE2b-256 checksum
How to use checksums
5f88b2fc0b9fcb8b8d41e66f4410bad2cdccf261074fb3e9b0923142abf53a6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.6 Darwin/18.7.0

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

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