dye
Lightweight module with ANSI control codes to dye python scripts.
This package contains just one module, it consist only on some declaration, something like:
RED = \x1b[31m
The module has the trivial task of extend the namespace of your application to include terms you can use to color and format terminal output using ANSI control codes.
Usage
from dye import *
print fg.BLUE+"colorz"+fg.RESET
print fg.LBLUE+"colorz"+fg.RESET
print style.BOLD + fg.GREEN + bg.YELLOW + "colorz" + style.RESET_ALL
The strings contained in the colorz variables are ANSI control codes.
In this set there are:
the basic 8 colors
BLACK
RED
GREEN
YELLOW
BLUE
MAGENTA
CYAN
WHITE
their high intensity versions
HBLACK
HRED
HGREEN
HYELLOW
HBLUE
HMAGENTA
HCYAN
HWHITE
The following styles are supported:
BOLD
DIM
UNDERL
BLINK
REVERSE
HIDDEN
reset sequences
RESET_ALL
RESET_BOLD
RESET_DIM
RESET_UNDERL
RESET_BLINK
RESET_REVERSE
RESET_HIDDEN
You can set text color using fg codes: fg.RED
You can set background color using bg codes: bg.RED
You can set styles using style codes: style.BOLD
Metadata
Release files for dye 0.4
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 |
|---|---|---|---|---|
| dye-0.4.tar.gz | 2.1 kB | Without provenance | Details for dye-0.4.tar.gz |
Release files / dye-0.4.tar.gz
| Download URL | dye-0.4.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc435e37edcdc86d7163f604aaecb20be9bf68189586862276514576057402c3
|
|
BLAKE2b-256 checksum How to use checksums |
fa2d92866d3384f29bbc39a86dd799dd71861693c4610a7ba805dca6c0b05b9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for dye 0.4
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.