Skip to main content

Pyzed

English · Español

Modern, fast desktop GUIs in Python, drawn natively by Iced (Rust). Components inspired by the Zed editor, a visual designer in the spirit of Godot and Unreal, node-based shaders, animations, games and built-in AI agents. A modern alternative to tkinter, PyQt, Kivy and Flet.

PyPI Python CI License: MIT

📖 Documentation · ⬇️ Download Pyzed Design · 🧩 Component library · 📰 Changelog

Pyzed Design with a sign-in form open

What is Pyzed

  • Native performance. Python describes the interface; layout, text and drawing are done by Iced 0.14 in Rust (wgpu on the GPU, tiny-skia on the CPU as a fallback). import pyzed takes about 35 ms.
  • Simple. The Elm architecture: state, update and view. A button can call a method directly (on_press=self.save), and update accepts coroutines, generators and streams.
  • More than 90 components ready to use: buttons, forms, virtual tables with hundreds of thousands of rows, file tree, tabs, command palette, code editor, terminal, custom window frame, charts… They all follow the current theme.
  • Pyzed Design, a visual designer installed as an app: draw forms and components, write their code with completion and diagnostics, build node-based shaders and run it all with F5.
  • Effects and animations: animate any property, transitions between windows, glow, bloom, blur, glass and WGSL shaders with pz.shader.
  • Games: a game loop (pz.frames), held keys, sprites and particles with pyzed.game.
  • AI: an agent panel inside Pyzed Design (Claude, OpenAI, Gemini, Copilot, local models…), pyzed.agents for your own apps and an MCP server so any agent can build apps with Pyzed.
  • Zed themes: One, Ayu and Gruvbox included, any Zed theme, generated themes and the system's light/dark mode.
  • Cross-platform: Linux, macOS and Windows (x86-64 and ARM). IBM Plex fonts and about 2000 Lucide icons included.
  • Headless screenshots: app.screenshot("ui.png") renders without a GPU or a display, ideal for tests and docs.
Showcase: game HUD Glass dashboard
A game HUD made with Pyzed A control panel with a glass effect
Main menu with shaders Neon Invaders
A synthwave main menu The Neon Invaders game

Installation

You need Python 3.10 or newer. There are wheels for Linux (glibc and musl), macOS and Windows, so Rust is not needed.

uv add pyzed-ui                  # in a uv project
pip install pyzed-ui             # inside an activated virtual environment
python3 -m pip install pyzed-ui  # with the system Python (on Windows: py -m pip install pyzed-ui)

Optional extras: pyzed-ui[mcp] (MCP server) and pyzed-ui[agents] (AI agents in your apps).

The package is pyzed-ui on PyPI and is imported as pyzed. It is not related to the pyzed module of the Stereolabs ZED camera SDK.

Pyzed Design is installed separately as an app, with installers for Windows and macOS and a script for Linux, and it updates itself: see Download Pyzed Design.

Quick start

import pyzed as pz
from pyzed import ui


class Counter(pz.App):
    title = "Counter"
    size = (360, 220)

    def __init__(self):
        self.count = 0

    def update(self, message):          # messages can be any Python value
        if message == "increment":
            self.count += 1
        elif message == "decrement":
            self.count -= 1

    def view(self):
        return pz.center(
            pz.column([
                ui.heading(str(self.count)),
                pz.row([
                    ui.button("1", "decrement", icon="minus"),
                    ui.button("1", "increment", icon="plus", variant="solid"),
                    # ...or a callable, which is called directly
                    ui.icon_button("rotate-ccw", lambda: setattr(self, "count", 0), tooltip="Reset"),
                ], spacing=8),
            ], spacing=16, align="center"),
            bg=self.theme.editor,
        )


pz.run(Counter)
Counter

Continue with the quick start and the basic, intermediate and advanced tutorials.

A complete project

pyzed new my-app          # a uv project: UI in ui/, backend in src/, ruff, ty and git
cd my-app
uv run pyzed design       # opens Pyzed Design on the project
uv run pyzed dev main.py  # hot reload: the window updates on save and keeps its state
uv run pyzed build        # an executable for this platform

More in Create a project and Distribute.

Pyzed Design

A visual designer made with Pyzed, with Zed's interface: drag components onto a grid with anchors, edit their properties and styles, double-click to write the code of each event and press F5 to run it.

