pyUI
pyUI is a small Python toolkit for building simple user interfaces with labels, buttons, text-entry fields, and images. It provides one simple API with different rendering options depending on the Python environment.
Quick example
import pyui
pyui.label("Hello!")
name = pyui.entry("Your name")
pyui.button("Say hello", lambda: print("Hello", name.get()))
pyui.show("My first pyUI app")
This example creates a label, a text-entry field, and a button. Pressing the button prints the entered name.
What is included?
- Labels for displaying text
- Buttons for running a callback when pressed
- Entry fields with simple
get()andset()methods - Images for displaying supported image objects or PNG file paths
- Widget clearing for removing existing widgets
- A
show()function to display the interface
The toolkit is designed to make simple interfaces easier to write. It is not a drop-in replacement for Tkinter, Kivy, or every other UI framework, and it does not currently offer every feature those frameworks provide.
Where does it run?
pyUI uses a renderer appropriate to the environment:
- Desktop Python: uses Tkinter when it is available.
- PyPhone: can use PyPhone's native
uimodule when that module is already loaded. - Other Python environments: require a compatible backend. Browser-hosted Python environments expose different APIs, so desktop windows are not guaranteed to work everywhere.
pyUI does not require PyPhone. The PyPhone renderer is an optional integration, not a requirement for the whole toolkit.
Images and HeliOS
HeliOS is optional. If you have both libraries, you can pass a HeliOS image to pyUI:
import pyui
import helios
art = helios.new("RGB", (100, 100), (255, 0, 0))
pyui.image(art)
pyui.show("Image preview")
A PNG file path can also be passed to pyui.image().
Contributing
Bug reports, reproducible examples, and suggestions are welcome. When reporting a problem, include your Python version, the environment or backend you're using, and the full error message when possible.
Metadata
Release files for pyui-toolkit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyui_toolkit-0.1.0.tar.gz | 4.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyui_toolkit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / pyui_toolkit-0.1.0.tar.gz
| Download URL | pyui_toolkit-0.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae6735ac9e2b161f1fa536849277f290178be6aadcb7f438d0c0838be8b10abd
|
|
BLAKE2b-256 checksum How to use checksums |
df93371dfad439add2cbdbef21aef5410fde7a9d125565fd308c1781cce645c6
|
| 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 logRelease files / pyui_toolkit-0.1.0-py3-none-any.whl
| Download URL | pyui_toolkit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e47635f46c27df7a962dd454e597ca1cccbf098da67fe3d51171e2ba851caa30
|
|
BLAKE2b-256 checksum How to use checksums |
01b90e97c66b10728f4c2982738d682ece14d576aefb92abb31462cd9e1be84b
|
| 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 logSecurity for pyui-toolkit 0.1.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 2 files in this release have been uploaded with provenance metadata.
Attestation for pyui_toolkit-0.1.0.tar.gz
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 logA 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.