viz - ASCII Art Visualization Toolkit
PNG/GIF/MP4 ASCII art. Variable resolution (default 1080x1080, up to 3840px), custom palettes, kaomoji, procedural effects, emotion-driven styles. Pure Python 3 + Pillow.
Install
# Preferred: uv tool
uv tool install aaajiao-viz
# Alternative: pipx
pipx install aaajiao-viz
Upgrade an existing install:
# uv tool
uv tool upgrade aaajiao-viz
# pipx
pipx upgrade aaajiao-viz
Alternative if you want to install into the current Python environment:
pip install aaajiao-viz
pip install -U aaajiao-viz
Release notes:
Verify the CLI is available:
viz --version
viz capabilities --format json
Quick Start
# Generate from emotion
viz generate --emotion euphoria --seed 42 --output-dir ./runs/euphoria
# AI integration via stdin JSON
echo '{"headline":"BTC $95K","emotion":"euphoria","metrics":["ETH: $4.2k"]}' | viz generate --output-dir ./runs/market
# Style preset
echo '{"emotion":"joy","style":"geometric"}' | viz generate --output-dir ./media
# Animated GIF
echo '{"emotion":"panic","video":true}' | viz generate --output-dir ./runs/panic
# Discover all options
viz capabilities --format json
How It Works
viz is an installed CLI for procedural ASCII image generation. AI decides what to express; VIZ decides how it looks.
emotion/text --> VAD vector --> grammar --> SceneSpec --> Engine --> output
(continuous) (stochastic) (full spec) (auto- (PNG/GIF/MP4,
scaled) variable res)
Everything is driven by the VAD emotion model (Valence-Arousal-Dominance). 34 named emotions map to points in continuous 3D space. The grammar system samples visual choices weighted by emotion — same emotion + different seed = different output.
Combinatorial space: 17 effects x 86 variants x 9 transforms x 7 postfx x 6 masks x 73 gradients x 8 decorations x bg_fill combos x procedural per-seed palette generation x 8 style presets (geometric/organic/retro/psychedelic/minimal/brutal/ethereal/glitch) x continuous params = effectively infinite.
Commands
| Command | Purpose |
|---|---|
generate |
Render visualization (variable resolution, PNG/GIF/MP4) |
convert |
Convert image to ASCII art |
capabilities |
Output full inventory as JSON for AI discovery |
Input (stdin JSON, all fields optional)
{
"emotion": "euphoria",
"headline": "BTC $95K",
"metrics": ["ETH: $4.2k", "SOL: $300"],
"vocabulary": {"particles": "$€¥₿↑↓", "kaomoji_moods": ["euphoria", "excitement"]}
}
Emotion drives all visual choices. vocabulary overrides specific visual assets (particles, kaomoji moods, decoration chars). Full field reference in docs/ai-integration.md.
Output
{"status": "ok", "results": [{"path": "/tmp/viz_out/viz_20260203_120000_s42.png", "seed": 42, "format": "png"}], "emotion": "euphoria", "resolution": [1080, 1080]}
Director Mode
Grammar auto-selects everything from emotion. Override any dimension for precise control:
viz generate --emotion euphoria --seed 100 \
--effect plasma --variant warped \
--transforms kaleidoscope:segments=6 \
--postfx vignette:strength=0.5 scanlines:spacing=4 \
--composition radial_masked \
--output-dir ./runs/director-euphoria
Details in docs/composition.md.
Project Structure
viz.py # Single CLI entry
lib/ # Shared: kaomoji, content, box-drawing chars, vocabulary
procedural/
engine.py # Render orchestrator (auto-scaled buffer -> output)
effects/ # 17 pluggable effects + 86 structural variants
transforms.py # 9 domain transforms (mirror, kaleidoscope, tile, ...)
postfx.py # 7 buffer-level post-FX (vignette, scanlines, ...)
masks.py # 6 spatial masks (radial, noise, sdf, ...)
flexible/
emotion.py # VAD continuous emotion space (34 anchors)
grammar.py # Stochastic visual grammar
pipeline.py # Main pipeline orchestrator
docs/ # Detailed documentation
skills/viz-ascii-art/ # AgentSkills integration
Documentation
| Doc | Content |
|---|---|
| ai-integration.md | Start here. JSON protocol, capabilities, examples |
| usage.md | CLI args, all commands |
| flexible.md | VAD model, grammar, SceneSpec |
| composition.md | Transforms, masks, PostFX, variants |
| effects.md | 17 effects with params |
| kaomoji.md | 22 moods, 336 faces |
| box_chars.md | 73 gradients, 37 charsets |
| rendering.md | Engine internals |
Development
git clone https://github.com/aaajiao/VIZ.git
cd VIZ
pip install -e ".[dev]"
pytest tests/ -v
python -m build
Published package: aaajiao-viz on PyPI
Runtime dependency: Pillow>=9.0.0. All math is pure Python stdlib (no NumPy). MP4 output requires system FFmpeg.
License
MIT - see LICENSE
Reference
- play.ertdfgcvb.xyz - Inspiration
- play.core - Core reference
Metadata
Release files for aaajiao-viz 0.8.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 |
|---|---|---|---|---|
| aaajiao_viz-0.8.0.tar.gz | 1.5 MB | With provenance | Details for aaajiao_viz-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aaajiao_viz-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for aaajiao_viz-0.8.0-py3-none-any.whl |
Total release size: 3.0 MB
Release files / aaajiao_viz-0.8.0.tar.gz
| Download URL | aaajiao_viz-0.8.0.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94aa93164d8f86e792e869fd6627803facf8f00edcdeb30a0d5ed2a1f00e701e
|
|
BLAKE2b-256 checksum How to use checksums |
f8d2d0bbafd02f9c688bb7aa328bba7aa92000e280f1b6dc269a502fd63623da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 10, 2026.
Transparency logRelease files / aaajiao_viz-0.8.0-py3-none-any.whl
| Download URL | aaajiao_viz-0.8.0-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf15c4367d82f24ef730bbc10426b65df81acefe5475df128b13f08539df3073
|
|
BLAKE2b-256 checksum How to use checksums |
6f6d99e791c43aa6a3b89f49a3e0befdfb3c4addd9acaa8cb3e10cac3789d0cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 10, 2026.
Transparency logSecurity for aaajiao-viz 0.8.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 aaajiao_viz-0.8.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 Apr 10, 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.