Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Kazé

A lightweight terminal UI for queuing and managing VapourSynth encode jobs.

Installation

uv tool install --python 3.15 kazesynth

Examples

The examples folder has small projects, from one job file to a whole season with a job template. Each one has a README that explains its files.

TUI

kaze

Job files and CLI

kaze template ep01.toml writes a job file with comments that list every field. See 01-single-job and 02-movie for full projects.

Example

script = "ep01.vpy"

[[track]]
node = 0
preset = "x265-slow" # from <config>/presets/x265-slow.toml
options = { crf = 16 } # optional: replaces crf from the preset

[[track]]
node = 1
tool = "flac"

[mux]
output = "Episode 01.mkv"

CLI

kaze run ep01.toml          # add the job and run the queue until it is idle
kaze run --background       # the same, in a background process
kaze add ep02.toml --queue night
kaze jobs
kaze cancel 3
kaze retry 3                # done tasks are skipped
kaze stop                   # stop the process that runs jobs

kaze --help lists all the commands. Only one Kazé process runs jobs at a time, and the TUI and the other commands talk to it.

In the TUI, /import adds a job file. It asks for the file, then for the queue, like kaze add FILE --queue NAME.

The settings live in <config>/settings.toml. <config> is the user config folder that platformdirs gives for kazesynth:

OS <config>
Windows %LOCALAPPDATA%\kazesynth
macOS ~/Library/Application Support/kazesynth
Linux $XDG_CONFIG_HOME/kazesynth, or ~/.config/kazesynth

To keep all Kazé files in one folder, set KAZE_HOME. Then <config> is $KAZE_HOME/config.

Job templates

A project file can also have job templates, so you do not write one job file for each episode. A job template is a job file in a [jobs.<name>] table, with {name} placeholders in its strings:

# kaze.toml
[jobs.show]
name = "Show - {ep}"
script = "ep{ep}.py"
queue = "night" # optional: the queue for these jobs
# args = { episode = "{ep}" } # for one script that gets the episode as an argument

[[jobs.show.track]]
node = 0
preset = "x265-show"

[jobs.show.mux]
output = "out/Show - {ep}.mkv"
kaze add show ep=01..12        # 12 jobs; "01" sets the zero padding
kaze add show ep=01..03,07,SP  # ranges and values can mix
kaze add show ep=01..12 ver=v2 # a key with one value gives it to every job
kaze add show                  # find ep from the files that match script
kaze run show ep=05            # kaze run accepts the same items
  • kaze add and kaze run look for templates in the project of the current folder. You can mix job files and templates in one command.
  • Without values, Kazé finds them from the files that match script, in natural order (2 before 10). A placeholder matches any text, so use a pattern that only matches episode scripts: ep{ep}.py or {ep}/main.py, not {ep}.py next to common.py.
  • Every placeholder needs values, and every key must be a placeholder of the template. A typo is an error.
  • Without name, a job is named after the template and its values, like show_01.
  • The queue is --queue, then the queue of the template, then the default queue.
  • {{ and }} give literal braces.
  • The values are copied into each job when you add it, like presets.

In the TUI, /batch shows the jobs of a template before it adds them, and you can skip the ones you do not want.

Project presets

A project can have its own presets. You write them in a kaze.toml file, or in the [tool.kaze.presets.<name>] tables of pyproject.toml:

# kaze.toml
[presets.x265-show]
tool = "x265"
options = { crf = 15, preset = "slower" }

A project preset can build on a global preset, like a job track can:

[presets.x265-slow]
preset = "x265-slow" # the global preset with the same name, or any other global preset
options = { crf = 20 } # replaces only crf

options replace the options with the same name and extra_args come after the arguments of the global preset. The base must be a global preset, not another project preset. A change to the global preset also changes the project presets built on it.

  • Project presets are copied into the job when you add it, like global presets. Editing the file later does not change queued jobs.

  • The TUI uses the project of the folder you open it in, for /presets and /new. /presets shows where each preset comes from, and you can copy a project preset to a global preset there.

    To change or delete a project preset, you must edit the file. Kazé never writes to it.

See 03-series for a kaze.toml project and 04-pyproject for a pyproject.toml project.

Where Kazé looks

What Where
Python python in the job, a .venv or venv next to the script or in a parent, the last one used there, then default_python
Encoder binary binary in the track or preset, then [tools] in the settings, then PATH
Presets the project file, then <config>/presets
Project file the folder of the job file (the current folder for templates and the TUI), then parents; kaze.toml before pyproject.toml
Relative paths the folder of the file that has them: the job file, the preset or the project file
Script paths the folder of the script, because Kazé runs the script there

A binary with a folder part, like tools/x265.exe, is a path. A name without a folder, like x265-mod, is found in PATH. In the TUI, Settings lists each tool and shows whether Kazé can find it.

Flags added for x264 and x265

Kazé reads the props of frame 0 and adds these flags:

Flag From
--output-depth the bit depth of the clip
--colormatrix _Matrix
--transfer _Transfer
--colorprim _Primaries
--range _Range (tv/pc for x264, limited/full for x265)
--input-range (x264 only) _Range
--chromaloc _ChromaLocation
--sar _SARNum and _SARDen
  • A flag you set yourself always wins. -D counts as --output-depth.
  • A missing or unspecified prop sends nothing. Kazé never guesses.
  • If you set --input-range for x264, Kazé does not send --range either.

Metadata

Release files for kazesynth 0.1.0a2

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

Source distribution (sdist)

Source distribution for kazesynth 0.1.0a2
File Size Uploaded Provenance Actions
kazesynth-0.1.0a2.tar.gz 93.7 kB With provenance Details for kazesynth-0.1.0a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kazesynth 0.1.0a2
File Interpreter ABI Platform Actions
kazesynth-0.1.0a2-py3-none-any.whl Python 3 none any Details for kazesynth-0.1.0a2-py3-none-any.whl

Total release size: 219.9 kB

Release files / kazesynth-0.1.0a2.tar.gz

Download URL kazesynth-0.1.0a2.tar.gz
Size 93.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cb308152bc392170644d690c132fe811f008aea0ed547c97bedd7bcba36e9d64
BLAKE2b-256 checksum
How to use checksums
b3401260539fc88ba8c62ea3f87b7aec4c9d9137e67d155cd343fcf45e718bc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Dec 2, 2026.

Transparency log

Release files / kazesynth-0.1.0a2-py3-none-any.whl

Download URL kazesynth-0.1.0a2-py3-none-any.whl
Size 126.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa06e4db9875a4b4558b57eaa3c0ea4ef2dab4b600f70761402bcb7da3bceb28
BLAKE2b-256 checksum
How to use checksums
52257e323c76246e3dd59a0d100344c3049e4a178b3c45861fd3ae2000395aef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Dec 2, 2026.

Transparency log

Security for kazesynth 0.1.0a2

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 kazesynth-0.1.0a2.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 Dec 2, 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