vizible
Minimal, deterministic color-coded debugging for Python.
vizible provides a way to track execution flow by assigning a deterministic
color to each dprint call site.
pip install vizible
Features
dprint(*args): Prints text in a truecolor RGB value derived from the calling file name and line number. The value is stable while that call site stays at the same path and line.- Readable everywhere: The hash picks a vivid hue, and every color keeps at least 3:1 contrast on both dark and light terminal backgrounds.
- A drop-in
print:dprintand the named helpers takeprint's arguments (sep,end,file,flush), so you can swap one in for anyprintcall. - Classic ANSI Colors: Quick access to
red,green,yellow,blue,magenta, andcyan. - Zero Configuration: Works out of the box in most modern terminals, with no dependencies.
Usage
from vizible import blue, cyan, dprint, green, magenta, red, yellow
print("Regular print")
# Each dprint call site gets a deterministic color, so the two
# lines inside this loop are told apart without reading them.
for step in range(3):
dprint("fetching batch", step)
dprint("parsed", step * 10, "rows")
# ANSI color helpers
red("red print")
green("green print")
yellow("yellow print")
blue("blue print")
magenta("magenta print")
cyan("cyan print")
Example Output
This is a generated rendering of the ANSI stream emitted by the example, not a
live terminal. The dprint lines preserve their exact emitted RGB values.
The named helpers emit standard ANSI SGR color codes (31, 32, and so on),
so their final RGB values deliberately follow your terminal's palette; the
preview uses the xterm default palette for those lines.
More
import sys
from vizible import dprint
# Anything print accepts: write to stderr, keep stdout clean for real output.
dprint("cache miss", key, file=sys.stderr, flush=True)
# Inside your own logging helper, color by the line that called the helper
# instead of the one dprint line inside it (same idea as warnings.warn).
def trace(*args):
dprint("[trace]", *args, stacklevel=2)
Multi-line values are colored line by line, so they stay colored in less -R
and CI log viewers.
Set the NO_COLOR environment variable to print plain
text, for example when redirecting debug output to a file.
Why?
When debugging loops or long log streams, visual pattern matching is faster than reading text. vizible allows you to "see" where your logs are coming from without reading file/line prefixes.
Metadata
Release files for vizible 1.1.0
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 |
|---|---|---|---|---|
| vizible-1.1.0.tar.gz | 79.4 kB | With provenance | Details for vizible-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vizible-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for vizible-1.1.0-py3-none-any.whl |
Total release size: 91.7 kB
Release files / vizible-1.1.0.tar.gz
| Download URL | vizible-1.1.0.tar.gz |
|---|---|
| Size | 79.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85dbcd216deb21f762c7ad25bb24e2b3221b7abcd3fbc5810ae76f5b8078fbf8
|
|
BLAKE2b-256 checksum How to use checksums |
3a98ba3189a30e5bb3e632c8d190a17d775f6ec4fdf42477275362bc66383408
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / vizible-1.1.0-py3-none-any.whl
| Download URL | vizible-1.1.0-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dea0692f58a2e354aa8ad069e5bcaf4d66a1c60f15885b984b77fa646ab50304
|
|
BLAKE2b-256 checksum How to use checksums |
8eb52a9334577653b60571583c9e481cacca90fcd6ee3c71bbf811410a87e0af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for vizible 1.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for vizible-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA 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.