Installation¶
yugui isn't on PyPI yet. You build it from a checkout of its repository, which compiles its Rust extension and iced along with it.
What you need¶
- Python 3.12 or later.
- uv, which creates the project's virtual environment and builds the extension.
- Rust 1.88 or later, from rustup. The first build compiles iced and its dependencies, which takes a few minutes; later builds are quick.
- macOS or Linux. yugui isn't built or tested on Windows yet. On Linux, apps need X11 or Wayland at run time, as any desktop has. iced draws with the GPU (through Vulkan, Metal or OpenGL), and in software when there's no GPU.
Build it¶
From a checkout of the repository:
This creates .venv/, compiles the extension, and installs yugui in development mode with the tools used to work on it.
Check it works¶
Run an example:
A window with a counter opens. To see all the examples and launch any of them with a click:
And run the tests, which open no windows:
Use it in your own project¶
Until yugui is on PyPI, build a wheel and install it where you need it:
make wheel # writes dist/yugui-*.whl
uv pip install dist/yugui-*.whl # in your project's environment
The wheel works with any CPython from 3.12 on, on the platform it was built on.
Next: the tutorial.