The normal terminal color libraries provide an easy way to print text with colors and styles. _ansitagcolor_ provides a binding between a tag (e.g. error, warn, info) and a given style. Tags are registered at a term instance and text can be processed with term.cprint or replace the print with term.printr.
Author: Alexander Weigl
License: MIT
Date: 2014-03-14
Version: 0.2
Getting Started
Install with pip:
pip install --user ansitagcolor
Run in python:
from __future__ import print_function
import ansitagcolor as ansi
t = ansi.term()
print = t.printr
t.register("error", style( foreground = ansi.Color16Table.White,
background = ansi.Color16Table.Red) )
print("{error Error Message!}")
Metadata
Release files for ansitagcolor 0.2.2-1
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 |
|---|---|---|---|---|
| ansitagcolor-0.2.2-1.tar.gz | 8.1 kB | Without provenance | Details for ansitagcolor-0.2.2-1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ansitagcolor-0.2.2-1.linux-x86_64.tar.gz | Details for ansitagcolor-0.2.2-1.linux-x86_64.tar.gz | |||
| ansitagcolor-0.2.2-1.linux-x86_64.exe | Details for ansitagcolor-0.2.2-1.linux-x86_64.exe |
Total release size: 82.0 kB
Release files / ansitagcolor-0.2.2-1.tar.gz
| Download URL | ansitagcolor-0.2.2-1.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88ad07ebf58a653e9802414a318836385bfc2bb2686f8318e16336a77601db9d
|
|
BLAKE2b-256 checksum How to use checksums |
d602f2bc83349b97827e6b8f3820b25771ddd4bb4b78522afef9db8758f39e26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ansitagcolor-0.2.2-1.linux-x86_64.tar.gz
| Download URL | ansitagcolor-0.2.2-1.linux-x86_64.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45fb6c466035dbe16066631bc271db725ea2505f2c21480a3f25e41192fe2ea9
|
|
BLAKE2b-256 checksum How to use checksums |
f6921246448116886f7a95494064f4355a568efad9658dbf133d2242063de156
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ansitagcolor-0.2.2-1.linux-x86_64.exe
| Download URL | ansitagcolor-0.2.2-1.linux-x86_64.exe |
|---|---|
| Size | 66.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9767d19e23b9b7e0fd788b4006393581d1b7ee06e9c1deb9cc8653fd88f1ec7f
|
|
BLAKE2b-256 checksum How to use checksums |
ad012387782f8138389716cd5ae60f254978cf601779c8e9244db9ca429ad5b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ansitagcolor 0.2.2-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.