neutralino-python 0.1.0rc1__py3-none-any.whl

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 (521) hide show
  1. neutralino/__init__.py +88 -0
  2. neutralino/_catalog.py +297 -0
  3. neutralino/_data/LICENSE.neutralino-js-client +21 -0
  4. neutralino/_data/LICENSE.neutralinojs +1066 -0
  5. neutralino/_data/docs/cli.md +315 -0
  6. neutralino/_data/docs/custom-components.md +107 -0
  7. neutralino/_data/docs/custom-frontends.md +80 -0
  8. neutralino/_data/docs/desktop-helpers.md +296 -0
  9. neutralino/_data/docs/guide.md +131 -0
  10. neutralino/_data/docs/llms-full.txt +3921 -0
  11. neutralino/_data/docs/llms.txt +43 -0
  12. neutralino/_data/docs/manifests/components.json +20128 -0
  13. neutralino/_data/docs/manifests/examples.json +52 -0
  14. neutralino/_data/docs/manifests/native.json +3024 -0
  15. neutralino/_data/docs/manifests/schema.json +43 -0
  16. neutralino/_data/docs/manual-checklist.md +189 -0
  17. neutralino/_data/docs/packaging.md +252 -0
  18. neutralino/_data/docs/performance.md +15 -0
  19. neutralino/_data/docs/platforms.md +15 -0
  20. neutralino/_data/docs/reference/components.md +1685 -0
  21. neutralino/_data/docs/reference/native.md +148 -0
  22. neutralino/_data/docs/security.md +60 -0
  23. neutralino/_data/docs/ui.md +249 -0
  24. neutralino/_data/docs/updates.md +366 -0
  25. neutralino/_data/examples/README.md +6 -0
  26. neutralino/_data/examples/crud/README.md +36 -0
  27. neutralino/_data/examples/crud/app.py +243 -0
  28. neutralino/_data/examples/dashboard/README.md +36 -0
  29. neutralino/_data/examples/dashboard/app.py +367 -0
  30. neutralino/_data/examples/editor/README.md +35 -0
  31. neutralino/_data/examples/editor/app.py +190 -0
  32. neutralino/_data/examples/file-manager/README.md +40 -0
  33. neutralino/_data/examples/file-manager/app.py +120 -0
  34. neutralino/_data/examples/file-manager/frontend/index.html +20 -0
  35. neutralino/_data/examples/file-manager/frontend/main.js +55 -0
  36. neutralino/_data/examples/file-manager/frontend/neutralino.js +1 -0
  37. neutralino/_data/examples/file-manager/frontend/python-bridge.d.ts +207 -0
  38. neutralino/_data/examples/file-manager/frontend/python-bridge.mjs +854 -0
  39. neutralino/_data/examples/file-manager/frontend/style.css +4 -0
  40. neutralino/_data/examples/hybrid/README.md +48 -0
  41. neutralino/_data/examples/hybrid/app.py +80 -0
  42. neutralino/_data/examples/hybrid/components/counter.mjs +37 -0
  43. neutralino/_data/examples/hybrid/components/widget.mjs +23 -0
  44. neutralino/_data/examples/hybrid/styles.css +21 -0
  45. neutralino/_data/examples/hybrid/widget/package.json +20 -0
  46. neutralino/_data/examples/hybrid/widget/src/Widget.jsx +25 -0
  47. neutralino/_data/examples/hybrid/widget/vite.config.mjs +19 -0
  48. neutralino/_data/examples/monitor/README.md +36 -0
  49. neutralino/_data/examples/monitor/app.py +375 -0
  50. neutralino/_data/examples/react/README.md +90 -0
  51. neutralino/_data/examples/react/app.py +68 -0
  52. neutralino/_data/examples/react/frontend/.gitignore +5 -0
  53. neutralino/_data/examples/react/frontend/index.html +17 -0
  54. neutralino/_data/examples/react/frontend/package-lock.json +1232 -0
  55. neutralino/_data/examples/react/frontend/package.json +25 -0
  56. neutralino/_data/examples/react/frontend/scripts/prepare-bridge.mjs +49 -0
  57. neutralino/_data/examples/react/frontend/src/App.tsx +157 -0
  58. neutralino/_data/examples/react/frontend/src/backend.ts +21 -0
  59. neutralino/_data/examples/react/frontend/src/calls.test.ts +206 -0
  60. neutralino/_data/examples/react/frontend/src/calls.ts +306 -0
  61. neutralino/_data/examples/react/frontend/src/globals.d.ts +14 -0
  62. neutralino/_data/examples/react/frontend/src/hooks.ts +45 -0
  63. neutralino/_data/examples/react/frontend/src/main.tsx +13 -0
  64. neutralino/_data/examples/react/frontend/src/styles.css +11 -0
  65. neutralino/_data/examples/react/frontend/tsconfig.json +18 -0
  66. neutralino/_data/examples/react/frontend/vite.config.ts +9 -0
  67. neutralino/_data/examples/settings/README.md +38 -0
  68. neutralino/_data/examples/settings/app.py +440 -0
  69. neutralino/_data/examples/updater/.gitignore +2 -0
  70. neutralino/_data/examples/updater/README.md +82 -0
  71. neutralino/_data/examples/updater/app.py +160 -0
  72. neutralino/_data/examples/updater/app.toml +21 -0
  73. neutralino/_data/examples/updater/demo.py +107 -0
  74. neutralino/_data/examples/updater/requirements.txt +2 -0
  75. neutralino/_data/examples/updater/sources/github-private.toml +21 -0
  76. neutralino/_data/examples/updater/sources/github-public.toml +21 -0
  77. neutralino/_data/examples/vanilla/README.md +35 -0
  78. neutralino/_data/examples/vanilla/app.py +46 -0
  79. neutralino/_data/examples/vanilla/frontend/index.html +17 -0
  80. neutralino/_data/examples/vanilla/frontend/main.js +29 -0
  81. neutralino/_data/examples/vanilla/frontend/neutralino.js +1 -0
  82. neutralino/_data/examples/vanilla/frontend/python-bridge.d.ts +207 -0
  83. neutralino/_data/examples/vanilla/frontend/python-bridge.mjs +854 -0
  84. neutralino/_data/examples/vanilla/frontend/style.css +4 -0
  85. neutralino/_data/explorer/app.py +1328 -0
  86. neutralino/_data/explorer/catalogue.json +48179 -0
  87. neutralino/_data/explorer/explorer_previews.py +247 -0
  88. neutralino/_data/explorer/sources/native/always_on_top.py +55 -0
  89. neutralino/_data/explorer/sources/native/binary.py +125 -0
  90. neutralino/_data/explorer/sources/native/borderless.py +99 -0
  91. neutralino/_data/explorer/sources/native/broadcast.py +90 -0
  92. neutralino/_data/explorer/sources/native/config.py +78 -0
  93. neutralino/_data/explorer/sources/native/controls.py +140 -0
  94. neutralino/_data/explorer/sources/native/directory.py +163 -0
  95. neutralino/_data/explorer/sources/native/displays.py +75 -0
  96. neutralino/_data/explorer/sources/native/env.py +98 -0
  97. neutralino/_data/explorer/sources/native/events.py +124 -0
  98. neutralino/_data/explorer/sources/native/exec_command.py +79 -0
  99. neutralino/_data/explorer/sources/native/folder.py +70 -0
  100. neutralino/_data/explorer/sources/native/icon_badge.py +101 -0
  101. neutralino/_data/explorer/sources/native/image.py +119 -0
  102. neutralino/_data/explorer/sources/native/lifecycle.py +99 -0
  103. neutralino/_data/explorer/sources/native/locale.py +70 -0
  104. neutralino/_data/explorer/sources/native/main_menu.py +103 -0
  105. neutralino/_data/explorer/sources/native/message_box.py +101 -0
  106. neutralino/_data/explorer/sources/native/mouse.py +70 -0
  107. neutralino/_data/explorer/sources/native/multi_window.py +134 -0
  108. neutralino/_data/explorer/sources/native/notification.py +74 -0
  109. neutralino/_data/explorer/sources/native/open_external.py +81 -0
  110. neutralino/_data/explorer/sources/native/open_file.py +102 -0
  111. neutralino/_data/explorer/sources/native/paths.py +77 -0
  112. neutralino/_data/explorer/sources/native/print_snapshot.py +84 -0
  113. neutralino/_data/explorer/sources/native/read_write.py +192 -0
  114. neutralino/_data/explorer/sources/native/resources.py +110 -0
  115. neutralino/_data/explorer/sources/native/save_file.py +101 -0
  116. neutralino/_data/explorer/sources/native/server_mount.py +106 -0
  117. neutralino/_data/explorer/sources/native/sound.py +84 -0
  118. neutralino/_data/explorer/sources/native/spawn_process.py +128 -0
  119. neutralino/_data/explorer/sources/native/states.py +122 -0
  120. neutralino/_data/explorer/sources/native/stats_permissions.py +147 -0
  121. neutralino/_data/explorer/sources/native/storage.py +108 -0
  122. neutralino/_data/explorer/sources/native/system_info.py +115 -0
  123. neutralino/_data/explorer/sources/native/text.py +133 -0
  124. neutralino/_data/explorer/sources/native/trash.py +98 -0
  125. neutralino/_data/explorer/sources/native/tray.py +109 -0
  126. neutralino/_data/explorer/sources/native/watcher.py +167 -0
  127. neutralino/_data/explorer/sources/patterns/content_blocks.py +119 -0
  128. neutralino/_data/explorer/sources/patterns/dynamic_dashboard.py +121 -0
  129. neutralino/_data/explorer/sources/patterns/dynamic_form.py +120 -0
  130. neutralino/_data/explorer/sources/patterns/dynamic_table.py +109 -0
  131. neutralino/_data/explorer/sources/patterns/error_reporting.mjs +24 -0
  132. neutralino/_data/explorer/sources/patterns/error_reporting.py +124 -0
  133. neutralino/_data/explorer/sources/patterns/errors_timeouts.py +108 -0
  134. neutralino/_data/explorer/sources/patterns/feature_flags.py +99 -0
  135. neutralino/_data/explorer/sources/patterns/file_drop.py +126 -0
  136. neutralino/_data/explorer/sources/patterns/http_from_python.py +152 -0
  137. neutralino/_data/explorer/sources/patterns/keyboard_shortcuts.py +153 -0
  138. neutralino/_data/explorer/sources/patterns/live_config_reload.py +160 -0
  139. neutralino/_data/explorer/sources/patterns/logging.py +184 -0
  140. neutralino/_data/explorer/sources/patterns/long_tasks.py +121 -0
  141. neutralino/_data/explorer/sources/patterns/multi_window_sync.py +68 -0
  142. neutralino/_data/explorer/sources/patterns/navigation_from_backend.py +109 -0
  143. neutralino/_data/explorer/sources/patterns/onboarding.py +123 -0
  144. neutralino/_data/explorer/sources/patterns/optimistic_updates.py +89 -0
  145. neutralino/_data/explorer/sources/patterns/persistence.py +114 -0
  146. neutralino/_data/explorer/sources/patterns/python_calls_page.mjs +10 -0
  147. neutralino/_data/explorer/sources/patterns/python_calls_page.py +64 -0
  148. neutralino/_data/explorer/sources/patterns/python_push.py +84 -0
  149. neutralino/_data/explorer/sources/patterns/recurring_events.py +114 -0
  150. neutralino/_data/explorer/sources/patterns/roles_permissions.py +104 -0
  151. neutralino/_data/explorer/sources/patterns/scheduled_jobs.py +194 -0
  152. neutralino/_data/explorer/sources/patterns/settings_page.py +165 -0
  153. neutralino/_data/explorer/sources/patterns/sqlite.py +181 -0
  154. neutralino/_data/explorer/sources/patterns/streaming.py +102 -0
  155. neutralino/_data/explorer/sources/patterns/texts_i18n.py +81 -0
  156. neutralino/_data/explorer/sources/patterns/theme_from_backend.py +86 -0
  157. neutralino/_data/explorer/sources/patterns/updater.py +232 -0
  158. neutralino/_data/explorer/sources/workspace/calendar/app.py +547 -0
  159. neutralino/_data/explorer/sources/workspace/customers/app.py +467 -0
  160. neutralino/_data/explorer/sources/workspace/dashboard/README.md +36 -0
  161. neutralino/_data/explorer/sources/workspace/dashboard/app.py +367 -0
  162. neutralino/_data/explorer/sources/workspace/documents/app.py +511 -0
  163. neutralino/_data/explorer/sources/workspace/inbox/app.py +439 -0
  164. neutralino/_data/explorer/sources/workspace/orders/app.py +491 -0
  165. neutralino/_data/explorer/sources/workspace/reports/app.py +386 -0
  166. neutralino/_data/explorer/sources/workspace/settings/README.md +38 -0
  167. neutralino/_data/explorer/sources/workspace/settings/app.py +440 -0
  168. neutralino/_data/explorer/sources/workspace/system/README.md +36 -0
  169. neutralino/_data/explorer/sources/workspace/system/app.py +375 -0
  170. neutralino/_data/explorer/sources/workspace/tasks/app.py +462 -0
  171. neutralino/_data/renderer/LICENSES/@babel__runtime@7.29.17/LICENSE +22 -0
  172. neutralino/_data/renderer/LICENSES/@codemirror__autocomplete@6.20.4/LICENSE +21 -0
  173. neutralino/_data/renderer/LICENSES/@codemirror__commands@6.11.2/LICENSE +21 -0
  174. neutralino/_data/renderer/LICENSES/@codemirror__lang-css@6.3.1/LICENSE +21 -0
  175. neutralino/_data/renderer/LICENSES/@codemirror__lang-html@6.4.12/LICENSE +21 -0
  176. neutralino/_data/renderer/LICENSES/@codemirror__lang-javascript@6.2.5/LICENSE +21 -0
  177. neutralino/_data/renderer/LICENSES/@codemirror__lang-json@6.0.2/LICENSE +21 -0
  178. neutralino/_data/renderer/LICENSES/@codemirror__lang-markdown@6.5.3/LICENSE +21 -0
  179. neutralino/_data/renderer/LICENSES/@codemirror__lang-python@6.2.1/LICENSE +21 -0
  180. neutralino/_data/renderer/LICENSES/@codemirror__lang-sql@6.10.0/LICENSE +21 -0
  181. neutralino/_data/renderer/LICENSES/@codemirror__lang-yaml@6.1.3/LICENSE +21 -0
  182. neutralino/_data/renderer/LICENSES/@codemirror__language@6.13.1/LICENSE +21 -0
  183. neutralino/_data/renderer/LICENSES/@codemirror__search@6.7.3/LICENSE +21 -0
  184. neutralino/_data/renderer/LICENSES/@codemirror__state@6.7.6/LICENSE +21 -0
  185. neutralino/_data/renderer/LICENSES/@codemirror__view@6.44.2/LICENSE +21 -0
  186. neutralino/_data/renderer/LICENSES/@dnd-kit__accessibility@3.1.1/LICENSE +21 -0
  187. neutralino/_data/renderer/LICENSES/@dnd-kit__core@6.3.1/LICENSE +21 -0
  188. neutralino/_data/renderer/LICENSES/@dnd-kit__sortable@10.0.0/LICENSE +21 -0
  189. neutralino/_data/renderer/LICENSES/@dnd-kit__utilities@3.2.2/LICENSE +21 -0
  190. neutralino/_data/renderer/LICENSES/@emoji-mart__data@1.2.1/LICENSE +21 -0
  191. neutralino/_data/renderer/LICENSES/@floating-ui__core@1.8.0/LICENSE +20 -0
  192. neutralino/_data/renderer/LICENSES/@floating-ui__dom@1.8.0/LICENSE +20 -0
  193. neutralino/_data/renderer/LICENSES/@floating-ui__react-dom@2.1.9/LICENSE +20 -0
  194. neutralino/_data/renderer/LICENSES/@floating-ui__react@0.27.20/LICENSE +20 -0
  195. neutralino/_data/renderer/LICENSES/@floating-ui__utils@0.2.12/LICENSE +20 -0
  196. neutralino/_data/renderer/LICENSES/@lezer__common@1.5.7/LICENSE +21 -0
  197. neutralino/_data/renderer/LICENSES/@lezer__css@1.3.9/LICENSE +21 -0
  198. neutralino/_data/renderer/LICENSES/@lezer__highlight@1.2.5/LICENSE +21 -0
  199. neutralino/_data/renderer/LICENSES/@lezer__html@1.3.13/LICENSE +21 -0
  200. neutralino/_data/renderer/LICENSES/@lezer__javascript@1.5.7/LICENSE +21 -0
  201. neutralino/_data/renderer/LICENSES/@lezer__json@1.0.3/LICENSE +21 -0
  202. neutralino/_data/renderer/LICENSES/@lezer__lr@1.4.13/LICENSE +21 -0
  203. neutralino/_data/renderer/LICENSES/@lezer__markdown@1.8.3/LICENSE +21 -0
  204. neutralino/_data/renderer/LICENSES/@lezer__python@1.1.21/LICENSE +21 -0
  205. neutralino/_data/renderer/LICENSES/@lezer__yaml@1.0.4/LICENSE +21 -0
  206. neutralino/_data/renderer/LICENSES/@mantine__carousel@9.8.3/LICENSE +21 -0
  207. neutralino/_data/renderer/LICENSES/@mantine__charts@9.8.3/LICENSE +21 -0
  208. neutralino/_data/renderer/LICENSES/@mantine__code-highlight@9.8.3/LICENSE +21 -0
  209. neutralino/_data/renderer/LICENSES/@mantine__core@9.8.3/LICENSE +21 -0
  210. neutralino/_data/renderer/LICENSES/@mantine__dates@9.8.3/LICENSE +21 -0
  211. neutralino/_data/renderer/LICENSES/@mantine__dropzone@9.8.3/LICENSE +21 -0
  212. neutralino/_data/renderer/LICENSES/@mantine__emoji@9.8.3/LICENSE +21 -0
  213. neutralino/_data/renderer/LICENSES/@mantine__hooks@9.8.3/LICENSE +21 -0
  214. neutralino/_data/renderer/LICENSES/@mantine__lightbox@9.8.3/LICENSE +21 -0
  215. neutralino/_data/renderer/LICENSES/@mantine__notifications@9.8.3/LICENSE +21 -0
  216. neutralino/_data/renderer/LICENSES/@mantine__nprogress@9.8.3/LICENSE +21 -0
  217. neutralino/_data/renderer/LICENSES/@mantine__schedule@9.8.3/LICENSE +21 -0
  218. neutralino/_data/renderer/LICENSES/@mantine__spotlight@9.8.3/LICENSE +21 -0
  219. neutralino/_data/renderer/LICENSES/@mantine__store@9.8.3/LICENSE +21 -0
  220. neutralino/_data/renderer/LICENSES/@mantine__tiptap@9.8.3/LICENSE +21 -0
  221. neutralino/_data/renderer/LICENSES/@marijn__find-cluster-break@1.0.4/LICENSE +21 -0
  222. neutralino/_data/renderer/LICENSES/@reduxjs__toolkit@2.16.0/LICENSE +21 -0
  223. neutralino/_data/renderer/LICENSES/@tabler__icons-react@3.55.0/LICENSE +21 -0
  224. neutralino/_data/renderer/LICENSES/@tanstack__react-virtual@3.14.32/LICENSE +21 -0
  225. neutralino/_data/renderer/LICENSES/@tanstack__virtual-core@3.19.17/LICENSE +21 -0
  226. neutralino/_data/renderer/LICENSES/@tiptap__core@3.35.1/LICENSE.md +21 -0
  227. neutralino/_data/renderer/LICENSES/@tiptap__extension-blockquote@3.35.1/LICENSE.md +21 -0
  228. neutralino/_data/renderer/LICENSES/@tiptap__extension-bold@3.35.1/LICENSE.md +21 -0
  229. neutralino/_data/renderer/LICENSES/@tiptap__extension-code-block@3.35.1/LICENSE.md +21 -0
  230. neutralino/_data/renderer/LICENSES/@tiptap__extension-code@3.35.1/LICENSE.md +21 -0
  231. neutralino/_data/renderer/LICENSES/@tiptap__extension-document@3.35.1/LICENSE.md +21 -0
  232. neutralino/_data/renderer/LICENSES/@tiptap__extension-hard-break@3.35.1/LICENSE.md +21 -0
  233. neutralino/_data/renderer/LICENSES/@tiptap__extension-heading@3.35.1/LICENSE.md +21 -0
  234. neutralino/_data/renderer/LICENSES/@tiptap__extension-horizontal-rule@3.35.1/LICENSE.md +21 -0
  235. neutralino/_data/renderer/LICENSES/@tiptap__extension-italic@3.35.1/LICENSE.md +21 -0
  236. neutralino/_data/renderer/LICENSES/@tiptap__extension-link@3.35.1/LICENSE.md +21 -0
  237. neutralino/_data/renderer/LICENSES/@tiptap__extension-list@3.35.1/LICENSE.md +21 -0
  238. neutralino/_data/renderer/LICENSES/@tiptap__extension-paragraph@3.35.1/LICENSE.md +21 -0
  239. neutralino/_data/renderer/LICENSES/@tiptap__extension-strike@3.35.1/LICENSE.md +21 -0
  240. neutralino/_data/renderer/LICENSES/@tiptap__extension-text@3.35.1/LICENSE.md +21 -0
  241. neutralino/_data/renderer/LICENSES/@tiptap__extension-underline@3.35.1/LICENSE.md +21 -0
  242. neutralino/_data/renderer/LICENSES/@tiptap__extensions@3.35.1/LICENSE.md +21 -0
  243. neutralino/_data/renderer/LICENSES/@tiptap__react@3.35.1/LICENSE.md +21 -0
  244. neutralino/_data/renderer/LICENSES/@tiptap__starter-kit@3.35.1/LICENSE.md +21 -0
  245. neutralino/_data/renderer/LICENSES/attr-accept@4.0.1/LICENSE +22 -0
  246. neutralino/_data/renderer/LICENSES/clsx@2.1.1/license +9 -0
  247. neutralino/_data/renderer/LICENSES/crelt@1.0.7/LICENSE +19 -0
  248. neutralino/_data/renderer/LICENSES/d3-array@3.2.5/LICENSE +13 -0
  249. neutralino/_data/renderer/LICENSES/d3-color@3.1.1/LICENSE +13 -0
  250. neutralino/_data/renderer/LICENSES/d3-format@3.1.3/LICENSE +13 -0
  251. neutralino/_data/renderer/LICENSES/d3-interpolate@3.0.2/LICENSE +13 -0
  252. neutralino/_data/renderer/LICENSES/d3-path@3.1.1/LICENSE +13 -0
  253. neutralino/_data/renderer/LICENSES/d3-scale@4.0.3/LICENSE +13 -0
  254. neutralino/_data/renderer/LICENSES/d3-shape@3.2.1/LICENSE +13 -0
  255. neutralino/_data/renderer/LICENSES/d3-time-format@4.1.1/LICENSE +13 -0
  256. neutralino/_data/renderer/LICENSES/d3-time@3.1.1/LICENSE +13 -0
  257. neutralino/_data/renderer/LICENSES/dayjs@1.11.23/LICENSE +21 -0
  258. neutralino/_data/renderer/LICENSES/decimal.js-light@2.5.1/LICENCE.md +23 -0
  259. neutralino/_data/renderer/LICENSES/diff@9.0.0/LICENSE +29 -0
  260. neutralino/_data/renderer/LICENSES/dompurify@3.5.1/LICENSE +202 -0
  261. neutralino/_data/renderer/LICENSES/dompurify@3.5.1/LICENSE-MPL +373 -0
  262. neutralino/_data/renderer/LICENSES/embla-carousel-react@8.6.0/MIT-embla-carousel.txt +21 -0
  263. neutralino/_data/renderer/LICENSES/embla-carousel-reactive-utils@8.6.0/MIT-embla-carousel.txt +21 -0
  264. neutralino/_data/renderer/LICENSES/embla-carousel@8.6.0/MIT-embla-carousel.txt +21 -0
  265. neutralino/_data/renderer/LICENSES/es-toolkit@1.53.2/LICENSE +21 -0
  266. neutralino/_data/renderer/LICENSES/es-toolkit@1.53.2/NOTICE +39 -0
  267. neutralino/_data/renderer/LICENSES/eventemitter3@5.0.4/LICENSE +21 -0
  268. neutralino/_data/renderer/LICENSES/fast-equals@5.4.7/LICENSE +21 -0
  269. neutralino/_data/renderer/LICENSES/file-selector@5.0.3/LICENSE +21 -0
  270. neutralino/_data/renderer/LICENSES/get-nonce@1.0.1/LICENSE +21 -0
  271. neutralino/_data/renderer/LICENSES/immer@11.2.14/LICENSE +21 -0
  272. neutralino/_data/renderer/LICENSES/linkifyjs@4.4.0/LICENSE +19 -0
  273. neutralino/_data/renderer/LICENSES/marked@18.4.0/LICENSE +44 -0
  274. neutralino/_data/renderer/LICENSES/neutralino.js@6.11.0/LICENSE +21 -0
  275. neutralino/_data/renderer/LICENSES/orderedmap@2.1.1/LICENSE +19 -0
  276. neutralino/_data/renderer/LICENSES/packages.json +1838 -0
  277. neutralino/_data/renderer/LICENSES/prosemirror-commands@1.7.2/LICENSE +19 -0
  278. neutralino/_data/renderer/LICENSES/prosemirror-dropcursor@1.8.4/LICENSE +19 -0
  279. neutralino/_data/renderer/LICENSES/prosemirror-gapcursor@1.4.1/LICENSE +19 -0
  280. neutralino/_data/renderer/LICENSES/prosemirror-history@1.5.2/LICENSE +19 -0
  281. neutralino/_data/renderer/LICENSES/prosemirror-keymap@1.2.3/LICENSE +19 -0
  282. neutralino/_data/renderer/LICENSES/prosemirror-model@1.25.13/LICENSE +19 -0
  283. neutralino/_data/renderer/LICENSES/prosemirror-schema-list@1.6.1/LICENSE +19 -0
  284. neutralino/_data/renderer/LICENSES/prosemirror-state@1.4.4/LICENSE +19 -0
  285. neutralino/_data/renderer/LICENSES/prosemirror-transform@1.12.7/LICENSE +19 -0
  286. neutralino/_data/renderer/LICENSES/prosemirror-view@1.44.0/LICENSE +19 -0
  287. neutralino/_data/renderer/LICENSES/react-dom@19.3.1/LICENSE +21 -0
  288. neutralino/_data/renderer/LICENSES/react-dropzone@20.1.4/LICENSE +22 -0
  289. neutralino/_data/renderer/LICENSES/react-is@19.3.1/LICENSE +21 -0
  290. neutralino/_data/renderer/LICENSES/react-number-format@5.4.5/LICENSE +21 -0
  291. neutralino/_data/renderer/LICENSES/react-redux@9.3.1/LICENSE.md +21 -0
  292. neutralino/_data/renderer/LICENSES/react-remove-scroll-bar@2.3.8/MIT-react-remove-scroll-bar.txt +21 -0
  293. neutralino/_data/renderer/LICENSES/react-remove-scroll@2.7.2/LICENSE +21 -0
  294. neutralino/_data/renderer/LICENSES/react-style-singleton@2.2.3/LICENSE +21 -0
  295. neutralino/_data/renderer/LICENSES/react-transition-group@4.4.5/LICENSE +30 -0
  296. neutralino/_data/renderer/LICENSES/react@19.3.1/LICENSE +21 -0
  297. neutralino/_data/renderer/LICENSES/recharts@3.11.3/LICENSE +22 -0
  298. neutralino/_data/renderer/LICENSES/redux-thunk@3.1.0/LICENSE.md +21 -0
  299. neutralino/_data/renderer/LICENSES/redux@5.0.1/LICENSE.md +21 -0
  300. neutralino/_data/renderer/LICENSES/reselect@5.2.0/LICENSE +21 -0
  301. neutralino/_data/renderer/LICENSES/rolldown@1.3.4/LICENSE +25 -0
  302. neutralino/_data/renderer/LICENSES/rope-sequence@1.3.4/LICENSE +19 -0
  303. neutralino/_data/renderer/LICENSES/rrule@2.8.1/LICENCE +65 -0
  304. neutralino/_data/renderer/LICENSES/scheduler@0.28.0/LICENSE +21 -0
  305. neutralino/_data/renderer/LICENSES/style-mod@4.1.5/LICENSE +19 -0
  306. neutralino/_data/renderer/LICENSES/tiny-invariant@1.3.3/LICENSE +21 -0
  307. neutralino/_data/renderer/LICENSES/tslib@2.9.1/LICENSE.txt +12 -0
  308. neutralino/_data/renderer/LICENSES/use-callback-ref@1.3.3/LICENSE +21 -0
  309. neutralino/_data/renderer/LICENSES/use-sidecar@1.1.3/LICENSE +21 -0
  310. neutralino/_data/renderer/LICENSES/use-sync-external-store@1.7.0/LICENSE +21 -0
  311. neutralino/_data/renderer/LICENSES/victory-vendor@38.1.1/LICENSE.txt +150 -0
  312. neutralino/_data/renderer/LICENSES/vite@8.4.1/LICENSE.md +2320 -0
  313. neutralino/_data/renderer/LICENSES/w3c-keyname@2.2.8/LICENSE +19 -0
  314. neutralino/_data/renderer/assets/IconGripVertical-C2NUKJAE.js +1 -0
  315. neutralino/_data/renderer/assets/carousel-D1j1SkWR.css +1 -0
  316. neutralino/_data/renderer/assets/carousel-DHnOKa8c.js +1 -0
  317. neutralino/_data/renderer/assets/chunk-CCkLOSkX.css +1 -0
  318. neutralino/_data/renderer/assets/chunk-CLVygP7p.js +9 -0
  319. neutralino/_data/renderer/assets/codehighlight-CXJaU0yv.js +10 -0
  320. neutralino/_data/renderer/assets/codehighlight-THJMNDh8.css +1 -0
  321. neutralino/_data/renderer/assets/codemirror-DX0MbxKq.js +2 -0
  322. neutralino/_data/renderer/assets/css-BotC7byr.js +1 -0
  323. neutralino/_data/renderer/assets/dist-3kB5bJpS.js +23 -0
  324. neutralino/_data/renderer/assets/dist-6zrr4MrK.js +1 -0
  325. neutralino/_data/renderer/assets/dist-Beotrn8G.js +1 -0
  326. neutralino/_data/renderer/assets/dist-CCJHv8n0.js +11 -0
  327. neutralino/_data/renderer/assets/dist-CdYA9or5.js +1 -0
  328. neutralino/_data/renderer/assets/dist-D2p_6o_g.js +1 -0
  329. neutralino/_data/renderer/assets/dnd-DkNumIKC.js +5 -0
  330. neutralino/_data/renderer/assets/dropzone-aPCBPjDN.css +1 -0
  331. neutralino/_data/renderer/assets/dropzone-agrigkXv.js +1 -0
  332. neutralino/_data/renderer/assets/embla-carousel-react.esm-_ztrE73N.js +1 -0
  333. neutralino/_data/renderer/assets/emoji-Cj3VQHg8.js +1 -0
  334. neutralino/_data/renderer/assets/emoji-DV8OzU1E.css +1 -0
  335. neutralino/_data/renderer/assets/esm-DbOmMyz5.js +82 -0
  336. neutralino/_data/renderer/assets/highlight-Dlb5DJwL.css +1 -0
  337. neutralino/_data/renderer/assets/highlight-LH6Cyuz6.js +3 -0
  338. neutralino/_data/renderer/assets/html-CpATC083.js +1 -0
  339. neutralino/_data/renderer/assets/icon-chunk-C-4QDF6w.js +1 -0
  340. neutralino/_data/renderer/assets/index-CqHW60Dy.js +69 -0
  341. neutralino/_data/renderer/assets/index-TWpF4Lef.css +1 -0
  342. neutralino/_data/renderer/assets/javascript-D2QSKlDI.js +1 -0
  343. neutralino/_data/renderer/assets/json-D8zfYii3.js +1 -0
  344. neutralino/_data/renderer/assets/lightbox-BijRfmPy.js +1 -0
  345. neutralino/_data/renderer/assets/lightbox-BzKDpkAD.css +1 -0
  346. neutralino/_data/renderer/assets/markdown-Cpthnhzg.js +77 -0
  347. neutralino/_data/renderer/assets/markdown-CsS2tf5C.js +5 -0
  348. neutralino/_data/renderer/assets/python-B477ud9A.js +9 -0
  349. neutralino/_data/renderer/assets/richtext-BwtgvH7-.js +137 -0
  350. neutralino/_data/renderer/assets/richtext-DIAsHMuK.css +1 -0
  351. neutralino/_data/renderer/assets/spotlight-Ccstaz1-.css +1 -0
  352. neutralino/_data/renderer/assets/spotlight-Db1pwUWd.js +1 -0
  353. neutralino/_data/renderer/assets/sql-DbpHRl6F.js +2 -0
  354. neutralino/_data/renderer/assets/with-selector-CUfuSYau.js +1 -0
  355. neutralino/_data/renderer/assets/yaml-BPsr1O3S.js +1 -0
  356. neutralino/_data/renderer/index.html +22 -0
  357. neutralino/_data/renderer/manifest.json +202 -0
  358. neutralino/_data/renderer/neutralino.js +1 -0
  359. neutralino/_data/renderer/shared/mantine-core.mjs +5 -0
  360. neutralino/_data/renderer/shared/mantine-hooks.mjs +5 -0
  361. neutralino/_data/renderer/shared/react-dom-client.mjs +5 -0
  362. neutralino/_data/renderer/shared/react-dom.mjs +6 -0
  363. neutralino/_data/renderer/shared/react-jsx-runtime.mjs +5 -0
  364. neutralino/_data/renderer/shared/react.mjs +6 -0
  365. neutralino/_data/skills/README.md +6 -0
  366. neutralino/_data/skills/neutralino-app-patterns/SKILL.md +101 -0
  367. neutralino/_data/skills/neutralino-app-patterns/references/dashboards-and-background-work.md +55 -0
  368. neutralino/_data/skills/neutralino-app-patterns/references/storage-and-settings.md +57 -0
  369. neutralino/_data/skills/neutralino-app-patterns/references/tables-and-crud.md +81 -0
  370. neutralino/_data/skills/neutralino-frontend/SKILL.md +121 -0
  371. neutralino/_data/skills/neutralino-frontend/references/bridge.md +63 -0
  372. neutralino/_data/skills/neutralino-frontend/references/custom-components.md +84 -0
  373. neutralino/_data/skills/neutralino-frontend/references/frameworks.md +61 -0
  374. neutralino/_data/skills/neutralino-maintenance/SKILL.md +85 -0
  375. neutralino/_data/skills/neutralino-maintenance/references/platforms-and-gates.md +35 -0
  376. neutralino/_data/skills/neutralino-maintenance/references/records.md +38 -0
  377. neutralino/_data/skills/neutralino-maintenance/references/review-process.md +36 -0
  378. neutralino/_data/skills/neutralino-native/SKILL.md +107 -0
  379. neutralino/_data/skills/neutralino-native/references/api-conventions.md +72 -0
  380. neutralino/_data/skills/neutralino-native/references/desktop-helpers.md +53 -0
  381. neutralino/_data/skills/neutralino-native/references/permissions-windows.md +53 -0
  382. neutralino/_data/skills/neutralino-packaging/SKILL.md +99 -0
  383. neutralino/_data/skills/neutralino-packaging/references/build-layout.md +51 -0
  384. neutralino/_data/skills/neutralino-packaging/references/managed-install.md +59 -0
  385. neutralino/_data/skills/neutralino-packaging/references/templates-and-config.md +63 -0
  386. neutralino/_data/skills/neutralino-python/SKILL.md +109 -0
  387. neutralino/_data/skills/neutralino-python/references/architecture.md +53 -0
  388. neutralino/_data/skills/neutralino-python/references/cli.md +60 -0
  389. neutralino/_data/skills/neutralino-python/references/platforms-security.md +44 -0
  390. neutralino/_data/skills/neutralino-rpc/SKILL.md +114 -0
  391. neutralino/_data/skills/neutralino-rpc/references/errors-and-limits.md +44 -0
  392. neutralino/_data/skills/neutralino-rpc/references/expose-and-context.md +74 -0
  393. neutralino/_data/skills/neutralino-rpc/references/streams-and-cancellation.md +53 -0
  394. neutralino/_data/skills/neutralino-ui/SKILL.md +115 -0
  395. neutralino/_data/skills/neutralino-ui/references/components-and-tree.md +74 -0
  396. neutralino/_data/skills/neutralino-ui/references/state-forms-events.md +85 -0
  397. neutralino/_data/skills/neutralino-ui/references/themes-profiles-assets.md +105 -0
  398. neutralino/_data/skills/neutralino-updates/SKILL.md +94 -0
  399. neutralino/_data/skills/neutralino-updates/references/config-and-api.md +80 -0
  400. neutralino/_data/skills/neutralino-updates/references/releases-and-install.md +77 -0
  401. neutralino/_data/skills/neutralino-updates/references/security-rollback.md +48 -0
  402. neutralino/_data/ui/contracts.json +32927 -0
  403. neutralino/_data/ui/emoji.json +1 -0
  404. neutralino/_data/upstream-lock.json +97 -0
  405. neutralino/_managed.py +1099 -0
  406. neutralino/_paths.py +220 -0
  407. neutralino/_platform.py +150 -0
  408. neutralino/_scaffold.py +344 -0
  409. neutralino/api/_base.py +99 -0
  410. neutralino/api/_custom.py +1350 -0
  411. neutralino/api/_dec.py +21 -0
  412. neutralino/api/_enc.py +80 -0
  413. neutralino/api/app.py +119 -0
  414. neutralino/api/clipboard.py +101 -0
  415. neutralino/api/computer.py +261 -0
  416. neutralino/api/custom.py +36 -0
  417. neutralino/api/debug.py +41 -0
  418. neutralino/api/extensions.py +57 -0
  419. neutralino/api/filesystem.py +633 -0
  420. neutralino/api/net.py +22 -0
  421. neutralino/api/os.py +508 -0
  422. neutralino/api/resources.py +124 -0
  423. neutralino/api/server.py +66 -0
  424. neutralino/api/storage.py +98 -0
  425. neutralino/api/types.py +342 -0
  426. neutralino/api/updater.py +22 -0
  427. neutralino/api/window.py +397 -0
  428. neutralino/application.py +1261 -0
  429. neutralino/bundle.py +187 -0
  430. neutralino/cli.py +629 -0
  431. neutralino/client.py +496 -0
  432. neutralino/config.py +671 -0
  433. neutralino/devtools.py +1973 -0
  434. neutralino/errors.py +142 -0
  435. neutralino/events.py +579 -0
  436. neutralino/execution.py +293 -0
  437. neutralino/extension.py +134 -0
  438. neutralino/frontend/python-bridge.d.ts +207 -0
  439. neutralino/frontend/python-bridge.mjs +854 -0
  440. neutralino/protocol.py +456 -0
  441. neutralino/py.typed +0 -0
  442. neutralino/rpc.py +1625 -0
  443. neutralino/runtime.py +591 -0
  444. neutralino/supervisor.py +866 -0
  445. neutralino/sync_client.py +376 -0
  446. neutralino/templates/default/app.py +32 -0
  447. neutralino/templates/default/frontend/app.js +28 -0
  448. neutralino/templates/default/frontend/index.html +26 -0
  449. neutralino/templates/default/frontend/neutralino.js +1 -0
  450. neutralino/templates/default/frontend/styles.css +8 -0
  451. neutralino/templates/default/gitignore.txt +3 -0
  452. neutralino/templates/default/neutralino.config.json +25 -0
  453. neutralino/templates/hybrid/README.md +17 -0
  454. neutralino/templates/hybrid/app.py +49 -0
  455. neutralino/templates/hybrid/components/counter.mjs +37 -0
  456. neutralino/templates/hybrid/styles.css +21 -0
  457. neutralino/templates/python-ui/README.md +15 -0
  458. neutralino/templates/python-ui/app.py +44 -0
  459. neutralino/templates/python-ui/gitignore.txt +3 -0
  460. neutralino/templates/python-ui/requirements.txt +4 -0
  461. neutralino/templates/react/README.md +28 -0
  462. neutralino/templates/react/app.py +52 -0
  463. neutralino/templates/react/components/widget.mjs +23 -0
  464. neutralino/templates/react/widget/package.json +20 -0
  465. neutralino/templates/react/widget/src/Widget.jsx +25 -0
  466. neutralino/templates/react/widget/vite.config.mjs +19 -0
  467. neutralino/transport.py +661 -0
  468. neutralino/types.py +93 -0
  469. neutralino/ui/__init__.py +139 -0
  470. neutralino/ui/_app.py +1529 -0
  471. neutralino/ui/_assets.py +407 -0
  472. neutralino/ui/_bases.py +1210 -0
  473. neutralino/ui/_behaviours.py +1066 -0
  474. neutralino/ui/_charts.py +732 -0
  475. neutralino/ui/_component.py +882 -0
  476. neutralino/ui/_dates.py +168 -0
  477. neutralino/ui/_desktop.py +879 -0
  478. neutralino/ui/_events.py +192 -0
  479. neutralino/ui/_filters.py +427 -0
  480. neutralino/ui/_forms.py +282 -0
  481. neutralino/ui/_protocol.py +201 -0
  482. neutralino/ui/_schedule.py +543 -0
  483. neutralino/ui/_security.py +106 -0
  484. neutralino/ui/_session.py +969 -0
  485. neutralino/ui/_state.py +199 -0
  486. neutralino/ui/_tables.py +256 -0
  487. neutralino/ui/_theme.py +154 -0
  488. neutralino/ui/blocks/__init__.py +19 -0
  489. neutralino/ui/blocks/_data.py +2239 -0
  490. neutralino/ui/blocks/_interactive.py +622 -0
  491. neutralino/ui/blocks/_layout.py +2967 -0
  492. neutralino/ui/components/__init__.py +81 -0
  493. neutralino/ui/components/_dates.py +879 -0
  494. neutralino/ui/components/_editors.py +217 -0
  495. neutralino/ui/components/_extensions.py +790 -0
  496. neutralino/ui/components/_extras.py +303 -0
  497. neutralino/ui/components/_generated.py +30565 -0
  498. neutralino/ui/components/_types.py +17 -0
  499. neutralino/ui/schema.py +824 -0
  500. neutralino/ui/validators.py +362 -0
  501. neutralino/updates/__init__.py +96 -0
  502. neutralino/updates/_http.py +320 -0
  503. neutralino/updates/_layout.py +762 -0
  504. neutralino/updates/archive.py +216 -0
  505. neutralino/updates/config.py +256 -0
  506. neutralino/updates/errors.py +97 -0
  507. neutralino/updates/install.sh.in +201 -0
  508. neutralino/updates/launcher.py +18 -0
  509. neutralino/updates/manager.py +808 -0
  510. neutralino/updates/manifest.py +196 -0
  511. neutralino/updates/release.py +314 -0
  512. neutralino/updates/semver.py +84 -0
  513. neutralino/updates/sources.py +392 -0
  514. neutralino/windows.py +316 -0
  515. neutralino_python-0.1.0rc1.dist-info/METADATA +117 -0
  516. neutralino_python-0.1.0rc1.dist-info/RECORD +521 -0
  517. neutralino_python-0.1.0rc1.dist-info/WHEEL +4 -0
  518. neutralino_python-0.1.0rc1.dist-info/entry_points.txt +3 -0
  519. neutralino_python-0.1.0rc1.dist-info/licenses/LICENSE +21 -0
  520. neutralino_python-0.1.0rc1.dist-info/licenses/THIRD_PARTY_NOTICES.md +16 -0
  521. neutralino_python-0.1.0rc1.dist-info/licenses/src/neutralino/_data/renderer/LICENSES/packages.json +1838 -0
