clr
clr is a simple terminal string styling library. Its API is a port of the popular chalk module for javascript.
Install
$ pip install clr
Usage
import clr
print(clr.red.bold('Hello world!'))
API
clr.style*[.style](*objects, sep=' ')
Chain styles and call the last one as a method with an argument. Order doesn’t matter, and later styles take precedence in case of a conflict, e.g. clr.red.yellow.green is equivalent to clr.green.
Multiple arguments will be separated by sep, a space by default.
Styles
Modifiers |
Colors |
Background colors |
||
|---|---|---|---|---|
|
|
|
|
|
Metadata
Release files for clr 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clr-1.0.3.tar.gz | 2.6 kB | Without provenance | Details for clr-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clr-1.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for clr-1.0.3-py2.py3-none-any.whl |
Total release size: 7.0 kB
Release files / clr-1.0.3.tar.gz
| Download URL | clr-1.0.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26505b51f73518d531a52b1f7855488f8c764de94f248ebb7cbe0549acc9d333
|
|
BLAKE2b-256 checksum How to use checksums |
758f22b6b4813e45da30d2411d7c807364e806188beb4a0a41cb8c5f739cb39c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / clr-1.0.3-py2.py3-none-any.whl
| Download URL | clr-1.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7553f81f7ddc5579e45616ced5fcbdae3941ec817dacf5972d39a156c7cdba1a
|
|
BLAKE2b-256 checksum How to use checksums |
a471fb95dfed94ce26310b54216f868d113cb0202691ae56ee4bca2e931f50b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for clr 1.0.3
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.