pyflutter-ui 0.1.0__tar.gz → 0.1.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.
Files changed (28) hide show
  1. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/PKG-INFO +2 -2
  2. pyflutter_ui-0.1.1/main.py +30 -0
  3. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/new-export_app.sh +2 -2
  4. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/config_app.py +9 -5
  5. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyproject.toml +2 -2
  6. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/uv.lock +5 -5
  7. pyflutter_ui-0.1.0/main.py +0 -6
  8. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/.python-version +0 -0
  9. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/README.md +0 -0
  10. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/local_build/linux.sh +0 -0
  11. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/local_build/send.sh +0 -0
  12. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/__init__.py +0 -0
  13. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/app.py +0 -0
  14. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/file_picker.py +0 -0
  15. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/navigator.py +0 -0
  16. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/scheduler.py +0 -0
  17. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/system_theme.py +0 -0
  18. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/table_widget.py +0 -0
  19. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/theme.py +0 -0
  20. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/ui/__init__.py +0 -0
  21. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/ui/buttons.py +0 -0
  22. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/ui/container.py +0 -0
  23. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/ui/core.py +0 -0
  24. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/ui/list_builder.py +0 -0
  25. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/ui/progress.py +0 -0
  26. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/ui/tables.py +0 -0
  27. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/pyflutter_ui/ui/widgets.py +0 -0
  28. {pyflutter_ui-0.1.0 → pyflutter_ui-0.1.1}/rm_pycache.sh +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pyflutter_ui
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: UI baseada em Tk
5
5
  Requires-Python: >=3.12
6
- Requires-Dist: table-stream>=0.2.9.5
6
+ Requires-Dist: table-stream>=0.2.10
7
7
  Description-Content-Type: text/markdown
8
8
 
9
9
  # pyflutter_ui
@@ -0,0 +1,30 @@
1
+ from pyflutter_ui import (
2
+ TkMaterialApp,
3
+ AppConfigNotifier,
4
+ PageApp,
5
+ Scaffold,
6
+ Column,
7
+ Text,
8
+ run_app,
9
+ )
10
+ from pyflutter_ui.ui.core import BuildContext, FlutterWidget, GlobalKey
11
+
12
+
13
+ class PageTeste(PageApp):
14
+
15
+ def __init__(self, key: GlobalKey | None = None, *, name: str = "My App") -> None:
16
+ super().__init__(key, name=name)
17
+
18
+ def build(self, context: BuildContext) -> FlutterWidget:
19
+ return Scaffold(Column([Text("Página de teste...")]))
20
+
21
+
22
+ def main():
23
+
24
+ app = TkMaterialApp(PageTeste())
25
+ # app.register_notifier(AppConfigNotifier.create())
26
+ run_app(app)
27
+
28
+
29
+ if __name__ == "__main__":
30
+ main()
@@ -3,14 +3,14 @@
3
3
  THIS=$0
4
4
  DIR_ROOT_PROJ=$(dirname $(readlink -f "$THIS"))
5
5
  APPNAME='pyflutter_ui'
6
- PREFIX_OUTDIR="Documentos/PROMPTS/${APPNAME}"
6
+ PREFIX_OUTDIR="Documentos/PROMPTS/Codigo/${APPNAME}"
7
7
 
8
8
  OUTPUT_DIR="${HOME}/${PREFIX_OUTDIR}"
9
9
  DIR_APP="${DIR_ROOT_PROJ}/pyflutter_ui"
10
10
 
11
11
  # 1. Declaração do Mapa: [Diretório de Origem]="Arquivo de Saída"
12
12
  declare -A MODULOS=(
13
- ["${DIR_APP}"]="${OUTPUT_DIR}/pyflutter_ui.py"
13
+ ["${DIR_APP}"]="${OUTPUT_DIR}/pyflutter_ui.txt"
14
14
  )
15
15
 
