slint/api/python/compiler/README.md
Simon Hausmann 75052fb902 Python: Add wrapper for Slint Compiler
This permits invoking the Slint compiler conveniently via `uvx
slint-compiler` or `pipx slint-compiler`.

cc #4136
2025-07-11 14:07:56 +02:00

779 B

Python Slint Compiler

This package is a wrapper around Slint's compiler for Python, to generate a typed .py file from a .slint file, for use with Slint for Python.

When run, the slint compiler binary is downloaded, cached, and run.

By default, the Slint compiler matching the version of this package is downloaded. To select a specific version, set the SLINT_COMPILER_VERSION environment variable. Set it to nightly to select the latest nightly release.

Example

uxv run slint-compiler -f python -o app_window.py app-window.slint