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

Dragging a button, a text box and a check box from the toolbox onto a form in Pyzed Design

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.
A game HUD made with Pyzed
Showcase: game HUD
A control panel with a glass effect
Glass dashboard
A synthwave main menu
Main menu with shaders
A synthesizer made with Pyzed playing notes, with moving knobs, oscilloscope and spectrum
Audio: a synth with knobs, scope and spectrum

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)

The counter: + 1 three times, − 1 once, then Reset

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.

The Pyzed Design welcome window
Welcome screen with sample projects
Building a shader by connecting nodes in the Shader view, with a live preview
Node-based shaders, like in Godot
The Events panel and a form dragged to other docks, with the target lit up
Any tab goes anywhere
A Timer dropped on a form lands in the tray and is listed under Non-visual in the Outline
Non-visual components go to the tray
  • 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

See them in motion (click one to open its page):

A Save button with its shortcut, hovered and pressed
Button
Typing in text fields with icons
Input
Opening a drop-down and picking an option
Select
Dragging two sliders
Slider
Turning switches on and off
Switch
Notifications appearing, with an action button
Toast
Filtering commands as you type
Command palette
A context menu with shortcuts and a check mark
Menu
Expanding folders in a file tree
Tree
Picking a date range in a two-month calendar
Calendar
Expanding and collapsing sections
Accordion
Typing in the code editor with syntax highlighting
Code editor
Buttons, a switch, a slider and tabs reacting to the pointer
Hover, press, focus and tooltips
A sign-in form showing an error for an invalid email
Forms with validation

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)])

Animations and effects

Animate any property with presets, keyframes and timelines, move between views with transitions and add glow, particles or your own WGSL shaders. See Animation and Shading.

A dashboard whose cards fade in one after another, with a recording badge and a spinner
Presets, hover and stagger
Plasma, tunnel, fire, Voronoi, synthwave and nebula shaders moving
Shaders with pz.shader
A sidebar that widens and narrows smoothly
Transitions
Particle bursts, a fountain, glowing particles and a trail
Particles

Games

Every game in examples/games has a step-by-step tutorial in Games.

The Snake game being played
Snake
The Breakout game: the ball breaks rows of bricks
Breakout
Neon Invaders: a ship shooting at waves of aliens
Neon Invaders
A platformer: a character runs, jumps and collects coins
Platformer
Asteroids: a ship turns and shoots at rocks
Asteroids
The 2048 puzzle: tiles slide and merge
2048

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.

People

Pyzed grows with the people who use it. Thank you!

Maintainer

albakore
Kevin Kener

Contributors: thanks to everyone who reports bugs, proposes features and sends code.

nimakor
nimakor

See People for what each person did.

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.16.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.16.0
File Actions
pyzed_ui-1.16.0-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for pyzed_ui-1.16.0-cp310-abi3-win_arm64.whl
pyzed_ui-1.16.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for pyzed_ui-1.16.0-cp310-abi3-win_amd64.whl
pyzed_ui-1.16.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for pyzed_ui-1.16.0-cp310-abi3-musllinux_1_2_x86_64.whl
pyzed_ui-1.16.0-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for pyzed_ui-1.16.0-cp310-abi3-musllinux_1_2_aarch64.whl
pyzed_ui-1.16.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for pyzed_ui-1.16.0-cp310-abi3-manylinux_2_28_x86_64.whl
pyzed_ui-1.16.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for pyzed_ui-1.16.0-cp310-abi3-manylinux_2_28_aarch64.whl
pyzed_ui-1.16.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for pyzed_ui-1.16.0-cp310-abi3-macosx_11_0_arm64.whl
pyzed_ui-1.16.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for pyzed_ui-1.16.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 127.1 MB

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

Download URL pyzed_ui-1.16.0-cp310-abi3-win_arm64.whl
Size 14.5 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
b4d6778289569f5e676738f1ddcd729db3c7710d559167999e70e760dc0585e3
BLAKE2b-256 checksum
How to use checksums
df82904fc0ed069cb400370c295476ce2b5b867f2f0cbf646a61ece323cde97a
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 29, 2026.

Transparency log

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

Download URL pyzed_ui-1.16.0-cp310-abi3-win_amd64.whl
Size 15.2 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f5f061626eb7b7b0c3e4914caf4a3dc8b04f61befdf1bde8f2f0ac089847dfce
BLAKE2b-256 checksum
How to use checksums
7a1ebac80fc8927ed8232c6a4642bf8dd3ed2b6ad07b11b1898706e22583b2e7
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 29, 2026.

Transparency log

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

Download URL pyzed_ui-1.16.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 17.5 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
eb8f63ef0355ee35060366ae54a008113461c0e707e44859ea9674f83731a66f
BLAKE2b-256 checksum
How to use checksums
3067569a23707b7bde94e1710915cf04f86715583385343eb38655af7429b088
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 29, 2026.

Transparency log

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

Download URL pyzed_ui-1.16.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 16.6 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
e502c94e729512190b5657bdc7337b9d094391f8891481ca527c4d4953719555
BLAKE2b-256 checksum
How to use checksums
7c7f01e86949bffd55ca0f10a1612fbf2e530830b1bf7aaf87ef128fcf4e8f6f
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 29, 2026.

Transparency log

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

Download URL pyzed_ui-1.16.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 18.0 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
3e016b6ea4621500da95ec46cc7983c3ccc4b94180b1ca6027443ee40ed3a070
BLAKE2b-256 checksum
How to use checksums
23ce95dd4b6ca55f3702a1aa07e2d16039306a621383aecc933d54385e88dbb3
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 29, 2026.

Transparency log

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

Download URL pyzed_ui-1.16.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 17.2 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
eddcfecf2b9c64655ae4cbc596c992f2375ce7888be9b7ff23310275d275c801
BLAKE2b-256 checksum
How to use checksums
fe9828a5bbe10d81a5362288e098792430f6075d4bd3e5e70f34feb60ceaf94d
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 29, 2026.

Transparency log

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

Download URL pyzed_ui-1.16.0-cp310-abi3-macosx_11_0_arm64.whl
Size 13.7 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a31d2d5dd34a5cb0c619fce315488d648ae947302bb38d992395b2b2651b31a6
BLAKE2b-256 checksum
How to use checksums
2c1776b050b2c2f3b71cd546d37b769fbb3b50f280cdfde468178bfec064cc10
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 29, 2026.

Transparency log

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

Download URL pyzed_ui-1.16.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 14.3 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c2e8ec4d66548239f76c5d72de438144e369c4bea1cfe9271cef98933f7d6fa7
BLAKE2b-256 checksum
How to use checksums
55fc8342155718b7a5e07f544d7aa69878185364588433ae92778194d445534e
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 29, 2026.

Transparency log

Security for pyzed-ui 1.16.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.16.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 Nov 29, 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