Welcome screen with sample projects Node-based shaders, like in Godot
The Pyzed Design welcome window The Shader view with a node graph
  • Form, component, shader and code views, with tabs that can be torn off into their own window.
  • A Zed-grade code editor: completion with ty, diagnostics with ruff, multiple cursors, find and replace, folding, minimap, configurable shortcuts and IME.
  • Project: a file tree with Zed's menu, file search, dependencies with uv and a terminal.
  • Custom components with typed properties, inheritance, data binding and validation.
  • A built-in AI agent that reads the project, creates forms and complete apps and drives the editor through Pyzed's MCP.
  • It updates itself, like Zed, with a what's-new tab.

Full manual in Designer and Shading.

Components

Component gallery

Every component has its own page with all its variants, examples and API in the library. There are also ready-to-copy blocks: sign-in screens, settings, dashboards…

Any widget has the usual events of a GUI builder (click, double_click, drag, key_down, resize…), and custom components are classes with annotated props, state and events:

class Rating(pz.Component):
    value: int = 0
    events = {"change": "A star was picked"}

    def render(self):
        return pz.row([pz.text("★" if i <= self.value else "☆").on(click=lambda i=i: self.emit("change", i))
                       for i in range(1, 6)])

AI

  • Agent panel in Pyzed Design: sign in to Claude in the browser or with your subscription, or use OpenAI, Gemini, GitHub Copilot, Vertex AI, OpenRouter, Ollama and more. Attach images, connect external MCP servers or ACP agents (Gemini CLI, Codex…).

  • MCP server (pyzed mcp): Claude, Cursor, VS Code and other agents look up the exact API, generate and check apps and see a screenshot of the result.

    claude mcp add pyzed -- uvx --from "pyzed-ui[mcp]" pyzed mcp
    
  • pyzed.agents to add an agent with tools to your own apps.

See AI. For language models, the whole documentation is also available as llms.txt.

Integrations

Tutorials and runnable demos with FastAPI, SQLAlchemy, SQLModel, Django, httpx and Pydantic: where each thing runs (UI thread, asyncio loop, worker threads) and how to show validation errors in forms. The code is in examples/integrations.

Why Pyzed?

Comparisons with tkinter, Qt, Kivy, Flet, Dear PyGui and Toga, with measured, reproducible benchmarks of startup, memory, updates and installed size (benchmarks/).

Examples

Folder or file What it shows
examples/counter.py, todo.py The basics: state, messages, forms and lists.
examples/gallery.py Every component, interactive, with a theme picker.
examples/zed_editor.py A complete code editor over a real folder.
examples/showcase/ Game HUD, main menu, inventory, glass dashboard and shader gallery.
examples/games/ Snake, Breakout and Neon Invaders.
examples/integrations/ FastAPI, SQLAlchemy, SQLModel, Django, httpx, Pydantic and aiosqlite.
examples/effects.py, animations.py Visual effects and animations.
examples/window_frame.py A custom window frame with each platform's menus and buttons.
examples/ai_chat.py A chat with an AI agent.
examples/designer/ A Pyzed Design form (.pzform + .py).
examples/tutorial/, hot_reload/ Step-by-step tutorial and hot reload.

They all run with python examples/<file>.py (or uv run). More in Examples.

How it works

Python                         Rust (pyzed._core, PyO3)                 Iced 0.14
App.view() ──► Widget tree ──► render.rs: Widget → iced::Element ──► layout + wgpu/tiny-skia
App.update() ◄── messages ◄────── app.rs: Message, Command → Task ◄──── events (mouse, keyboard)

Widgets are immutable Rust objects, so building the view from Python is cheap. The internal state of each editor lives in Rust and the GIL is released while the event loop runs. More in Architecture.

Developing Pyzed

git clone https://github.com/albakore/pyzed && cd pyzed
uv sync                     # builds the Rust core (1.88 or newer) and installs pyzed in editable mode
uv run pytest tests
uv run python examples/gallery.py

See CONTRIBUTING.md. Pyzed follows semantic versioning since 1.0; the policy and known limitations are in Stability.

License

MIT. The bundled fonts are IBM Plex (SIL Open Font License) and Lucide (ISC); their licenses are in assets/fonts. The One, Ayu and Gruvbox themes come from the Zed repository (MIT); see python/pyzed/zed_themes/LICENSE.

