ren-ui-python 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ren_ui_python-0.1.0/LICENSE +21 -0
- ren_ui_python-0.1.0/PKG-INFO +83 -0
- ren_ui_python-0.1.0/PYPI.md +58 -0
- ren_ui_python-0.1.0/README.md +2039 -0
- ren_ui_python-0.1.0/pyproject.toml +41 -0
- ren_ui_python-0.1.0/setup.cfg +4 -0
- ren_ui_python-0.1.0/src/ren_ui/__init__.py +11 -0
- ren_ui_python-0.1.0/src/ren_ui/__main__.py +3 -0
- ren_ui_python-0.1.0/src/ren_ui/_native.py +70 -0
- ren_ui_python-0.1.0/src/ren_ui/app.py +152 -0
- ren_ui_python-0.1.0/src/ren_ui/build.py +256 -0
- ren_ui_python-0.1.0/src/ren_ui/cli.py +155 -0
- ren_ui_python-0.1.0/src/ren_ui/native/bridge.cpp +764 -0
- ren_ui_python-0.1.0/src/ren_ui/native/icon.cpp +79 -0
- ren_ui_python-0.1.0/src/ren_ui/native/launcher.cpp +64 -0
- ren_ui_python-0.1.0/src/ren_ui/project.py +209 -0
- ren_ui_python-0.1.0/src/ren_ui/py.typed +0 -0
- ren_ui_python-0.1.0/src/ren_ui/resources.py +30 -0
- ren_ui_python-0.1.0/src/ren_ui/system.py +70 -0
- ren_ui_python-0.1.0/src/ren_ui/widgets.py +380 -0
- ren_ui_python-0.1.0/src/ren_ui_python.egg-info/PKG-INFO +83 -0
- ren_ui_python-0.1.0/src/ren_ui_python.egg-info/SOURCES.txt +28 -0
- ren_ui_python-0.1.0/src/ren_ui_python.egg-info/dependency_links.txt +1 -0
- ren_ui_python-0.1.0/src/ren_ui_python.egg-info/entry_points.txt +3 -0
- ren_ui_python-0.1.0/src/ren_ui_python.egg-info/top_level.txt +1 -0
- ren_ui_python-0.1.0/tests/test_build.py +185 -0
- ren_ui_python-0.1.0/tests/test_images.py +159 -0
- ren_ui_python-0.1.0/tests/test_project.py +158 -0
- ren_ui_python-0.1.0/tests/test_samples.py +251 -0
- ren_ui_python-0.1.0/tests/test_widgets.py +293 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ren-ui-python contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ren-ui-python
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Native RenkuOS/HaikuOS desktop apps in Python, packaged as HPKG
|
|
5
|
+
Author-email: Lee JunHaeng aka rainygirl <rainygirl@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Documentation, https://ren-ui-python.rainygirl.com/
|
|
8
|
+
Keywords: haiku,renkuos,gui,native,hpkg
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: Other OS
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Classifier: Programming Language :: C++
|
|
19
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
26
|
+
# ren-ui-python
|
|
27
|
+
|
|
28
|
+
Write native RenkuOS/HaikuOS desktop apps in plain Python and package them as `.hpkg`.
|
|
29
|
+
|
|
30
|
+
The windows, buttons and dialogs are the system's own controls, driven through a small C++ bridge to `libbe`. There is no web view and no extra syntax to learn beyond Python.
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
from ren_ui import Application, Event, Window, Column, Row, Label, TextInput, Button
|
|
34
|
+
|
|
35
|
+
with Application("application/x-vnd.example-hello") as app:
|
|
36
|
+
message = Label("Welcome!")
|
|
37
|
+
name = TextInput(label="Name:")
|
|
38
|
+
greet_button = Button("Say hello")
|
|
39
|
+
|
|
40
|
+
@greet_button.onclick
|
|
41
|
+
def greet(event: Event):
|
|
42
|
+
message.text = f"Hello, {name.text or 'Haiku'}!"
|
|
43
|
+
|
|
44
|
+
Window(app, "Hello", Column(message, name, Row(greet_button, padding=0))).show()
|
|
45
|
+
app.run()
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Documentation
|
|
49
|
+
|
|
50
|
+
**<https://ren-ui-python.rainygirl.com/>** - reference and tutorials in English, 한국어, 日本語, Italiano and Français.
|
|
51
|
+
|
|
52
|
+
## Requirements
|
|
53
|
+
|
|
54
|
+
- Running apps and building packages: RenkuOS or Haiku (x86_64, 32-bit x86 hybrid, arm64), Python 3.11 or newer with a shared `libpython`, and a C++17 compiler (`ren doctor` checks the tools).
|
|
55
|
+
- Other systems (macOS, Linux, Windows): the package installs and you can create, check and stage projects, but windows cannot be shown.
|
|
56
|
+
|
|
57
|
+
## Install
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
pip install ren-ui-python
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Command line
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
ren init my_app # create a project
|
|
67
|
+
ren check my_app # validate the manifest and sources (any OS)
|
|
68
|
+
ren doctor # check the build tools
|
|
69
|
+
ren run my_app # compile the bridge and run the app
|
|
70
|
+
ren build my_app # produce an installable .hpkg
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
A built package depends on the system's Python library (for example `lib:libpython3.12`), so `pkgman install` pulls in Python automatically.
|
|
74
|
+
|
|
75
|
+
## What is included
|
|
76
|
+
|
|
77
|
+
- Widgets: `Label`, `Button`, `TextInput`, `TextArea`, `CheckBox`, `Slider`, `Image`, laid out with `Column` and `Row`
|
|
78
|
+
- `ren_ui.system`: alerts and confirmations, native open/save file panels, clipboard, opening URLs, the settings directory
|
|
79
|
+
- The `ren` tool: project scaffold, validation, HPKG packaging with app signature, icon and Deskbar entry
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
MIT
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# ren-ui-python
|
|
2
|
+
|
|
3
|
+
Write native RenkuOS/HaikuOS desktop apps in plain Python and package them as `.hpkg`.
|
|
4
|
+
|
|
5
|
+
The windows, buttons and dialogs are the system's own controls, driven through a small C++ bridge to `libbe`. There is no web view and no extra syntax to learn beyond Python.
|
|
6
|
+
|
|
7
|
+
```python
|
|
8
|
+
from ren_ui import Application, Event, Window, Column, Row, Label, TextInput, Button
|
|
9
|
+
|
|
10
|
+
with Application("application/x-vnd.example-hello") as app:
|
|
11
|
+
message = Label("Welcome!")
|
|
12
|
+
name = TextInput(label="Name:")
|
|
13
|
+
greet_button = Button("Say hello")
|
|
14
|
+
|
|
15
|
+
@greet_button.onclick
|
|
16
|
+
def greet(event: Event):
|
|
17
|
+
message.text = f"Hello, {name.text or 'Haiku'}!"
|
|
18
|
+
|
|
19
|
+
Window(app, "Hello", Column(message, name, Row(greet_button, padding=0))).show()
|
|
20
|
+
app.run()
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Documentation
|
|
24
|
+
|
|
25
|
+
**<https://ren-ui-python.rainygirl.com/>** - reference and tutorials in English, 한국어, 日本語, Italiano and Français.
|
|
26
|
+
|
|
27
|
+
## Requirements
|
|
28
|
+
|
|
29
|
+
- Running apps and building packages: RenkuOS or Haiku (x86_64, 32-bit x86 hybrid, arm64), Python 3.11 or newer with a shared `libpython`, and a C++17 compiler (`ren doctor` checks the tools).
|
|
30
|
+
- Other systems (macOS, Linux, Windows): the package installs and you can create, check and stage projects, but windows cannot be shown.
|
|
31
|
+
|
|
32
|
+
## Install
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
pip install ren-ui-python
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Command line
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
ren init my_app # create a project
|
|
42
|
+
ren check my_app # validate the manifest and sources (any OS)
|
|
43
|
+
ren doctor # check the build tools
|
|
44
|
+
ren run my_app # compile the bridge and run the app
|
|
45
|
+
ren build my_app # produce an installable .hpkg
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
A built package depends on the system's Python library (for example `lib:libpython3.12`), so `pkgman install` pulls in Python automatically.
|
|
49
|
+
|
|
50
|
+
## What is included
|
|
51
|
+
|
|
52
|
+
- Widgets: `Label`, `Button`, `TextInput`, `TextArea`, `CheckBox`, `Slider`, `Image`, laid out with `Column` and `Row`
|
|
53
|
+
- `ren_ui.system`: alerts and confirmations, native open/save file panels, clipboard, opening URLs, the settings directory
|
|
54
|
+
- The `ren` tool: project scaffold, validation, HPKG packaging with app signature, icon and Deskbar entry
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
MIT
|