16
16
  function start(){
@@ -5,7 +5,8 @@ from table_stream import (
5
5
  File,
6
6
  Directory,
7
7
  UserFileSystem,
8
- JsonConvert,
8
+ JsonData,
9
+ JsonDocument,
9
10
  HashMapDict,
10
11
  HashMap,
11
12
  ArrayList,
@@ -87,8 +88,10 @@ class FactoryMapConfig(object):
87
88
  return self._conf
88
89
 
89
90
  def create_from_file(self, file_json: File) -> MapConfig:
90
- converter = JsonConvert.from_file(file_json)
91
- map_data = converter.data.to_dict()
91
+ json_doc = JsonDocument()
92
+ json_data_value: JsonData = json_doc.load_file(file_json)
93
+
94
+ map_data = json_data_value.to_dict()
92
95
  return self.create_from_dict(HashMapDict(map_data))
93
96
 
94
97
 
@@ -160,8 +163,9 @@ class AppConfigNotifier(ValueNotifier[MapConfig]):
160
163
  return final
161
164
 
162
165
  def save_config(self):
163
- converter = JsonConvert.from_dict(self.get_dict_config())
164
- converter.data.to_file(self.get_file_config())
166
+ # json_doc = JsonDocument()
167
+ data_value = JsonData.from_dict(self.get_dict_config())
168
+ data_value.to_file_json(self.get_file_config())
165
169
  print(f"Configurações salvas em ... {self.get_file_config().absolute()}")
166
170
 
167
171
  def notify_listeners(self) -> None:
@@ -1,12 +1,12 @@
1
1
  [project]
2
2
  name = "pyflutter_ui"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "UI baseada em Tk"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
7
7
 
8
8
  dependencies = [
9
- "table-stream>=0.2.9.5",
9
+ "table-stream>=0.2.10",
10
10
  ]
11
11
 
12
12
  [dependency-groups]
@@ -619,7 +619,7 @@ wheels = [
619
619
 
620
620
  [[package]]
621
621
  name = "pyflutter-ui"
622
- version = "0.1.0"
622
+ version = "0.1.1"
623
623
  source = { editable = "." }
624
624
  dependencies = [
625
625
  { name = "table-stream" },
@@ -633,7 +633,7 @@ dev = [
633
633
  ]
634
634
 
635
635
  [package.metadata]
636
- requires-dist = [{ name = "table-stream", specifier = ">=0.2.9.5" }]
636
+ requires-dist = [{ name = "table-stream", specifier = ">=0.2.10" }]
637
637
 
638
638
  [package.metadata.requires-dev]
639
639
  dev = [
@@ -759,15 +759,15 @@ wheels = [
759
759
 
760
760
  [[package]]
761
761
  name = "table-stream"
762
- version = "0.2.9.5"
762
+ version = "0.2.10"
763
763
  source = { registry = "https://pypi.org/simple" }
764
764
  dependencies = [
765
765
  { name = "openpyxl" },
766
766
  { name = "pandas" },
767
767
  ]
768
- sdist = { url = "https://files.pythonhosted.org/packages/16/08/793b96005d98a48190481f92909f447836c84f488c2850e405b6ca714371/table_stream-0.2.9.5.tar.gz", hash = "sha256:cb3f82ef72905428020f3042792a3dcebfd32a2e4637a7c3a35771493b043504", size = 21074, upload-time = "2026-11-14T23:55:20.255Z" }
768
+ sdist = { url = "https://files.pythonhosted.org/packages/98/b1/747eb569ff04e74e2c69cbbda005e466d8d1dc1a196bd0d68ac93256fc3e/table_stream-0.2.10.tar.gz", hash = "sha256:3f8d1d1cbd54d7f09e9fcef8d64e3b0cbfa215f79f3b1d24b3a41c64926cadab", size = 23460, upload-time = "2026-11-29T02:04:46.876Z" }
769
769
  wheels = [
770
- { url = "https://files.pythonhosted.org/packages/49/eb/b7cb4d937a84ef4c6bc5fe1cf2bac715969b6fe2d00c52d1190c011a65cf/table_stream-0.2.9.5-py3-none-any.whl", hash = "sha256:cb5e27f53a2bb322f70a74a5b000463ce89580b468893ca8c247adabe8711bac", size = 21053, upload-time = "2026-11-14T23:55:18.924Z" },
770
+ { url = "https://files.pythonhosted.org/packages/aa/04/6c28ca338c67068c5b3d46610a89a4a42b007356f34b45ec357f5e03791b/table_stream-0.2.10-py3-none-any.whl", hash = "sha256:c7535a8b828103295d53b8af2a90bc4ee2291c9e04f7ec52bc46782c984a3356", size = 23474, upload-time = "2026-11-29T02:04:45.664Z" },
771
771
  ]
772
772
 
773
773
  [[package]]
@@ -1,6 +0,0 @@
1
- def main():
2
- print("Hello from pyflutter-ui!")
3
-
4
-
5
- if __name__ == "__main__":
6
- main()
File without changes
File without changes