Python bindings for Wry/Tao
Project description
Wry Py
Python bindings for Wry for building desktop apps with webviews.
Install
pip install wry_py
Linux needs GTK/WebKitGTK:
# Debian/Ubuntu
sudo apt install libgtk-3-dev libwebkit2gtk-4.1-dev
# Arch
sudo pacman -S gtk3 webkit2gtk-4.1
Quick Start
from wry_py import UiWindow, div, text, button
count = 0
def increment():
global count
count += 1
render()
def render():
root = (
div()
.size_full()
.v_flex()
.items_center()
.justify_center()
.gap(20)
.child_builder(text(f"Count: {count}").text_size(32))
.child_builder(
button("Increment")
.padding(10, 20)
.bg("#3b82f6")
.text_color("#fff")
.on_click(increment)
)
.build()
)
window.set_root(root)
window = UiWindow(title="Counter", width=400, height=300)
render()
window.run()
Examples
# Counter
python -m examples.counter
# Todo list with dialogs
python -m examples.todo_list
# Hover, focus, and transitions
python -m examples.styles
Development
git clone https://github.com/Jacob-Walton/wry_py.git
cd wry_py
pip install maturin
maturin develop --release
Docs
https://jacob-walton.github.io/wry_py/
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wry_py-0.1.5.tar.gz.
File metadata
- Download URL: wry_py-0.1.5.tar.gz
- Upload date:
- Size: 32.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d3f0fb9eec5deccf75c8bca3f1d4e62944e16b30268876f990ec8b3f20391ff
|
|
| MD5 |
fc1703b6f2f221fcbf01b251e1471cf4
|
|
| BLAKE2b-256 |
69a1751d140bf8c76eda86bf102cb1df26f8154963c093a9eb2be5e11c72937a
|
File details
Details for the file wry_py-0.1.5-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 546.7 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
160d7c3aef62b6cff87b5d755070034c5eb76ca4c4d317da09a8f405671432f4
|
|
| MD5 |
4f7b76b622db2b7cf9a46d1270f263f4
|
|
| BLAKE2b-256 |
d949be36ff9da8ba63f9b0f9303b53b9cb8f9897c498f2c3ba465dd576c6e2bd
|
File details
Details for the file wry_py-0.1.5-cp314-cp314-win32.whl.
File metadata
- Download URL: wry_py-0.1.5-cp314-cp314-win32.whl
- Upload date:
- Size: 503.3 kB
- Tags: CPython 3.14, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17ae247e5c6c7c2fc28b17c1a899a42a302c04be0e0a122693e65dfa86b57b11
|
|
| MD5 |
9803075ea3d28aa85e992cdae6ec4068
|
|
| BLAKE2b-256 |
50b5475832527c6d7937b2e3a0056570cf1fd43e9f9926cf73ac87104f495e05
|
File details
Details for the file wry_py-0.1.5-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 796.2 kB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19de25a08d877d744765c41aedbe11406cfdc098a844ddb3854c8e53f49928fe
|
|
| MD5 |
c6b02885ca307fb52b825a6da3aeb350
|
|
| BLAKE2b-256 |
b09879bf1c58ce0390fb6ac62210dac9737bb75c6de02785064adb08a8d2f63b
|
File details
Details for the file wry_py-0.1.5-cp314-cp314-macosx_10_12_x86_64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp314-cp314-macosx_10_12_x86_64.whl
- Upload date:
- Size: 815.1 kB
- Tags: CPython 3.14, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
286b67d5878b4f2796f3639677884eea9def64b79fb6b8e83e03e08a6ec0cd9d
|
|
| MD5 |
aabe4f643440870765008ab1bdfbff16
|
|
| BLAKE2b-256 |
4cdcb93277a58df3d8f101cde1987b22017f53ac646e103bfd7f198943e2f07d
|
File details
Details for the file wry_py-0.1.5-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 554.6 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0745d1a7985a0dec487d7faa0ac61be6de6284f9eedd808c6fd98179dd40d775
|
|
| MD5 |
9f63ab56ba703a464f391e7587fd6cc9
|
|
| BLAKE2b-256 |
dd60baf8d7d5f78b557afdfc2ec3b26129027668d0d38be784e7a4f19ad60d0f
|
File details
Details for the file wry_py-0.1.5-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 801.2 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
238ec67a67edc50a94a6523536cfe96abc61a27d80c9350ba09bfe30abd6a91b
|
|
| MD5 |
93dd0bf4b5777c6b4f7764284c750656
|
|
| BLAKE2b-256 |
64d357fe25df296d7b5884d80b716c25a1d6ba60daba6b507d6ff1c1906c1a75
|
File details
Details for the file wry_py-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl
- Upload date:
- Size: 823.7 kB
- Tags: CPython 3.13, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d29a1c9c5f5c0accd54465908f53696b38dd9a9c917e4b91b1fb15ae2a83a46
|
|
| MD5 |
d888420d8f6f45f888f0ac14aab4d132
|
|
| BLAKE2b-256 |
8518958e2ea43e416031374687039290cd4922f7c3427e838087af652a48d647
|
File details
Details for the file wry_py-0.1.5-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 554.7 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1be62c297f230c54e859f7fcba0f561fca964081b8e4a994b06fb9a845e079cc
|
|
| MD5 |
8a76fec7c01f2a62c893b5dd0c1ab9c0
|
|
| BLAKE2b-256 |
ca293216920f0e329ad08e36dbb4875bdd791d532587129f195332e1070a9503
|
File details
Details for the file wry_py-0.1.5-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 801.1 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b78c202fd942fa03248fb925b67798d090abe2348660f1ff2afb1f3253834bc0
|
|
| MD5 |
d21d8fa235deb836a0eb1cc855eac5bb
|
|
| BLAKE2b-256 |
2a447ad0734acdfcdd2b2685d63a1903d4e65f872fd03e641876968c8dae98f9
|
File details
Details for the file wry_py-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 823.5 kB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e87b92f5997bd6c7003ce645343d6bd867edd533f68270026ef65f46e981ac32
|
|
| MD5 |
c2c4ea953e603464fb68a6e1d7ee01f0
|
|
| BLAKE2b-256 |
1f81952e326e952320fec778773d7019ff648c2391fb456177f263232831bb95
|
File details
Details for the file wry_py-0.1.5-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 554.9 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8566e360ff39527079b5d3414f922fc89ffa880d8d9b9b822cd2789cbdf66a5
|
|
| MD5 |
5e854e48c96ed773590104453dccc67d
|
|
| BLAKE2b-256 |
eec375f2eaa0003bb4734c0f532bb672c69b7cc8eee3671c6297cccd53e779eb
|
File details
Details for the file wry_py-0.1.5-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 802.0 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83a2c7565f8a9149c8cd6356036173ba46327c3dcd7ce3c29e6bd2c826923d03
|
|
| MD5 |
11a41baeab321dcba892414d9a1b91b3
|
|
| BLAKE2b-256 |
8c190061f13d24fe457c18d705148d5fe70dddbb29349569e41b9b8127df85d3
|
File details
Details for the file wry_py-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 823.9 kB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31ca7937219b7aff95bde82622446848e1bc9687c90710f8dc31d12125574abd
|
|
| MD5 |
a8f77fd445714f9c7759599f97ff7edb
|
|
| BLAKE2b-256 |
30fad1b3079d48e25992a3af166c554c9787e7c71ab42dce600f24a4123e1bbc
|
File details
Details for the file wry_py-0.1.5-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: wry_py-0.1.5-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 554.0 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0648d21e894b2f255800f1d97725e4149906e21a0fa68e1926ba6495470388c7
|
|
| MD5 |
dd6830437b75dfe2450e920b8cd3f1e9
|
|
| BLAKE2b-256 |
a5fc23678c60919c83ecbcb961b0bebd2ad82696ace39ab612748428e010c8b0
|