Metadata-Version: 2.4
Name: kara-templater
Version: 2.0.0
Summary: Single-path Rust-powered karaoke engine compiling declarative scenes and WGSL shaders into standalone libplacebo Hooks
License-Expression: MIT
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: vendor/runtime-licenses/NOTICE.txt
License-File: vendor/runtime-licenses/README.md
License-File: vendor/runtime-licenses/brotli/LICENSE
License-File: vendor/runtime-licenses/bzip2/LICENSE
License-File: vendor/runtime-licenses/core/LICENSES.txt
License-File: vendor/runtime-licenses/expat/COPYING
License-File: vendor/runtime-licenses/fontconfig/COPYING
License-File: vendor/runtime-licenses/freetype/FTL.TXT
License-File: vendor/runtime-licenses/freetype/GPLv2.TXT
License-File: vendor/runtime-licenses/fribidi/COPYING
License-File: vendor/runtime-licenses/gcc-runtime/COPYING.RUNTIME
License-File: vendor/runtime-licenses/gcc-runtime/COPYING3
License-File: vendor/runtime-licenses/gettext-runtime/COPYING
License-File: vendor/runtime-licenses/gettext-runtime/intl/COPYING.LIB
License-File: vendor/runtime-licenses/gettext-runtime/libasprintf/COPYING
License-File: vendor/runtime-licenses/gettext-runtime/libasprintf/COPYING.LIB
License-File: vendor/runtime-licenses/glib/COPYING
License-File: vendor/runtime-licenses/graphite/COPYING
License-File: vendor/runtime-licenses/graphite/LICENSE
License-File: vendor/runtime-licenses/harfbuzz/COPYING
License-File: vendor/runtime-licenses/iconv/COPYING
License-File: vendor/runtime-licenses/iconv/COPYING.LIB
License-File: vendor/runtime-licenses/iconv/README
License-File: vendor/runtime-licenses/iconv/libcharset/COPYING.LIB
License-File: vendor/runtime-licenses/libpng/LICENSE
License-File: vendor/runtime-licenses/pcre2/COPYING
License-File: vendor/runtime-licenses/pcre2/LICENCE.md
License-File: vendor/runtime-licenses/wgsl/LICENSES.txt
License-File: vendor/runtime-licenses/winpthreads/COPYING
License-File: vendor/runtime-licenses/zlib/LICENSE
Requires-Dist: orjson<4,>=3.11; platform_python_implementation == "CPython"
Dynamic: license-file

# kara-templater v2.0

A single-path, pure-Rust karaoke shader engine with a thin, strongly typed Python API and WebAssembly runtime.

`kara-templater` compiles timed ASS karaoke tracks, declarative vector graphics, and custom WGSL shaders directly into standalone `libplacebo` `.hook` files for `mpv`, FFmpeg, and Vulkan/WebGL renderers—with **zero C++ code** and **zero C font library dependencies** (`libfreetype`, `libharfbuzz`, `libfribidi`, `libfontconfig`).

## Quick start

```python
from kara_templater import Color, Document, Scene, Track, WipeHighlight

doc = Document.load("examples/karaoke.ass")
scene = Scene(width=doc.width, height=doc.height).add(
    Track(
        source=doc,
        font="sans-serif",
        highlight=WipeHighlight(color=Color.hex("#ff5c8a"), pulse="utopia"),
    )
)
scene.export("build/out.hook")
```

Or via the CLI:

```sh
python -m kara_templater examples/karaoke.ass build/out.hook
```

## Documentation

- [Documentation index](docs/README.md) ([中文文档](docs/zh-cn/README.md))
- [Getting started](docs/getting-started.md)
- [Karaoke effects guide](docs/guides/effects.md)
- [WGSL shaders & custom extensions](docs/guides/wgsl-and-extensions.md)
- [API reference](docs/reference/README.md)
- [Contributing & architecture](docs/contributing/README.md)