@@ -0,0 +1,148 @@
1
+ # Native API reference
2
+
3
+ Generated from the API inventory of this version.
4
+
5
+ - `app.broadcast` (wrapped): `app.app.broadcast(event, data=...)` -> void
6
+ - `app.exit` (wrapped): `app.app.exit(code=...)` -> void
7
+ - `app.getConfig` (wrapped): `app.app.get_config()` -> JSONObject
8
+ - `app.getProcessId` (wrapped): `app.app.get_process_id()` -> int
9
+ - `app.killProcess` (wrapped): `app.app.kill_process()` -> void
10
+ - `app.readProcessInput` (wrapped): `app.app.read_process_input(read_all=...)` -> str
11
+ - `app.restartProcess` (wrapped): `app.app.restart_process(args=...)` -> void
12
+ - `app.writeProcessError` (wrapped): `app.app.write_process_error(data)` -> void
13
+ - `app.writeProcessOutput` (wrapped): `app.app.write_process_output(data)` -> void
14
+ - `clipboard.clear` (wrapped): `app.clipboard.clear()` -> void
15
+ - `clipboard.getFormat` (wrapped): `app.clipboard.get_format()` -> str
16
+ - `clipboard.readHTML` (wrapped): `app.clipboard.read_html()` -> str
17
+ - `clipboard.readImage` (wrapped): `app.clipboard.read_image(format=...)` -> ClipboardImage | None
18
+ - `clipboard.readText` (wrapped): `app.clipboard.read_text()` -> str
19
+ - `clipboard.writeHTML` (wrapped): `app.clipboard.write_html(data)` -> void
20
+ - `clipboard.writeImage` (wrapped): `app.clipboard.write_image(image)` -> void
21
+ - `clipboard.writeText` (wrapped): `app.clipboard.write_text(data)` -> void
22
+ - `computer.getArch` (wrapped): `app.computer.get_arch()` -> str
23
+ - `computer.getCPUInfo` (wrapped): `app.computer.get_cpu_info()` -> CPUInfo
24
+ - `computer.getDisks` (wrapped): `app.computer.get_disks()` -> list[Disk]
25
+ - `computer.getDisplays` (wrapped): `app.computer.get_displays()` -> list[Display]
26
+ - `computer.getGPUs` (wrapped): `app.computer.get_gpus()` -> list[GPUInfo]
27
+ - `computer.getHostname` (wrapped): `app.computer.get_hostname()` -> str
28
+ - `computer.getKernelInfo` (wrapped): `app.computer.get_kernel_info()` -> KernelInfo
29
+ - `computer.getMachineId` (wrapped): `app.computer.get_machine_id()` -> str
30
+ - `computer.getMemoryInfo` (wrapped): `app.computer.get_memory_info()` -> MemoryInfo
31
+ - `computer.getMousePosition` (wrapped): `app.computer.get_mouse_position()` -> MousePosition
32
+ - `computer.getNetworkInterfaces` (wrapped): `app.computer.get_network_interfaces()` -> dict[str, list[NetworkInterface]]
33
+ - `computer.getOSInfo` (wrapped): `app.computer.get_os_info()` -> OSInfo
34
+ - `computer.sendKey` (wrapped): `app.computer.send_key(key, state=...)` -> void
35
+ - `computer.setMouseGrabbing` (wrapped): `app.computer.set_mouse_grabbing(grabbing)` -> void
36
+ - `computer.setMousePosition` (wrapped): `app.computer.set_mouse_position(x, y)` -> void
37
+ - `custom.getMethods` (wrapped): `app.custom.get_methods()` -> list[str]
38
+ - `debug.log` (wrapped): `app.debug.log(message, type=...)` -> void
39
+ - `events.broadcast` (wrapped): `app.events.broadcast(event, data=...)` -> void
40
+ - `events.dispatch` (sdk-equivalent): `app.events.dispatch()` -> void
41
+ - `events.off` (sdk-equivalent): `app.events.off()` -> void
42
+ - `events.on` (sdk-equivalent): `app.events.on()` -> void
43
+ - `extensions.broadcast` (wrapped): `app.extensions.broadcast(event, data=...)` -> void
44
+ - `extensions.dispatch` (wrapped): `app.extensions.dispatch(extension_id, event, data=...)` -> void
45
+ - `extensions.getStats` (wrapped): `app.extensions.get_stats()` -> ExtensionStats
46
+ - `filesystem.access` (wrapped): `app.filesystem.access(path, mode=...)` -> void
47
+ - `filesystem.appendBinaryFile` (wrapped): `app.filesystem.append_binary_file(path, data)` -> void
48
+ - `filesystem.appendFile` (wrapped): `app.filesystem.append_file(path, data)` -> void
49
+ - `filesystem.chmod` (wrapped): `app.filesystem.chmod(path, mode)` -> void
50
+ - `filesystem.chown` (wrapped): `app.filesystem.chown(path, uid, gid)` -> void
51
+ - `filesystem.copy` (wrapped): `app.filesystem.copy(source, destination, recursive=..., overwrite=..., skip=...)` -> void
52
+ - `filesystem.createDirectory` (wrapped): `app.filesystem.create_directory(path)` -> void
53
+ - `filesystem.createWatcher` (wrapped): `app.filesystem.create_watcher(path)` -> int
54
+ - `filesystem.getAbsolutePath` (wrapped): `app.filesystem.get_absolute_path(path)` -> str
55
+ - `filesystem.getJoinedPath` (wrapped): `app.filesystem.get_joined_path(paths)` -> str
56
+ - `filesystem.getNormalizedPath` (wrapped): `app.filesystem.get_normalized_path(path)` -> str
57
+ - `filesystem.getOpenedFileInfo` (wrapped): `app.filesystem.get_opened_file_info(file_id)` -> OpenedFileInfo
58
+ - `filesystem.getOpenedFiles` (wrapped): `app.filesystem.get_opened_files()` -> list[int]
59
+ - `filesystem.getPathParts` (wrapped): `app.filesystem.get_path_parts(path)` -> PathParts
60
+ - `filesystem.getPermissions` (wrapped): `app.filesystem.get_permissions(path)` -> Permissions
61
+ - `filesystem.getRelativePath` (wrapped): `app.filesystem.get_relative_path(path, base=...)` -> str
62
+ - `filesystem.getStats` (wrapped): `app.filesystem.get_stats(path)` -> Stats
63
+ - `filesystem.getUnnormalizedPath` (wrapped): `app.filesystem.get_unnormalized_path(path)` -> str
64
+ - `filesystem.getWatchers` (wrapped): `app.filesystem.get_watchers()` -> list[Watcher]
65
+ - `filesystem.move` (wrapped): `app.filesystem.move(source, destination)` -> void
66
+ - `filesystem.openFile` (wrapped): `app.filesystem.open_file(path)` -> int
67
+ - `filesystem.readBinaryFile` (wrapped): `app.filesystem.read_binary_file(path, pos=..., size=...)` -> bytes
68
+ - `filesystem.readDirectory` (wrapped): `app.filesystem.read_directory(path, recursive=...)` -> list[DirectoryEntry]
69
+ - `filesystem.readFile` (wrapped): `app.filesystem.read_file(path, pos=..., size=...)` -> str
70
+ - `filesystem.remove` (wrapped): `app.filesystem.remove(path)` -> void
71
+ - `filesystem.removeWatcher` (wrapped): `app.filesystem.remove_watcher(watcher_id)` -> int
72
+ - `filesystem.setPermissions` (wrapped): `app.filesystem.set_permissions(path, permissions, mode=...)` -> int
73
+ - `filesystem.updateOpenedFile` (wrapped): `app.filesystem.update_opened_file(file_id, event, data=...)` -> void
74
+ - `filesystem.writeBinaryFile` (wrapped): `app.filesystem.write_binary_file(path, data)` -> void
75
+ - `filesystem.writeFile` (wrapped): `app.filesystem.write_file(path, data)` -> void
76
+ - `init` (sdk-equivalent): `app.init.None()` -> void
77
+ - `net.delete` (wrapped): `app.net.delete(url, timeout_ms=..., params=..., headers=..., auth=..., body=..., allow_redirects=..., encode_path=..., keep_alive=..., content_type=...)` -> NetResponse
78
+ - `net.get` (wrapped): `app.net.get(url, timeout_ms=..., params=..., headers=..., auth=..., body=..., allow_redirects=..., encode_path=..., keep_alive=..., content_type=...)` -> NetResponse
79
+ - `net.head` (wrapped): `app.net.head(url, timeout_ms=..., params=..., headers=..., auth=..., body=..., allow_redirects=..., encode_path=..., keep_alive=..., content_type=...)` -> NetResponse
80
+ - `net.options` (wrapped): `app.net.options(url, timeout_ms=..., params=..., headers=..., auth=..., body=..., allow_redirects=..., encode_path=..., keep_alive=..., content_type=...)` -> NetResponse
81
+ - `net.patch` (wrapped): `app.net.patch(url, timeout_ms=..., params=..., headers=..., auth=..., body=..., allow_redirects=..., encode_path=..., keep_alive=..., content_type=...)` -> NetResponse
82
+ - `net.post` (wrapped): `app.net.post(url, timeout_ms=..., params=..., headers=..., auth=..., body=..., allow_redirects=..., encode_path=..., keep_alive=..., content_type=...)` -> NetResponse
83
+ - `net.put` (wrapped): `app.net.put(url, timeout_ms=..., params=..., headers=..., auth=..., body=..., allow_redirects=..., encode_path=..., keep_alive=..., content_type=...)` -> NetResponse
84
+ - `net.request` (wrapped): `app.net.request(url, method=..., timeout_ms=..., params=..., headers=..., auth=..., body=..., allow_redirects=..., encode_path=..., keep_alive=..., content_type=...)` -> NetResponse
85
+ - `os.execCommand` (wrapped): `app.os.exec_command(command, stdin=..., background=..., cwd=..., envs=...)` -> ExecCommandResult
86
+ - `os.getEnv` (wrapped): `app.os.get_env(key)` -> str
87
+ - `os.getEnvs` (wrapped): `app.os.get_envs()` -> dict[str, str]
88
+ - `os.getLocaleInfo` (wrapped): `app.os.get_locale_info()` -> LocaleInfo
89
+ - `os.getPath` (wrapped): `app.os.get_path(name)` -> str
90
+ - `os.getSpawnedProcesses` (wrapped): `app.os.get_spawned_processes()` -> list[SpawnedProcess]
91
+ - `os.open` (wrapped): `app.os.open(url)` -> void
92
+ - `os.setEnv` (wrapped): `app.os.set_env(key, value)` -> void
93
+ - `os.setTray` (wrapped): `app.os.set_tray(icon=..., menu_items=..., use_template_icon=...)` -> void
94
+ - `os.showFolderDialog` (wrapped): `app.os.show_folder_dialog(title=..., default_path=...)` -> str
95
+ - `os.showMessageBox` (wrapped): `app.os.show_message_box(title, content, choice=..., icon=...)` -> str
96
+ - `os.showNotification` (wrapped): `app.os.show_notification(title, content, icon=...)` -> void
97
+ - `os.showOpenDialog` (wrapped): `app.os.show_open_dialog(title=..., multi_selections=..., filters=..., default_path=...)` -> list[str]
98
+ - `os.showSaveDialog` (wrapped): `app.os.show_save_dialog(title=..., force_overwrite=..., filters=..., default_path=...)` -> str
99
+ - `os.spawnProcess` (wrapped): `app.os.spawn_process(command, cwd=..., envs=...)` -> SpawnedProcess
100
+ - `os.trashItem` (wrapped): `app.os.trash_item(path)` -> void
101
+ - `os.updateSpawnedProcess` (wrapped): `app.os.update_spawned_process(process_id, event, data=...)` -> void
102
+ - `resources.extractDirectory` (wrapped): `app.resources.extract_directory(path, destination)` -> void
103
+ - `resources.extractFile` (wrapped): `app.resources.extract_file(path, destination)` -> void
104
+ - `resources.getFiles` (wrapped): `app.resources.get_files()` -> list[str]
105
+ - `resources.getStats` (wrapped): `app.resources.get_stats(path)` -> ResourceStats
106
+ - `resources.readBinaryFile` (wrapped): `app.resources.read_binary_file(path)` -> bytes
107
+ - `resources.readFile` (wrapped): `app.resources.read_file(path)` -> str
108
+ - `server.getMounts` (wrapped): `app.server.get_mounts()` -> dict[str, str]
109
+ - `server.mount` (wrapped): `app.server.mount(path, target)` -> void
110
+ - `server.unmount` (wrapped): `app.server.unmount(path)` -> void
111
+ - `storage.clear` (wrapped): `app.storage.clear()` -> void
112
+ - `storage.getData` (wrapped): `app.storage.get_data(key)` -> str
113
+ - `storage.getKeys` (wrapped): `app.storage.get_keys()` -> list[str]
114
+ - `storage.removeData` (wrapped): `app.storage.remove_data(key)` -> void
115
+ - `storage.setData` (wrapped): `app.storage.set_data(key, data)` -> void
116
+ - `updater.checkForUpdates` (wrapped): `app.updater.check_for_updates(url)` -> UpdateManifest
117
+ - `updater.install` (wrapped): `app.updater.install()` -> void
118
+ - `window.beginDrag` (wrapped): `app.window.begin_drag(screen_x=..., screen_y=...)` -> void
119
+ - `window.center` (wrapped): `app.window.center()` -> void
120
+ - `window.create` (wrapped): `app.window.create(url, options=...)` -> void
121
+ - `window.exitFullScreen` (wrapped): `app.window.exit_full_screen()` -> void
122
+ - `window.focus` (wrapped): `app.window.focus()` -> void
123
+ - `window.getPosition` (wrapped): `app.window.get_position()` -> WindowPosition
124
+ - `window.getSize` (wrapped): `app.window.get_size()` -> WindowSize
125
+ - `window.getTitle` (wrapped): `app.window.get_title()` -> str
126
+ - `window.hide` (wrapped): `app.window.hide()` -> void
127
+ - `window.isFullScreen` (wrapped): `app.window.is_full_screen()` -> bool
128
+ - `window.isMaximized` (wrapped): `app.window.is_maximized()` -> bool
129
+ - `window.isMinimized` (wrapped): `app.window.is_minimized()` -> bool
130
+ - `window.isVisible` (wrapped): `app.window.is_visible()` -> bool
131
+ - `window.maximize` (wrapped): `app.window.maximize()` -> void
132
+ - `window.minimize` (wrapped): `app.window.minimize()` -> void
133
+ - `window.move` (wrapped): `app.window.move(x, y)` -> void
134
+ - `window.print` (wrapped): `app.window.print()` -> void
135
+ - `window.setAlwaysOnTop` (wrapped): `app.window.set_always_on_top(on_top)` -> void
136
+ - `window.setBadge` (wrapped): `app.window.set_badge(count)` -> void
137
+ - `window.setBorderless` (wrapped): `app.window.set_borderless(borderless)` -> void
138
+ - `window.setDraggableRegion` (js-only): `app.window.None()` -> void
139
+ - `window.setFullScreen` (wrapped): `app.window.set_full_screen()` -> void
140
+ - `window.setIcon` (wrapped): `app.window.set_icon(icon)` -> void
141
+ - `window.setMainMenu` (wrapped): `app.window.set_main_menu(menu)` -> void
142
+ - `window.setSize` (wrapped): `app.window.set_size(width=..., height=..., min_width=..., min_height=..., max_width=..., max_height=..., resizable=...)` -> void
143
+ - `window.setTitle` (wrapped): `app.window.set_title(title)` -> void
144
+ - `window.show` (wrapped): `app.window.show()` -> void
145
+ - `window.snapshot` (wrapped): `app.window.snapshot(path)` -> void
146
+ - `window.unmaximize` (wrapped): `app.window.unmaximize()` -> void
147
+ - `window.unminimize` (wrapped): `app.window.unminimize()` -> void
148
+ - `window.unsetDraggableRegion` (js-only): `app.window.None()` -> void
@@ -0,0 +1,60 @@
1
+ # Security model
2
+
3
+ Measured behaviour and limits are recorded in `reports/security.md`; this page is the user-facing summary.
4
+
5
+ - **Trust domain.** The runtime, every page it serves and the Python backend are one trust domain. RPC peer ids route messages; they do not authenticate anyone. Do not load untrusted remote content into a window that has the native API.
6
+ - **Same privileges as the page.** Upstream applies `nativeAllowList`, `nativeBlockList`, `commandAllowList` and `filesystemScopes` to the Python extension connection exactly like to the page (ADR-006). Keep the allow list minimal; do privileged work in exposed Python functions that validate their inputs.
7
+ - **Least-privilege default allow list.** `Application(resources=...)` without a config and without `native_allow_list=` sets `nativeAllowList` to the SDK minimum only: `app.broadcast`, `extensions.getStats` (the backend session), `extensions.dispatch` (page -> Python calls) and `app.exit` (graceful stop). Because the same list applies to the Python backend (ADR-006), Python's own native calls (`app.computer.get_arch()`, `app.window.set_title()`, ...) need their routes too: `native_allow_list=[...]` adds them to the minimum, and `native_allow_list="*"` opts in to upstream's everything-allowed behaviour. A config that sets its own `nativeAllowList`/`nativeBlockList` is used as written (it must still allow the SDK routes). Add `filesystemScopes` when you touch files and give every page a restrictive Content-Security-Policy.
8
+
9
+ `filesystemScopes` maps a folder to `"read"`, `"write"` or `"read-write"` (exactly these; the SDK refuses other values, which upstream would silently ignore and so deny every path). Keys may use upstream's path constants (`${NL_PATH}`, `${NL_OSHOMEPATH}`, ...); there are no globs: a scope covers the folder and everything below it. Once the key is set, every `filesystem.*` path outside the scopes fails with `NE_FS_SCOPERR`, for the page and for Python alike:
10
+
11
+ ```python
12
+ app = ui.Application(
13
+ title="Files",
14
+ profile="custom",
15
+ native_allow_list=[*ui.profile_routes("restricted"), "filesystem.readFile"],
16
+ config={"filesystemScopes": {str(root): "read-write", "${NL_OSHOMEPATH}/Documents": "read"}},
17
+ )
18
+ ```
19
+
20
+ (`config=` is passed through to the core `neutralino.Application`; tested by `test_ui_app_filesystem_scopes_through_config`.) `neutralino init` scaffolds both. (ADR-017 as amended; checked by `tests/unit/ui/test_ui_security.py::test_no_profile_keeps_core_defaults_and_explicit_lists`.)
21
+ - **Only explicit functions.** The frontend can call only functions you exposed. The SDK has no eval and no generic native proxy for pages.
22
+ - **Credentials.** The runtime token and connect token stay in memory, never in argv, environment, logs or `repr`. For SDK-launched runtimes the instance directory is private (0700 / user-only ACL on Windows), the exported auth file is created with umask 077 (0600) and deleted after connecting. Tokens are also kept out of traceback locals (for locals-capturing crash reporters). `AsyncClient.from_auth_file` refuses symlinks, non-regular files, files owned by another user, other-writable files, and group-writable files outside a private directory (`CredentialsError`). It does not delete the file; whoever started the runtime removes it. The runtime itself also hands the token out over HTTP (next point).
23
+ - **Local server (upstream limitation, ADR-016).** In window, browser and chrome modes the runtime listens on 127.0.0.1 only. Beyond that, upstream v6.11.0 protects little:
24
+ - The Host check (localhost/127.0.0.1), the connect token and the extension id are checked only on WebSocket upgrades. `Origin` is never checked.
25
+ - The HTTP server that serves your pages accepts any Host and does not normalise the path: `..%2f`, `%2e%2e%2f`, `%2e%2e/` and plain `../` in a raw request all leave the document root (a browser or curl without `--path-as-is` normalises the last two before sending; a raw client does not). Any local process, of any user, that finds the port can read every file the app's user can read, for as long as the app runs. Re-measured for P05.04: `reports/consolidation/p05/security/adr016-investigation.md`.
26
+ - `/__neutralino_globals.js` contains the access token. With the default `tokenSecurity: "one-time"` the first requester gets it: in window mode that is normally the app's own page, and the token is not served again afterwards. In browser mode the token is served to anyone who asks before the user's browser loads the page. With `tokenSecurity: "none"` it is served to everyone, always. Whoever holds the token can open a WebSocket from any Origin and call every native route the config allows.
27
+
28
+ The SDK cannot fix this without forking the runtime. It keeps `tokenSecurity: "one-time"` and window mode by default, and its config check refuses every `tokenSecurity` other than `"one-time"` (upstream treats any other value as `"none"`). Prefer window mode. Treat any other local user as able to read your files while the app runs, and do not run SDK apps on shared multi-user machines with data other users must not see.
29
+ - **Cloud mode** binds 0.0.0.0 and skips the Host check, so the file exposure above reaches the whole network. The SDK never selects it (including `doctor --smoke`, which uses a hidden window); an explicit `mode="cloud"` works but logs a warning.
30
+ - **Desktop helpers.** `os.exec_command`/`spawn_process` run the command string through `/bin/sh -c`. `commandAllowList` is not a shell filter: upstream checks only the first token. It refuses shell metacharacters (`;`, `|`, `&`, `$`, backticks, ...) only outside quotes, and an empty list allows everything. Measured natively with `commandAllowList: ["echo"]`: `echo "$(id -u)"` passed and printed the user id; `echo '$(id -u)'` printed the text literally; unquoted `echo $(id -u)` was refused (`NE_OS_CMDNALW`). Never build a command string from untrusted input, quoted or not. Run fixed commands you control, or do the work in Python.
31
+ - **Child processes outlive the app.** Upstream starts each `os.spawn_process` / `os.exec_command(background=True)` child in its own process group (`setpgid`) and does not stop it when the runtime exits. `Application.shutdown()` stops the runtime it owns, not these children. Stop them yourself before shutdown: `await client.os.update_spawned_process(p["id"], "exit")` for each `p` in `await client.os.get_spawned_processes()`. Background `exec_command` children are not in that list (the result carries only their `pid`), so prefer `spawn_process` for anything long-running. Upstream's `exit` sends SIGINT to the child's process group: a program that ignores SIGINT, or that moves itself into another group or session, keeps running, and the runtime does not track it.
32
+ - **Owned runtimes.** The SDK signals only the runtimes it launched, through their process handles. On Linux, if the Python process is killed (even with SIGKILL) its runtimes go down with it (`PR_SET_PDEATHSIG`), and the private instance directory of a dead SDK process is removed on the next SDK start. A forked child of the Python process never stops the parent's runtimes. Windows has no equivalent yet (unverified there). Children the runtime spawned (previous point) are not covered.
33
+ - **File modes.** SDK-launched runtimes (`Application`, managed windows) run with umask 077, so files the app creates through native APIs (`filesystem.write_file`, `create_directory`, `window.snapshot`, children of `exec_command`) are 0600 and directories 0700. Call `filesystem.set_permissions` or `chmod` if other users or groups must read them. Runtimes that start Python as an extension keep the umask they were started with.
34
+ - **Runtime integrity.** Runtime archives and binaries are checked against SHA-256 values in the shipped lock; unsafe archives are rejected. Upstream publishes no signatures, so a hash proves the bytes match the reviewed release, not more.
35
+
36
+ ## Native permission profiles (`neutralino.ui`)
37
+
38
+ `ui.Application` / `ui.AsyncApplication` take `profile=`:
39
+
40
+ | Profile | `nativeAllowList` | Use |
41
+ |---|---|---|
42
+ | `"restricted"` | `app.broadcast`, `app.exit`, `extensions.dispatch`, `extensions.getStats`, `window.setTitle` | Default of the `neutralino init` UI templates (`python-ui`, `hybrid`, `react`). What the UI engine needs: start-up, RPC both ways, graceful stop and `Window.set_title`. |
43
+ | `"trusted"` | `"restricted"` plus the routes of every typed desktop helper (`ui.desktop_routes()`): open/save/folder dialogs, message box, notifications, clipboard text, `os.open`, window geometry, full screen, icon | Trusted apps that use `app.open_file()`, `app.clipboard_text()`, `remember_geometry` and friends. Still no `os.execCommand`, `os.spawnProcess`, `filesystem.*`, `storage.*` or `computer.*`. |
44
+ | `"custom"` | exactly `native_allow_list=` (plus the SDK minimum), or `"*"` for every route | Anything else, e.g. `profile="custom", native_allow_list=[*ui.profile_routes("restricted"), "os.open"]`. |
45
+
46
+ `ui.profile_routes("restricted" | "trusted")` returns the list. `profile=None` (the default) keeps the core rules above unchanged, so existing code with `native_allow_list=` or a config list behaves as before. A fixed profile together with `native_allow_list=`, or with a config that sets its own `nativeAllowList`/`nativeBlockList`, is refused (`ValidationError`): permissions are set in one place. `remember_geometry=True` adds its four `window.*` routes to any profile (an explicit opt-in).
47
+
48
+ What a profile is and is not:
49
+
50
+ - It is the runtime's single permission policy, and it applies to the page **and** to the Python extension connection (ADR-006). An injected script that calls `Neutralino.os.execCommand(...)` or `Neutralino.filesystem.readFile(...)` gets `NE_RT_NATPRME`; so does Python's own `app.native.os.get_env(...)` under `"restricted"` (`tests/ui/test_security_native.py::test_restricted_profile_runs_the_ui_and_refuses_other_native_routes`).
51
+ - It is **not** a sandbox for Python. Python code runs with every privilege of its process (files, sockets, subprocesses) regardless of the profile. Keep privileged work in Python functions you wrote, validate their inputs, and expose only those.
52
+ - It does not fix the runtime's HTTP server (ADR-016, above): any local process that finds the port can read the user's files while the app runs, whatever the profile, and so can script that already runs in the page, with `fetch('/..%2f...')` (measured; the CSP allows same-origin `fetch()` for app data assets). A token holder is limited by the profile: with `"restricted"`, a WebSocket holding the token could call `extensions.getStats` but got `NE_RT_NATPRME` for `os.execCommand` (measured, `test_adr016_runtime_http_server_window_mode`).
53
+
54
+ The UI page also has, independently of the profile:
55
+
56
+ - **CSP** (`<meta http-equiv="Content-Security-Policy">` in the packaged `index.html`): `default-src 'self'; script-src 'self' 'sha256-<import map>'; style-src 'self' 'unsafe-inline'; connect-src 'self' ws://127.0.0.1:* ws://localhost:*; object-src 'none'; frame-src 'none'; base-uri 'self'; form-action 'none'`. No `unsafe-eval`; `style-src 'unsafe-inline'` is needed for Mantine's CSS variables and style props (ADR-019). Injected inline scripts and inline event handlers, also in `ui.Html(..., trusted=True)`, are blocked and reported as violations. The CSP limits what injected code can load or run; it does not stop code that already runs from calling `Neutralino.*` (only the allow list does).
57
+ - **Sanitising.** `ui.Html` without `trusted=True`, `ui.Markdown` and `ui.RichTextEditor` remove scripts, `on*` handlers, `javascript:` links, forms and inputs, and `iframe`/`object`/`svg` content before rendering (DOMPurify); their links open in the system browser (`os.open`, so the profile must allow it), never in the app window. Server-driven schemas (`ui.schema`) cannot create `CustomComponent`/`Html(trusted=True)` and bind events only to registered `Actions`.
58
+ - **Window isolation.** Each window's session is bound to its runtime connection; events, submits and queries with another window's ids, a foreign generation or another window's token are refused (`stale`/`UNSUPPORTED`).
59
+ - **Resources.** The page is served from a per-app staging directory with only the renderer and the files you added (`add_css_file`, `add_js_module`, `add_asset`, `add_asset_dir`); asset names with `..`, absolute or encoded segments are refused and `add_asset_dir` skips symlinks. This limits what the app *serves*; it does not stop the runtime's traversal (ADR-016).
60
+ - **Logs.** The runtime token, the connect token and UI payload values are not logged; rejected events are logged by reason only. The runtime's own output lines go to the `neutralino.runtime` logger (stdout at INFO), so an app that configures the root logger (`logging.basicConfig(filename=...)`) also records them, including the private instance path (`/tmp/neutralino-py-*/...`), never a token. To keep them out: `logging.getLogger("neutralino.runtime").setLevel(logging.WARNING)`.
@@ -0,0 +1,249 @@
1
+ # Python UI (`neutralino.ui`)
2
+
3
+ Build a desktop window in Python only: a typed component tree that the bundled React/Mantine
4
+ renderer draws, events that come back as Python callbacks. No Node.js is needed to develop, run or
5
+ build. The complete list of components, props, events and slots is the generated reference
6
+ `reference/components.md` of the installed docs (also `neutralino components list` and
7
+ `neutralino components describe NAME`).
8
+
9
+ ```python
10
+ from neutralino import ui
11
+
12
+ app = ui.Application(title="Inventory", width=520, height=320, profile="restricted")
13
+
14
+
15
+ @app.page("/")
16
+ def home() -> None:
17
+ with ui.Stack(gap="md", p="lg"):
18
+ name = ui.TextInput(label="Name", value="")
19
+ status = ui.Text("Ready")
20
+
21
+ def save() -> None:
22
+ status.text = f"Saved {name.value}"
23
+
24
+ ui.Button("Save", on_click=save)
25
+
26
+
27
+ if __name__ == "__main__":
28
+ app.run()
29
+ ```
30
+
31
+ ## Application and pages
32
+
33
+ `ui.Application` (blocking) and `ui.AsyncApplication` (`await app.run()`) wrap the core application
34
+ (`app.native`, see [guide.md](guide.md)). Constructor: `title`, `width`, `height`,
35
+ `theme="system"`, `app_id`, `remember_geometry`, `profile`, `native_allow_list`, `asset_roots`,
36
+ `ui_limits`, plus the core options (`resources`, `config`, `limits`, ...). Constructing creates no
37
+ process and downloads nothing.
38
+
39
+ - `app.run()` blocks until the window closes; `start()`, `shutdown()`, `request_stop()` as in the core
40
+ application. `app.expose()` registers functions a page or custom component can call
41
+ (neutralino RPC).
42
+ - **Pages**: `with app.page("/"):` or `@app.page("/route")` builds the tree for a route, once per
43
+ window. Routes are local; an unknown route shows a "Page not found" page. Move with
44
+ `ui.current_window().navigate("/other")`.
45
+ - **Windows**: `app.window("/route", title=..., width=..., height=..., state={...})` opens another
46
+ window; `app.main_window` is the first. Routes take no parameters (`/folder?path=x` is refused):
47
+ pass what the window should show as `state=`, which is in its `Window.state` before its page is
48
+ built, and read it in the builder with `ui.current_window().state`. A `ui.Window` has `notify`,
49
+ `confirm`, `open_modal`, `navigate`, `set_theme`, `set_title`, `set_fullscreen`, `set_icon`,
50
+ `state` (free per-window dictionary), `close()` (a secondary window stops; the main window stops
51
+ the application, as when the user closes it) and `native` (the core window).
52
+ - **Batching**: `with app.batch():` applies several component changes as one patch: nothing is sent to any window of that application until its outermost batch ends (other applications in the same process are not held back). Blocking calls inside a batch still work.
53
+ - **Patch recovery**: a failed or rejected patch is retried as one fresh snapshot after a backoff
54
+ (`ui.UiLimits(patch_backoff=0.1, patch_backoff_max=5.0)`, doubling). After `patch_retries`
55
+ (default 5) failures in a row the window is stalled (`window.session.stalled`, `patch_state`,
56
+ `stats["stalls"]`; logged once as an error): it stops sending until the page reloads or
57
+ resyncs, then gets a fresh snapshot.
58
+ - **Callbacks**: sync callbacks run on worker threads (they may block), async callbacks on the event
59
+ loop. The blocking facade raises `RuntimeError` instead of deadlocking when a blocking call is made
60
+ from the loop thread.
61
+ - **Page builders run on the event-loop thread** (sync or async): a blocking native call there
62
+ (`app.native.filesystem.read_directory(...)` with the blocking `Application`) raises that
63
+ `RuntimeError`. Build the tree with placeholders and fill it from a sync callback or a thread
64
+ (`table.update(rows=...)`), or use `AsyncApplication` and `await` the call. `app.native` exists
65
+ only after `start()`/`run()`; touching it at import time raises `StartupError`.
66
+
67
+ ## Components and the tree
68
+
69
+ PascalCase classes, snake_case keyword arguments, typed and validated against the contract (`UNSET`
70
+ means "not specified"; `None` is an explicit null only where the contract allows). Every component
71
+ has `id`, `visible`, `classes`, `styles`, `aria_label`, `update(**props)` (atomic), `on(event,
72
+ handler)` (returns a disposable subscription), `remove()`, `children`, `focus()`.
73
+
74
+ ```python
75
+ from neutralino import ui
76
+
77
+ app = ui.Application(title="Tree", profile="restricted")
78
+ with app.page("/"):
79
+ with ui.Stack(gap="sm") as stack: # children attach to the innermost open container
80
+ ui.Title("Items", order=3)
81
+ ui.Button("Add")
82
+ with ui.detached(): # constructed without attaching
83
+ note = ui.Text("later")
84
+ note.move_to(stack) # explicit reparent; a component has one parent
85
+ ```
86
+
87
+ Cycles and double attachment are refused. A removed or disposed component rejects further updates.
88
+ `ui.DataTable(provider=...)` serves big tables in bounded pages; `ui.CustomComponent` mounts your own
89
+ JavaScript or React adapter ([custom-components.md](custom-components.md)).
90
+
91
+ Style props (`p`, `m`, `w`, `h`, `c`, `fw`, `bg` ...) exist only on the components whose contract
92
+ lists them (`Paper` has `w`, `Select` has not); `neutralino components describe NAME` prints the
93
+ props and, under `keywords:`, every other keyword the class takes (`on_<event>` handlers, `sync`,
94
+ `validator`, `styles` ...). `styles={...}` sets inline CSS on any component.
95
+
96
+ DataTable details: an editable column's cell enters edit mode on double-click (or Enter/F2 when
97
+ focused); Enter or leaving the cell commits (`on_cell_edit`), Escape cancels. A provider receives
98
+ `TableQuery.filters` as `{column key: string}` for both `text` and `select` filters (columns
99
+ without a value are absent). Row actions show on every row; decide in the handler what an action
100
+ means for that row.
101
+
102
+ ### Testing your app on the real runtime
103
+
104
+ `await app.wait_for_window()` (blocking: `app.wait_for_window()`) returns once the page has
105
+ applied its first tree, so the UI is ready for input; before that a click on the native window can
106
+ land on the loading spinner and be lost. `Window.on_environment_change(handler)` fires on that first
107
+ report and later changes. Run the app on a private display (`Xvfb -displayfd`, `GDK_BACKEND=x11`,
108
+ a private `HOME`/`XDG_*` and `NEUTRALINO_RUNTIME` pointing at the installed runtime), drive it with
109
+ real input (`xdotool`; without a window manager call `windowfocus` before typing) and assert on
110
+ effects you can observe from Python: component values (`await comp.fetch_value()`), your own data
111
+ files and logs. There is no public API to inject a page event from Python.
112
+
113
+ ## State and binding
114
+
115
+ `ui.State[T]` is an observable value with explicit subscriptions, not a reactive framework.
116
+
117
+ ```python
118
+ from neutralino import ui
119
+
120
+ count: ui.State[int] = ui.State(0)
121
+ label = ui.Text()
122
+ count.bind(label, "text", lambda n: f"clicked {n}") # one way, now and on every change
123
+ count.set(1) # equal values do not notify
124
+ ```
125
+
126
+ `bind_value(input)` keeps an input and a state in sync both ways without echo loops; `derive`,
127
+ `debounced`, `throttled` return read-only states; `persist(app.settings, "key", decode=fn)` saves every
128
+ change to the atomic JSON settings file. Bindings end when the component is removed or the subscription
129
+ is disposed.
130
+
131
+ **`.value` is the last committed value, not live DOM access.** Inputs commit per `sync`: `change`,
132
+ `debounce` (after a pause, on blur and before any action) or `blur`. Assigning `value` from Python wins
133
+ and drops older pending edits. A fresh draft: `await input.fetch_value()` (async code) or
134
+ `input.get_value()` (worker threads; refuses the loop thread). A form submission always carries the
135
+ current drafts. A click flushes pending drafts before the click event, so reading `.value` in a
136
+ button's `on_click` (as the `python-ui` template does) sees what was typed; the warning is about
137
+ reading it at other moments (timers, other windows, `on_change` of a different input).
138
+
139
+ ## Forms and validators
140
+
141
+ ```python
142
+ from neutralino import ui
143
+ from neutralino.ui import validators as v
144
+
145
+ with ui.Form(on_submit=lambda ev: print(ev.values)):
146
+ ui.TextInput(name="email", label="E-mail", validator=v.all_of(v.required(), v.email()))
147
+ ui.PasswordInput(name="pw", label="Password", validator=v.length(min=8))
148
+ ui.PasswordInput(name="again", label="Repeat", validator=v.matches_field("pw"))
149
+ ui.Button("Create", type="submit")
150
+ ```
151
+
152
+ - Fields are the named value components inside the form; `ui.Field` and `ui.FieldList` nest paths
153
+ (`address.city`, `lines.0.qty`). Hidden fields are neither validated nor submitted
154
+ (`form.show_when(component, lambda values: ...)`). Overlapping paths (a field `a` next to
155
+ `a.b`, a field `lines.x` or `lines.0` beside a FieldList `lines`) raise `ValidationError` naming
156
+ both paths.
157
+ - Submit validates types, declared constraints (`min`/`max`, `max_length`, date bounds, FieldList
158
+ `min_items`/`max_items`), `required`, field validators (`validator(value)` or `validator(value,
159
+ values)`, sync or async, returning `None`, a string or `ui.FieldError`), then `Form(validate=fn)`,
160
+ commits all values atomically and calls `on_submit` with a `ui.SubmitEvent` (`values` nested by
161
+ path). Errors go back to their fields. Python is authoritative; client checks are advisory. With
162
+ `validate_on="change"` only the newest validation of a field is applied (an older, slower result
163
+ is discarded).
164
+ - One submission per form at a time; `form.cancel_submit()` stops an async `on_submit`. Also
165
+ `form.values()`, `await form.snapshot()`, `form.dirty`, `form.reset()`, `form.set_errors({...})`.
166
+ - Rules: `required`, `not_empty`, `length`, `email`, `url`, `matches`, `integer`, `range`, `one_of`,
167
+ `matches_field`, `all_of`. Server-driven forms: `ui.Form.from_schema(schema, actions=...)`
168
+ (nothing in a schema is evaluated; `submit_action` must name a registered action).
169
+
170
+ ## Events and handlers
171
+
172
+ Subscribe with `on_<event>=` or `component.on("event", handler)`. A handler takes no argument or one
173
+ typed event (`ui.Event`, `ui.ChangeEvent` with `value` and `previous`, `ui.SubmitEvent`,
174
+ `ui.TableEvent`, `ui.RowActionEvent`, ...); the signature is checked, not guessed by catching
175
+ `TypeError`. Sync or async.
176
+
177
+ **Ordering (ADR-018, Amendment 5).** Handlers of one (handler, sender, event name) run one at a time in
178
+ event order, sync handlers on worker threads and coroutines on the loop; handlers of other components or
179
+ events run concurrently. This is the same guarantee as core event subscriptions ([guide.md](guide.md)).
180
+ A handler exception is isolated, sanitised and passed to `app.on_error(fn)` (`fn(window, exception)`);
181
+ the UI keeps working. `@ui.debounce(300)` and `@ui.throttle(200)` limit a handler's rate.
182
+
183
+ ## Themes
184
+
185
+ ```python
186
+ from neutralino import ui
187
+
188
+ app = ui.Application(title="Themed", theme=ui.theme(color_scheme="dark", primary_color="teal"))
189
+ app.set_theme(ui.theme(color_scheme="light")) # all windows; Window.set_theme for one
190
+ ```
191
+
192
+ `theme` is `"system"` (default), `"light"`, `"dark"` or a mapping from `ui.theme(...)`, which validates
193
+ `color_scheme`, `primary_color`, `radius`, `font_family`, `font_family_monospace`, `colors` (name to ten
194
+ shades), `spacing`, `font_sizes`, `reduced_motion`. `classes=` and `styles=` work on any component;
195
+ stylesheets come only from your own local files (`add_css_file`).
196
+
197
+ ## Ready-made blocks
198
+
199
+ `ui.blocks` holds typed compositions that own their children and expose typed props and events:
200
+ `StatsGrid`/`StatItem`, `SettingsPanel`/`SettingSpec`, `Sidebar`/`NavItem`, `UsersTable`, `TableBlock`,
201
+ `UploadPanel`, `EmptyState`, `DashboardGrid`, `Header`, `Footer`, `FilterPanel` and more
202
+ (`dir(ui.blocks)`). Example: `ui.blocks.StatsGrid([ui.blocks.StatItem("orders", "Orders", 42)], cols=3)`.
203
+
204
+ ## Profile: native permissions
205
+
206
+ `profile=` fixes the runtime's `nativeAllowList` for the page and for Python's own native calls (one
207
+ policy, ADR-006). It is not a sandbox for Python.
208
+
209
+ | Profile | Allows |
210
+ |---|---|
211
+ | `"restricted"` | what the UI engine needs: `app.broadcast`, `app.exit`, `extensions.dispatch`, `extensions.getStats`, `window.setTitle` (template default) |
212
+ | `"trusted"` | `restricted` plus the typed desktop helpers (`ui.desktop_routes()`): dialogs, notifications, clipboard text, `os.open`, window geometry, full screen, icon. No `os.execCommand`, `spawnProcess`, `filesystem.*`, `storage.*`, `computer.*` |
213
+ | `"custom"` | exactly `native_allow_list=`, or `"*"` |
214
+
215
+ ```python
216
+ from neutralino import ui
217
+
218
+ app = ui.Application(
219
+ profile="custom",
220
+ native_allow_list=[*ui.profile_routes("restricted"), "os.open"],
221
+ )
222
+ ```
223
+
224
+ A fixed profile together with `native_allow_list=`, or with a config that sets its own lists, is a
225
+ `ValidationError`. Without a profile the core rules apply (docs/security.md). Desktop helpers
226
+ (`open_file`, `save_file`, `message_box`, `clipboard_text`, `app.settings`, `app.paths`) are described in
227
+ [desktop-helpers.md](desktop-helpers.md).
228
+
229
+ ## Local assets
230
+
231
+ ```python
232
+ from neutralino import ui
233
+
234
+ app = ui.Application(title="Assets", asset_roots=["../shared"])
235
+ ```
236
+
237
+ `app.add_css_file`, `add_js_module`, `add_asset` and `add_asset_dir` copy your own files into a per-user
238
+ staging directory and serve them locally (never from a CDN). Relative paths start at the directory of the
239
+ file that created the application and may not contain `..`; the real path must lie in that directory or in
240
+ `asset_roots`; files inside the installed package are refused; at most 64 MiB each. Rules and the custom
241
+ component adapters: [custom-components.md](custom-components.md).
242
+
243
+ ## Where to look next
244
+
245
+ - Component reference: `reference/components.md` (generated), `neutralino components describe NAME`.
246
+ - Native API from Python: [guide.md](guide.md); permissions: [security.md](security.md).
247
+ - Examples: `neutralino examples list`, `neutralino examples export NAME DEST`; repository
248
+ `examples/patterns/` and `examples/workspace/`.
249
+ - Packaging and updates: [packaging.md](packaging.md), [updates.md](updates.md).