Metadata-Version: 2.4
Name: spudzy-vid
Version: 0.1.0
Summary: Python wrapper for the browser-only Spudzy Vid procedural prompt-to-video generator.
Author: Spudzy Vid Package Author
License: MIT
Project-URL: Homepage, https://alaricholt677.github.io/PKGS/spudzy-vid/spudzy-vid-js.js
Keywords: video,canvas,mediarecorder,prompt-to-video,playwright
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: playwright>=1.45
Dynamic: license-file

# spudzy-vid

Python wrapper for **Spudzy Vid / RealLifeVideo**.

It loads this browser-only JavaScript file:

`https://alaricholt677.github.io/PKGS/spudzy-vid/spudzy-vid-js.js`

Because the JavaScript uses browser APIs like `Canvas`, `canvas.captureStream`, and `MediaRecorder`, the wrapper runs it inside Chromium with Playwright, then returns the video data to Python and can save a `.webm` file.

## Install locally

```bash
python -m pip install -e .
python -m playwright install chromium
```

## Python usage

```python
from spudzy_vid import generate

result = generate(
    "make a dragon fly in the rain in an rpg game with the effect fire",
    output="dragon.webm",
    seconds=6,
    width=960,
    height=540,
    fps=30,
)
print(result["ok"], result["correctedPrompt"], result["output"])
```

## CLI usage

```bash
spudzy-vid "recreate this futuristic UI being used in a video" -o ui.webm --seconds 6
```

## Build and publish

```bash
python -m pip install -U build twine
python -m build
python -m twine upload dist/*
```
