Skip to main content

kara-templater

A typed Python library for highly customizable karaoke and animation effects, compiled to standard ASS subtitles. Create text, paths, groups, gradients, particles, and lyric cues using ordinary Python objects and functions.

from kara_templater import (
    CYAN, AnimationClip, Document, Lifetime, Scene, StatePatch,
    TextObject, Tween, Vec2, VisualState,
)

caption = TextObject(
    id="hello",
    text="Hello, ASS!",
    alignment=5,
    lifetime=Lifetime(0, 3),
    state=VisualState(position=Vec2(320, 180), fill=CYAN, opacity=0),
    animations=(AnimationClip(0, 0.5, Tween(StatePatch(opacity=1))),),
)
result = Scene(Document.create(width=640, height=360)).add(caption).compile()
result.document.save("hello.ass")

Python 3.12 or later is required. These docs describe the current checkout. Install a matching wheel or follow the installation instructions.

Learn and create

  • Getting started: install the library and run a complete standalone script.
  • Effect gallery: animated previews, runnable source, and customization points.
  • First custom animation: build a reusable effect with your own function.
  • Guides: objects, lyrics, timing, geometry, materials, particles, compilation, and troubleshooting.
  • API reference: all retained public interfaces, grouped by topic.

Work with existing lyrics

ASS input is parsed into a Document. Track configurations select lyrics and prepare Scene content; custom Scene objects can be added before compilation. Input text, singing clocks, and source records remain separate from appearance. The Track guide explains this workflow.

Apply a recipe with kara-templater input.ass output.ass --effect my_effect.py. See CLI usage.

Output and development

The ASS output loads as an ordinary subtitle file. For GPU playback or video production, export a standalone libplacebo shader. Fonts, renderer support, and event complexity affect playback; see ASS and playback. Complex effects expose budgets and explicit output choices.

Contributing covers development setup, architecture, testing, and release builds. The project and bundled native components have separate license notices in THIRD_PARTY.md.

Metadata

Release files for kara-templater 1.0.0

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

Source distribution (sdist)

Source distribution for kara-templater 1.0.0
File Size Uploaded Provenance Actions
kara_templater-1.0.0.tar.gz 7.5 MB With provenance Details for kara_templater-1.0.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for kara-templater 1.0.0
File Actions
kara_templater-1.0.0-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for kara_templater-1.0.0-cp315-cp315-win_amd64.whl
kara_templater-1.0.0-cp315-cp315-manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.28+ x86-64 Details for kara_templater-1.0.0-cp315-cp315-manylinux_2_28_x86_64.whl
kara_templater-1.0.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for kara_templater-1.0.0-cp314-cp314-win_amd64.whl
kara_templater-1.0.0-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for kara_templater-1.0.0-cp314-cp314-manylinux_2_28_x86_64.whl
kara_templater-1.0.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for kara_templater-1.0.0-cp313-cp313-win_amd64.whl
kara_templater-1.0.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for kara_templater-1.0.0-cp313-cp313-manylinux_2_28_x86_64.whl
kara_templater-1.0.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for kara_templater-1.0.0-cp312-cp312-win_amd64.whl
kara_templater-1.0.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for kara_templater-1.0.0-cp312-cp312-manylinux_2_28_x86_64.whl

Total release size: 34.1 MB

Release files / kara_templater-1.0.0.tar.gz

Download URL kara_templater-1.0.0.tar.gz
Size 7.5 MB
Tags Source
SHA-256 checksum
How to use checksums
ea82fb346696f5d0234a1acceafe2df8a2e89f21eb50627439396b1607a368a8
BLAKE2b-256 checksum
How to use checksums
563480cfbbc0ee89f96d917927d8bdf2f6fa14f8fd6b511c91f91b66847b2938
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 19, 2026.

Transparency log

Release files / kara_templater-1.0.0-cp315-cp315-win_amd64.whl

Download URL kara_templater-1.0.0-cp315-cp315-win_amd64.whl
Size 5.8 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
6cbbd30e1b3141302e2a63c67138b1fbc5e6a6858e56aa56402f12188599d255
BLAKE2b-256 checksum
How to use checksums
8c9911e524e39c17b2a725ded461ec4d91098a58070d0678a0f62ef58f999304
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 19, 2026.

Transparency log

Release files / kara_templater-1.0.0-cp315-cp315-manylinux_2_28_x86_64.whl

Download URL kara_templater-1.0.0-cp315-cp315-manylinux_2_28_x86_64.whl
Size 982.3 kB
Tags CPython 3.15 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
19ea5ea828558ccadedc6ba88ccdc1381c296ec8555f3afa2c41b6a4b067172f
BLAKE2b-256 checksum
How to use checksums
7d13e8b48c98a52e8018b7a4a1d58e88abd0356c1054f0c542e69d027af02944
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 19, 2026.

Transparency log

Release files / kara_templater-1.0.0-cp314-cp314-win_amd64.whl

Download URL kara_templater-1.0.0-cp314-cp314-win_amd64.whl
Size 5.8 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
be48181174ef6965c1512e4b75f2dfd4e9daa7f2e5952ad1d6ce5305d2da86bd
BLAKE2b-256 checksum
How to use checksums
ae05ac33b2db786a340472ecda9d8a573461df0702d058e367b586fbda47fccd
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 19, 2026.

Transparency log

Release files / kara_templater-1.0.0-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL kara_templater-1.0.0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 981.8 kB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
43af9ddfcde9769cdca7925dab294f65a01447d82baaf4f7811fe90a6f491a77
BLAKE2b-256 checksum
How to use checksums
03bba3d988de8629674d7d61ca44d4f0b8103ce1bcd70554e0f7a0a7dfb783f8
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 19, 2026.

Transparency log

Release files / kara_templater-1.0.0-cp313-cp313-win_amd64.whl

Download URL kara_templater-1.0.0-cp313-cp313-win_amd64.whl
Size 5.6 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
b6611909ec56946b68313d58b78bf4c1c988aaac189b4ab625be6af0a4b1b453
BLAKE2b-256 checksum
How to use checksums
45ef82a0a57b8a7e2afff76fa2212a48e48461a6b58104b978fe28d3979ed64d
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 19, 2026.

Transparency log

Release files / kara_templater-1.0.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL kara_templater-1.0.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 981.8 kB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7772f360cc6efc941f4a335d8c0615caa068bd0c95787d8e073f91ed67f2bdf5
BLAKE2b-256 checksum
How to use checksums
c07059c75c6608542396b0abbaeac77564d50eea438f271b5b312c0d1fb8af58
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 19, 2026.

Transparency log

Release files / kara_templater-1.0.0-cp312-cp312-win_amd64.whl

Download URL kara_templater-1.0.0-cp312-cp312-win_amd64.whl
Size 5.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
2f7576e33bfd1d669b0acdbdfefaf8f9773277a3fab23cec8721e067ceb91fd3
BLAKE2b-256 checksum
How to use checksums
5d025fa8e8e15f8f5ff654671e5afae15b68c966067207fc51478da1f2630d9b
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 19, 2026.

Transparency log

Release files / kara_templater-1.0.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL kara_templater-1.0.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 981.7 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
206a679916eacf27845b4a38fa665e04ca19e64ba687d538fb7e10a4df57895d
BLAKE2b-256 checksum
How to use checksums
0940d0e48d509547bda98813fcdf1e461b61eeda2901860a1e247ccae4f77edf
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 19, 2026.

Transparency log

Security for kara-templater 1.0.0

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

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for kara_templater-1.0.0.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 19, 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