Skip to main content

Python wrapper for the browser-only Spudzy Vid procedural prompt-to-video generator.

Project description

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

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

Python usage

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

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

Build and publish

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spudzy_vid-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spudzy_vid-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file spudzy_vid-0.1.0.tar.gz.

File metadata

  • Download URL: spudzy_vid-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for spudzy_vid-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a74fd95c0f9cd1bbcfaef56cd57b6c251eaef6da670960c97979baf4cc2f7943
MD5 1eb72e6a63b3805589d781454ffdd6a3
BLAKE2b-256 214e82d05323ddac3c180a8a8d7fb3b898e129c819de085802000eb95c1567ad

See more details on using hashes here.

File details

Details for the file spudzy_vid-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: spudzy_vid-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for spudzy_vid-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c2d55d27fefb9da35630517f911e4b27dfd2f481bf74d69a89558cfee2994c7
MD5 c4f5fc1a0aae0a3141e08ed334568431
BLAKE2b-256 989a9edc67aa54a181c5289b341928e3084b6c2a544d3a12d6047fcb61d7910e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page