chromaprint
Python module to facilitate effortless color terminal output.
Installation
Chromaprint requires Python 3.X.
Install via pip with pip install chromaprint
Usage
from chromaprint import print
print('green on magenta', fg='green', bg='magenta')
It’s that easy.
Chromaprint contains one property colors and two methods print and set_default.
colors
chromaprint.colors is a tuple containing the names of all available colors. Attempts to use colors not in this tuple will raise an exception.
print()
The print() method functions the same as Python’s built-in print method. Simply pass any strings you wish to print with the foreground color as fg='green' and background color as bg='magenta'. Color selections only apply to a single print, so the next print call will use the default colors. You can change the default colors using chromaprint.set_default()
set_default()
A custom set of default colors may be specified and changed at will. Simply call set_default() using the same syntax as chromaprint.print(), ie chromaprint.set_default(bg='green', fg='magenta'). You may set either bg, fg, or both. To return to the system default color output pass bg='default', fg='default'
Metadata
Release files for chromaprint 0.5
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 |
|---|---|---|---|---|
| chromaprint-0.5.tar.gz | 2.3 kB | Without provenance | Details for chromaprint-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chromaprint-0.5-py3-none-any.whl | Python 3 | none | any | Details for chromaprint-0.5-py3-none-any.whl |
Total release size: 5.0 kB
Release files / chromaprint-0.5.tar.gz
| Download URL | chromaprint-0.5.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77833e89e350a485dc9c41f55b22169d36197b73fe639f16d2ecf5b983f02d01
|
|
BLAKE2b-256 checksum How to use checksums |
a2e29fe5d05767c677b75a003a323cb7baaabc2243dfd311b29e1804c65b140a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / chromaprint-0.5-py3-none-any.whl
| Download URL | chromaprint-0.5-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1cb68ec49103d89fcb5f432d461921ede1aa511004b6649f6d699bc224b78231
|
|
BLAKE2b-256 checksum How to use checksums |
19c039ed246555585599c174db4ee2d61a89c0b80dee0f40b38f64f2c6ecdfd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for chromaprint 0.5
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.