Skip to main content

vexy-stax

Documentation: https://vexy.dev/vexy-stax-py/

Render a deck of layered PNG slides as 3D glass plates — in two views and the transitions between them — from a single shared JSON scene format. This is the offline Python package; a browser sibling (vexy-stax-js) consumes the same scene format. See the repo-level SPEC.md for the binding contract.

This package implements the scene model, geometry math, CLI, and three fully functional render backends: Blender, pygfx, and Playwright.

Install

pip install vexy-stax          # published on PyPI as `vexy-stax`

Or, for a checkout you want to hack on:

uv venv --python 3.12 && uv sync

Concepts

  • A scene is an ordered list of slides (back-to-front; index 0 is farthest from the camera) plus camera, floor, and transition settings.
  • Two views: expanded (angled, plates spaced by gap, captions on) and compact (head-on, plates collapsed to MIN_GAP ≈ 3 pt).
  • A transition morphs between the views (expand, collapse, expand_collapse, collapse_expand), interpolating camera, spacing, and per-slide opacity with a shared easing curve.

CLI

vexy-stax dir2scene assets/ --out scene.json             # generate scene JSON from directory
vexy-stax render    scene.json --view expanded --engine pygfx   --out beauty.png
vexy-stax render    scene.json --view compact  --engine blender --out stack.png
vexy-stax video     scene.json --engine blender --out morph.mp4
vexy-stax overlay   scene.json --out flat.png          # pure-Pillow flat composite
vexy-stax engines                                      # list available engines

Defaults: still ⇒ pygfx, video ⇒ blender. A missing/unimplemented engine fails with an actionable message, not a crash.

Library

from vexy_stax.scene import load_scene
from vexy_stax import geometry as g

scene = load_scene("scene.json")          # validates + resolves slide paths
plan = g.frame_plan(scene)                 # per-frame camera/spacing/opacity
pose = g.expanded_camera(scene)            # CameraPose dataclass

vexy_stax.scene is a strict pydantic v2 model (extra="forbid" everywhere — unknown fields fail loud at the boundary). vexy_stax.geometry holds the pure, engine-agnostic view math (SPEC.md §3), mirrored by the JS geometry.js against shared fixture vectors.

Layout

src/vexy_stax/
├── scene.py        # pydantic v2 scene model + loader
├── geometry.py     # §3 camera/spacing/opacity math (pure, engine-agnostic)
├── engines/        # base.py protocol + registry; blender, pygfx, and playwright renderers
├── images.py       # Composites 2D flat preview overlays using Pillow
├── juicy.py        # Matches colors between 3D renders and 2D overlays
└── cli.py          # fire + rich CLI

Test

uv run pytest -q

License

MIT.

Metadata

Release files for vexy-stax 3.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vexy-stax 3.1.9
File Size Uploaded Provenance Actions
vexy_stax-3.1.9.tar.gz 580.4 kB With provenance Details for vexy_stax-3.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vexy-stax 3.1.9
File Interpreter ABI Platform Actions
vexy_stax-3.1.9-py3-none-any.whl Python 3 none any Details for vexy_stax-3.1.9-py3-none-any.whl

Total release size: 693.6 kB

Release files / vexy_stax-3.1.9.tar.gz

Download URL vexy_stax-3.1.9.tar.gz
Size 580.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d6e303cf78f8e1f8b3743018bdc517acf9b33e23e02cc17fc1c13352294c5493
BLAKE2b-256 checksum
How to use checksums
d5af82005a6595a614285b34af466d71b3909c8b64d6ba54ff9936a828cad538
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 log

Release files / vexy_stax-3.1.9-py3-none-any.whl

Download URL vexy_stax-3.1.9-py3-none-any.whl
Size 113.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
273b138a54c3b665864bce7e708b628fb545f643737984f2924e8b66513476f0
BLAKE2b-256 checksum
How to use checksums
268a628ea3784a361ba1aefa72fb729fb6684fe3d1b74952901d5d350e26a868
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 log

Security for vexy-stax 3.1.9

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.

Select from 2 files

Attestation for vexy_stax-3.1.9.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 log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page