Reusable Betza notation parser and movement diagram visualizer.
Project description
betza-visualizer
Visualizes fairy chess piece movements from their Betza notation.
The project contains:
- a reusable dependency-free Python package, importable as
betza_visualizer - a Python Textual TUI frontend
- a browser frontend using TypeScript, HTML, CSS, and SVG
Python library usage
The core parser and SVG renderer have no runtime dependencies:
from betza_visualizer import BetzaParser, BetzaSvgOptions, render_betza_svg
moves = BetzaParser().parse("BN", board_size=11)
svg = render_betza_svg("BN", BetzaSvgOptions(piece_label="A", title="Archbishop movement"))
The generated SVG string is intended to be embedded directly into documentation pages.
Optional TUI dependencies
The Textual frontend needs optional dependencies:
pip install 'betza-visualizer[tui]'
python main.py
Development
pip install -e '.[dev]'
python -m pytest tests/python_unittests
Publishing
The package metadata is defined in pyproject.toml. A local wheel can be built with:
python -m build
Almost everything in this repository made by using Google AI tools.
Google AI Studio, gemini-cli, Google Labs Jules using gemini-2.5-pro, gemini2.5-flash
codex-cli using gpt-5.4-codex, gpt-5.5-codex
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file betza_visualizer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: betza_visualizer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4314f5f2682b8c683bac4849c448cceee51cc206a0699f95ee5778e85ca95cf6
|
|
| MD5 |
bb14f8697652c41e1a9b3e24806a1164
|
|
| BLAKE2b-256 |
c38d88d804df663beee529ff4d080bde345e5c39b0de47093e21757b0da50b17
|