realui 0.0.1__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.
- realui-0.0.1/PKG-INFO +19 -0
- realui-0.0.1/README.md +10 -0
- realui-0.0.1/app.realui +11 -0
- realui-0.0.1/main.py +14 -0
- realui-0.0.1/pyproject.toml +19 -0
- realui-0.0.1/src/realui/__init__.py +5 -0
realui-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: realui
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A local-first, zero-dependency universal UI framework for Python.
|
|
5
|
+
Author-email: "HOUNVIDE Ulrich (H_DEV)" <hounvideulrich@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# Real UI
|
|
11
|
+
|
|
12
|
+
**Real UI** est un framework Python local-first et zéro-dépendance pour construire des interfaces web modernes sans écrire de HTML, de CSS ou de JavaScript.
|
|
13
|
+
|
|
14
|
+
## Vision
|
|
15
|
+
Un seul fichier (`.realui`), un seul runtime, des composants embarqués (CSS, icônes SVG, police). Fini les conflits de versions et le "dependency hell".
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
```bash
|
|
19
|
+
pip install realui-framework
|
realui-0.0.1/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Real UI
|
|
2
|
+
|
|
3
|
+
**Real UI** est un framework Python local-first et zéro-dépendance pour construire des interfaces web modernes sans écrire de HTML, de CSS ou de JavaScript.
|
|
4
|
+
|
|
5
|
+
## Vision
|
|
6
|
+
Un seul fichier (`.realui`), un seul runtime, des composants embarqués (CSS, icônes SVG, police). Fini les conflits de versions et le "dependency hell".
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
```bash
|
|
10
|
+
pip install realui-framework
|
realui-0.0.1/app.realui
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
screen home {
|
|
2
|
+
header class="p-4 bg-blue-500 text-white" {
|
|
3
|
+
title "Real UI - Test" class="text-xl font-bold"
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
body class="flex flex-col gap-4 p-6" {
|
|
7
|
+
text "Bienvenue sur mon framework !" id="welcome_text"
|
|
8
|
+
|
|
9
|
+
button "Cliquez-moi" id="btn_click" action="handle_click" variant="primary"
|
|
10
|
+
}
|
|
11
|
+
}
|
realui-0.0.1/main.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import realui
|
|
2
|
+
from realui import ui
|
|
3
|
+
|
|
4
|
+
# Cette fonction est appelée quand on clique sur le bouton
|
|
5
|
+
def handle_click():
|
|
6
|
+
print("Le bouton a été cliqué depuis le navigateur !")
|
|
7
|
+
ui.update("welcome_text", text="Tu as cliqué sur le bouton ! 🎉")
|
|
8
|
+
|
|
9
|
+
# On charge le fichier d'interface
|
|
10
|
+
ui.load("app.realui")
|
|
11
|
+
|
|
12
|
+
# On lance le serveur (qui ouvrira ton navigateur)
|
|
13
|
+
if __name__ == "__main__":
|
|
14
|
+
ui.run()
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
[build-system]
|
|
3
|
+
requires = ["hatchling"]
|
|
4
|
+
build-backend = "hatchling.build"
|
|
5
|
+
|
|
6
|
+
[project]
|
|
7
|
+
name = "realui"
|
|
8
|
+
version = "0.0.1"
|
|
9
|
+
description = "A local-first, zero-dependency universal UI framework for Python."
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "HOUNVIDE Ulrich (H_DEV)", email = "hounvideulrich@gmail.com" }
|
|
13
|
+
]
|
|
14
|
+
license = { text = "MIT" }
|
|
15
|
+
requires-python = ">=3.10"
|
|
16
|
+
dependencies = [] # Zéro dépendance externe
|
|
17
|
+
|
|
18
|
+
[tool.hatch.build.targets.wheel]
|
|
19
|
+
packages = ["src/realui"]
|