Skip to main content

gpui-bridge (Python)

Native desktop UIs with GPUI and gpui-kit, driven from Python. A Rust host owns the window, the event loop and the component tree; this client describes the UI as operations on that tree and receives events. Standard library only.

from gpui_bridge import App

app = App()
count = 0

root = app.div(class_="flex flex-col items-center gap-4 p-6 size-full")
label = app.text(content="0", class_="text-xl font-bold")

def add(_event=None):
    global count
    count += 1
    label.set(content=str(count))
    app.commit()

root.append(label, app.button(label="Add", variant="primary").on("click", add))
app.window(title="Counter", width=320, height=200, root=root)
app.commit()
app.run()

Install

pip install gpui-bridge

Requires Python 3.10+. The wheel is built per platform and carries an optimized gpui-bridge-host binary, so its tag names that platform (py3-none-win_amd64, py3-none-macosx_11_0_arm64, py3-none-manylinux_2_35_x86_64) and no Rust toolchain is needed at runtime. Those three are the platforms with a wheel; the host has been drawn in a real window only on Windows so far.

class is a Python keyword: write class_="...", and the client strips the trailing underscore. Props and events are keyword arguments, and every node has append, insert_before, set, remove, on and off.

Host lookup

  1. $GPUI_BRIDGE_HOST
  2. gpui_bridge/bin/gpui-bridge-host[.exe] inside the installed package
  3. A Cargo build in target/debug or target/release, searched upwards (a checkout)

Protocol version 1. MIT licensed.

Metadata

Release files for gpui-bridge 0.6.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 gpui-bridge 0.6.0
File Interpreter ABI Platform Actions
gpui_bridge-0.6.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for gpui_bridge-0.6.0-py3-none-win_amd64.whl
gpui_bridge-0.6.0-py3-none-manylinux_2_35_x86_64.whl Python 3 none Linux glibc 2.35+ x86-64 Details for gpui_bridge-0.6.0-py3-none-manylinux_2_35_x86_64.whl
gpui_bridge-0.6.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for gpui_bridge-0.6.0-py3-none-macosx_11_0_arm64.whl

Total release size: 24.6 MB

Release files / gpui_bridge-0.6.0-py3-none-win_amd64.whl

Download URL gpui_bridge-0.6.0-py3-none-win_amd64.whl
Size 6.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
b70123f7fb4dc79da969ffc77d6df718712d4b69f1e93dc26eccdc7a17cc33fc
BLAKE2b-256 checksum
How to use checksums
a427ca74d967c4fa9ecb34ae386396c2769cd5b06d21c256f0bf740b0b96b9ab
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 7, 2026.

Transparency log

Release files / gpui_bridge-0.6.0-py3-none-manylinux_2_35_x86_64.whl

Download URL gpui_bridge-0.6.0-py3-none-manylinux_2_35_x86_64.whl
Size 11.4 MB
Tags Linux glibc 2.35+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a54e9e9860424771c59fddcd34443e46553af91a3a9376e5d396b053db227054
BLAKE2b-256 checksum
How to use checksums
228267d7c2f3658e2a47becefb2e1ba460dbc31a3a90b4224f1b424a0c5792c4
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 7, 2026.

Transparency log

Release files / gpui_bridge-0.6.0-py3-none-macosx_11_0_arm64.whl

Download URL gpui_bridge-0.6.0-py3-none-macosx_11_0_arm64.whl
Size 6.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f504bbb7baa145d0aec3e35ce88fbad27f2222eceb10a9c14c2b8a8377e90a91
BLAKE2b-256 checksum
How to use checksums
2741da7aa0d25051083b5e965d6c30d56138c1cb1a2f7770085ae452a7db4a2c
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 7, 2026.

Transparency log

Security for gpui-bridge 0.6.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 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for gpui_bridge-0.6.0-py3-none-win_amd64.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 7, 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