Skip to main content

gpyui

PyPI Python 3.12+ License: MIT Documentation

Build native desktop applications in Python with GPUI Kit.

gpyui is a Python UI toolkit for apps, tools and dashboards. Compose layouts, bind state and handle events in Python, using Longbridge's GPUI Kit components. The Rust backend, powered by GPUI, handles native windows, rendering and text editing.

Documentation · Component catalog · Examples · Releases

A native gpyui dashboard in light appearance, with a watchlist, price chart and paper-order controls

A real native window built entirely through the Python API. The trading dashboard example includes simulated quotes, streaming charts and async paper orders. See the documentation for the animated walkthrough.

Why gpyui?

  • Native components: 71 Python controls spanning inputs, tables, charts, navigation, dialogs and feedback, backed by GPUI Kit.
  • Python composition: build layouts with Column, Row, containers and context managers, or pass an explicit tree of controls.
  • State binding: connect application state to text, inputs and selection controls with State and bindings.
  • Async events: use regular functions or async def callbacks; property changes are queued and batched for native updates.
  • Light and dark themes: choose an appearance and style controls with semantic colors, spacing and dimensions.

Installation

Requires CPython 3.12+. On macOS 12+ and Windows, install from PyPI:

uv pip install gpyui

Or use pip install gpyui. Native wheels are available for Intel/x64 and ARM64; Windows ARM64 is tested with Python 3.13+.

On Linux, install the matching prebuilt wheel from GitHub Releases. Linux wheels use system X11, font and Vulkan libraries and are currently distributed separately from PyPI. See the installation guide for runtime dependencies and source builds. Installing a wheel requires no Rust compiler.

Your first app

Save this as hello.py:

from gpyui import Application, Button, Column, Label, TextInput

app = Application(title="Hello, gpyui", width=480, height=300, theme="light")

with app, Column().style(gap=12, padding=24):
    name = TextInput(placeholder="Your name")
    greeting = Label("Enter a name and choose Greet")

    def greet():
        greeting.text = f"Hello, {name.value or 'world'}!"

    Button("Greet", variant="primary", on_click=greet)

app.run()

Run python hello.py. Clicking the native button runs your Python callback and updates the label. Explore layouts, state binding and async events for larger apps.

Documentation and examples

The documentation includes a visual catalog with real native previews, properties, events and runnable examples for every control, plus guides for styling, application lifecycle and release builds.

Try the trading dashboard, component gallery or async binding example.

Project status

gpyui is in early development. The component catalog has initial Python wrappers; specialized Kit APIs are still being exposed. Applications currently use one window and a static mounted control tree. See the coverage and roadmap for supported features and planned work.

Release wheels are tested on Linux, macOS and Windows across x64 and ARM64. Linux/X11 has native interaction tests; macOS and Windows have native window, state and lifecycle smoke tests. See release support for the platform and Python matrix.

Contributing

Issues and pull requests are welcome. Start with the contributor guide for source setup, Ruff, ty, Just and Lefthook, and the architecture for design decisions and pinned upstream dependencies.

License and acknowledgements

gpyui is available under the MIT License. GPUI and GPUI Kit make its native backend possible. The Python API also draws on composition and event patterns from NiceGUI and Flet.

Dependencies retain their own licenses. Distributions include third-party notices.

Metadata

Release files for gpyui 0.1.1

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

Source distribution (sdist)

Source distribution for gpyui 0.1.1
File Size Uploaded Provenance Actions
gpyui-0.1.1.tar.gz 1.6 MB Without provenance Details for gpyui-0.1.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for gpyui 0.1.1
File Actions
gpyui-0.1.1-cp312-abi3-win_arm64.whl CPython 3.12 abi3 Windows ARM64 Details for gpyui-0.1.1-cp312-abi3-win_arm64.whl
gpyui-0.1.1-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for gpyui-0.1.1-cp312-abi3-win_amd64.whl
gpyui-0.1.1-cp312-abi3-macosx_12_0_x86_64.whl CPython 3.12 abi3 macOS 12.0+ x86-64 Details for gpyui-0.1.1-cp312-abi3-macosx_12_0_x86_64.whl
gpyui-0.1.1-cp312-abi3-macosx_12_0_arm64.whl CPython 3.12 abi3 macOS 12.0+ ARM64 Details for gpyui-0.1.1-cp312-abi3-macosx_12_0_arm64.whl

Total release size: 42.4 MB

Release files / gpyui-0.1.1.tar.gz

Download URL gpyui-0.1.1.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
fee0d2ebeda24bce15ea2e4125b33f36de208f52690b5a09d2316d6c75d1abc2
BLAKE2b-256 checksum
How to use checksums
681883b8334315208a51f08166e0d1b38936962efd0116b59e528984af68ff4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / gpyui-0.1.1-cp312-abi3-win_arm64.whl

Download URL gpyui-0.1.1-cp312-abi3-win_arm64.whl
Size 10.7 MB
Tags CPython 3.12 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
d00eeea70733d4429ba18a3a743420e4fe807d51de5682b87127e29b1acdf8d0
BLAKE2b-256 checksum
How to use checksums
5facc825a703ced86685484952b0c0424c77debd949e6f8796e5173ef73e9bfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / gpyui-0.1.1-cp312-abi3-win_amd64.whl

Download URL gpyui-0.1.1-cp312-abi3-win_amd64.whl
Size 11.2 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e4c2e7242e8068b87d0ca03c9fe4c88bad70e88a186fc861236ec0f9997aad6f
BLAKE2b-256 checksum
How to use checksums
ffcbb9c6468ce43bc7dbcfee41798e97a05711a6ce1f5b84f007d927bdedaf78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / gpyui-0.1.1-cp312-abi3-macosx_12_0_x86_64.whl

Download URL gpyui-0.1.1-cp312-abi3-macosx_12_0_x86_64.whl
Size 9.6 MB
Tags CPython 3.12 abi3 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
1cb5a029ff8df1a8b3225898d17428a0148e5e1525db70acb432f9e1f0cccc2f
BLAKE2b-256 checksum
How to use checksums
44897211bd39ae63e92bcca2c6297678cf8c6aa3b96a82f6a8412e6ea38670b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / gpyui-0.1.1-cp312-abi3-macosx_12_0_arm64.whl

Download URL gpyui-0.1.1-cp312-abi3-macosx_12_0_arm64.whl
Size 9.3 MB
Tags CPython 3.12 abi3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
58d1bd89ab563bc126f2aa2b4e743a9ddecfb68202f6d3e0b3faf12c832d4c2b
BLAKE2b-256 checksum
How to use checksums
b575994e3690c1a35650b8b230a63463b110e11592b37bec094044668ca18334
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for gpyui 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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