Metadata

Release files for pyzed-ui 1.8.0

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

Built distributions (wheels)

Table of built distributions (wheels) for pyzed-ui 1.8.0
File
pyzed_ui-1.8.0-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details
pyzed_ui-1.8.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pyzed_ui-1.8.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
pyzed_ui-1.8.0-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details
pyzed_ui-1.8.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
pyzed_ui-1.8.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
pyzed_ui-1.8.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
pyzed_ui-1.8.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 119.2 MB

Release files / pyzed_ui-1.8.0-cp310-abi3-win_arm64.whl

Download URL pyzed_ui-1.8.0-cp310-abi3-win_arm64.whl
Size 12.3 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
1b0da0ae13aa2b923970e10ac65bfcf477fa52286a93e6a23ea25ba0a32e81cd
BLAKE2b-256 checksum
How to use checksums
c9770839889e41eb4f39b122000cf1eef7aad4f9ffa7a766a26a3a87eb1b2c44
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 Oct 22, 2026.

Transparency log

Release files / pyzed_ui-1.8.0-cp310-abi3-win_amd64.whl

Download URL pyzed_ui-1.8.0-cp310-abi3-win_amd64.whl
Size 14.6 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
aed74c5c2f8d99500f6dc20b2b8c69fc2deb3603e10f898dc4fbd4b4ce548c89
BLAKE2b-256 checksum
How to use checksums
00181c7ea4baf44da46702a2ca1b11640f3e0984df5c36cace6fb07867a36255
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 Oct 22, 2026.

Transparency log

Release files / pyzed_ui-1.8.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL pyzed_ui-1.8.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 17.2 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
734eedc0c11568cb7076e5d38fffeffefd99cced0d298cb65009c75588c38bc2
BLAKE2b-256 checksum
How to use checksums
99824ec91a34779487a98d01dfcc3c6e128fb8f538574612a348963ff9455249
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 Oct 22, 2026.

Transparency log

Release files / pyzed_ui-1.8.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL pyzed_ui-1.8.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 16.3 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
d344d002eccc4368ee3d9c5487755509407358f80b52460f0b3f1ae178dc2b32
BLAKE2b-256 checksum
How to use checksums
f6efc6e4e65f8a72e395e426030ae1a1fc9c03a32278fa6675fac2e56fd38dd9
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 Oct 22, 2026.

Transparency log

Release files / pyzed_ui-1.8.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL pyzed_ui-1.8.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 17.8 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
5ac774327138dbd5dac5f3cfb47251ec1fa9c4d07dd350f7c5c5ad5d35d06bc1
BLAKE2b-256 checksum
How to use checksums
b9b0df387ae7948c0c26c2f3e584d3dd2ab006e6f5f38e9af7607748076f70a5
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 Oct 22, 2026.

Transparency log

Release files / pyzed_ui-1.8.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL pyzed_ui-1.8.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 15.5 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
d5c10f33b3730043d7109e49a7d9427afb896842d2e601e02e070c65aad898bb
BLAKE2b-256 checksum
How to use checksums
15d61de20b1804030ef34fb516a8a0fc142e544fb47edb911aaaef35ca635397
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 Oct 22, 2026.

Transparency log

Release files / pyzed_ui-1.8.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL pyzed_ui-1.8.0-cp310-abi3-macosx_11_0_arm64.whl
Size 13.2 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
eea090aae5f41a3b6ccf30778f63e12df5abfb343c7a6f68d9778039298da8ea
BLAKE2b-256 checksum
How to use checksums
69b32a7109b137f3455594c5af51c6b172e72c54d1828091ad2df8ceedd51077
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 Oct 22, 2026.

Transparency log

Release files / pyzed_ui-1.8.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL pyzed_ui-1.8.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 12.3 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e8436eed7f0bc26531289e8edc8ee4780374c38d0164cfcb243d4920a5743c09
BLAKE2b-256 checksum
How to use checksums
ecb93032250c6c9f319fa5c4e5a203dc110d0873271416cd8a276f6e96918982
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 Oct 22, 2026.

Transparency log

Security for pyzed-ui 1.8.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 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for pyzed_ui-1.8.0-cp310-abi3-win_arm64.whl

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 Oct 22, 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.

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