pyxflow 0.4.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.
Files changed (193) hide show
  1. pyxflow-0.4.0/.gitignore +51 -0
  2. pyxflow-0.4.0/LICENSE +191 -0
  3. pyxflow-0.4.0/PKG-INFO +281 -0
  4. pyxflow-0.4.0/README.md +250 -0
  5. pyxflow-0.4.0/pyproject.toml +63 -0
  6. pyxflow-0.4.0/src/pyxflow/__init__.py +11 -0
  7. pyxflow-0.4.0/src/pyxflow/app.py +536 -0
  8. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/FlowBootstrap-tpaNq9i9.js +3 -0
  9. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/FlowBootstrap-tpaNq9i9.js.br +0 -0
  10. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/FlowClient-BJ9ZfTZb.js +3 -0
  11. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/FlowClient-BJ9ZfTZb.js.br +0 -0
  12. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-20b5913756ce3aca167f0ba08695a16bf3b2ced2aa3d79a2a3799bc94e649650-BSat8ge4.js +1646 -0
  13. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-20b5913756ce3aca167f0ba08695a16bf3b2ced2aa3d79a2a3799bc94e649650-BSat8ge4.js.br +0 -0
  14. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-20b5913756ce3aca167f0ba08695a16bf3b2ced2aa3d79a2a3799bc94e649650-B_vo-znS.js +1646 -0
  15. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-20b5913756ce3aca167f0ba08695a16bf3b2ced2aa3d79a2a3799bc94e649650-B_vo-znS.js.br +0 -0
  16. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-20b5913756ce3aca167f0ba08695a16bf3b2ced2aa3d79a2a3799bc94e649650-DW726K0S.js +1646 -0
  17. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-20b5913756ce3aca167f0ba08695a16bf3b2ced2aa3d79a2a3799bc94e649650-DW726K0S.js.br +0 -0
  18. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-3cf1c80c42b2c95b3d2b91b4d1432902255060706be2252df851b542cc34ffc5-A_pwI8nt.js +507 -0
  19. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-3cf1c80c42b2c95b3d2b91b4d1432902255060706be2252df851b542cc34ffc5-A_pwI8nt.js.br +0 -0
  20. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-3cf1c80c42b2c95b3d2b91b4d1432902255060706be2252df851b542cc34ffc5-BA7ReY0z.js +507 -0
  21. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-3cf1c80c42b2c95b3d2b91b4d1432902255060706be2252df851b542cc34ffc5-BA7ReY0z.js.br +0 -0
  22. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-3cf1c80c42b2c95b3d2b91b4d1432902255060706be2252df851b542cc34ffc5-Dw4NGPaD.js +507 -0
  23. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-3cf1c80c42b2c95b3d2b91b4d1432902255060706be2252df851b542cc34ffc5-Dw4NGPaD.js.br +0 -0
  24. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-7e3dc433ae4599f705db307c09bf7a8ba9e18853c089e7754783c59f030922e9-BHlSfVe4.js +1843 -0
  25. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-7e3dc433ae4599f705db307c09bf7a8ba9e18853c089e7754783c59f030922e9-BHlSfVe4.js.br +0 -0
  26. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-7e3dc433ae4599f705db307c09bf7a8ba9e18853c089e7754783c59f030922e9-D8CLzUCc.js +1843 -0
  27. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-7e3dc433ae4599f705db307c09bf7a8ba9e18853c089e7754783c59f030922e9-D8CLzUCc.js.br +0 -0
  28. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-7e3dc433ae4599f705db307c09bf7a8ba9e18853c089e7754783c59f030922e9-R5VHaiul.js +1843 -0
  29. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-7e3dc433ae4599f705db307c09bf7a8ba9e18853c089e7754783c59f030922e9-R5VHaiul.js.br +0 -0
  30. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-c8efc5a648d42f293847c817a5dddab3643111e0d94b848c89e3087c602cc885-CUp7QPlV.js +58 -0
  31. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-c8efc5a648d42f293847c817a5dddab3643111e0d94b848c89e3087c602cc885-CUp7QPlV.js.br +0 -0
  32. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-c8efc5a648d42f293847c817a5dddab3643111e0d94b848c89e3087c602cc885-CyOyikW_.js +58 -0
  33. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-c8efc5a648d42f293847c817a5dddab3643111e0d94b848c89e3087c602cc885-CyOyikW_.js.br +0 -0
  34. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-c8efc5a648d42f293847c817a5dddab3643111e0d94b848c89e3087c602cc885-DKkIdWLP.js +58 -0
  35. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-c8efc5a648d42f293847c817a5dddab3643111e0d94b848c89e3087c602cc885-DKkIdWLP.js.br +0 -0
  36. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-df82228a0d0ba7f82937da4dff5549a7886e68d794f21c59836b0708d2669a75-BBknl1Er.js +1079 -0
  37. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-df82228a0d0ba7f82937da4dff5549a7886e68d794f21c59836b0708d2669a75-BBknl1Er.js.br +0 -0
  38. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-df82228a0d0ba7f82937da4dff5549a7886e68d794f21c59836b0708d2669a75-BEZ1SplM.js +1079 -0
  39. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-df82228a0d0ba7f82937da4dff5549a7886e68d794f21c59836b0708d2669a75-BEZ1SplM.js.br +0 -0
  40. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-df82228a0d0ba7f82937da4dff5549a7886e68d794f21c59836b0708d2669a75-Bl2cj9us.js +1079 -0
  41. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/chunk-df82228a0d0ba7f82937da4dff5549a7886e68d794f21c59836b0708d2669a75-Bl2cj9us.js.br +0 -0
  42. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/commonjsHelpers-CqkleIqs.js +1 -0
  43. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/commonjsHelpers-CqkleIqs.js.br +0 -0
  44. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/generated-flow-imports-A_cbqzPb.js +12141 -0
  45. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/generated-flow-imports-A_cbqzPb.js.br +0 -0
  46. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/generated-flow-imports-BNGvL9My.js +12141 -0
  47. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/generated-flow-imports-BNGvL9My.js.br +0 -0
  48. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/generated-flow-imports-BkytpRbC.js +12141 -0
  49. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/generated-flow-imports-BkytpRbC.js.br +0 -0
  50. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/indexhtml-0Ske2WDa.js +273 -0
  51. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/indexhtml-0Ske2WDa.js.br +0 -0
  52. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/indexhtml-C5Ngnva6.js +273 -0
  53. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/indexhtml-C5Ngnva6.js.br +0 -0
  54. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/indexhtml-GL0WLVAv.js +273 -0
  55. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/indexhtml-GL0WLVAv.js.br +0 -0
  56. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/vaadin-iconset-BXNKwFyY.js +642 -0
  57. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/vaadin-iconset-BXNKwFyY.js.br +0 -0
  58. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/vaadin-iconset-CG0RSisR.js +642 -0
  59. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/vaadin-iconset-CG0RSisR.js.br +0 -0
  60. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/vaadin-iconset-DFH06Ogz.js +642 -0
  61. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/build/vaadin-iconset-DFH06Ogz.js.br +0 -0
  62. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/static/push/vaadinPush-min.js +1 -0
  63. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/static/push/vaadinPush-min.js.gz +0 -0
  64. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/static/push/vaadinPush.js +3508 -0
  65. pyxflow-0.4.0/src/pyxflow/bundle/VAADIN/static/push/vaadinPush.js.gz +0 -0
  66. pyxflow-0.4.0/src/pyxflow/bundle/aura/aura.css +3 -0
  67. pyxflow-0.4.0/src/pyxflow/bundle/aura/fonts/InstrumentSans/InstrumentSans.woff2 +0 -0
  68. pyxflow-0.4.0/src/pyxflow/bundle/index.html +25 -0
  69. pyxflow-0.4.0/src/pyxflow/bundle/index.html.br +0 -0
  70. pyxflow-0.4.0/src/pyxflow/bundle/lumo/lumo.css +55 -0
  71. pyxflow-0.4.0/src/pyxflow/bundle/lumo/presets/compact.css +1 -0
  72. pyxflow-0.4.0/src/pyxflow/bundle/lumo/utility.css +1 -0
  73. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1125x2436.png +0 -0
  74. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1136x640.png +0 -0
  75. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1170x2532.png +0 -0
  76. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1242x2208.png +0 -0
  77. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1242x2688.png +0 -0
  78. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1284x2778.png +0 -0
  79. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1334x750.png +0 -0
  80. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-144x144.png +0 -0
  81. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1536x2048.png +0 -0
  82. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1620x2160.png +0 -0
  83. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1668x2224.png +0 -0
  84. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1668x2388.png +0 -0
  85. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-16x16.png +0 -0
  86. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-1792x828.png +0 -0
  87. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-180x180.png +0 -0
  88. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-192x192.png +0 -0
  89. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-2048x1536.png +0 -0
  90. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-2048x2732.png +0 -0
  91. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-2160x1620.png +0 -0
  92. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-2208x1242.png +0 -0
  93. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-2224x1668.png +0 -0
  94. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-2388x1668.png +0 -0
  95. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-2436x1125.png +0 -0
  96. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-2532x1170.png +0 -0
  97. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-2688x1242.png +0 -0
  98. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-2732x2048.png +0 -0
  99. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-2778x1284.png +0 -0
  100. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-32x32.png +0 -0
  101. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-512x512.png +0 -0
  102. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-640x1136.png +0 -0
  103. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-750x1334.png +0 -0
  104. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-828x1792.png +0 -0
  105. pyxflow-0.4.0/src/pyxflow/bundle/pwa-icons/icons/icon-96x96.png +0 -0
  106. pyxflow-0.4.0/src/pyxflow/bundle/sw.js +2 -0
  107. pyxflow-0.4.0/src/pyxflow/bundle/sw.js.br +0 -0
  108. pyxflow-0.4.0/src/pyxflow/bundle_generator.py +658 -0
  109. pyxflow-0.4.0/src/pyxflow/bundle_generator_resources/.mvn/wrapper/maven-wrapper.properties +3 -0
  110. pyxflow-0.4.0/src/pyxflow/bundle_generator_resources/mvnw +295 -0
  111. pyxflow-0.4.0/src/pyxflow/bundle_generator_resources/mvnw.cmd +189 -0
  112. pyxflow-0.4.0/src/pyxflow/components/__init__.py +255 -0
  113. pyxflow-0.4.0/src/pyxflow/components/accordion.py +143 -0
  114. pyxflow-0.4.0/src/pyxflow/components/app_layout.py +123 -0
  115. pyxflow-0.4.0/src/pyxflow/components/avatar.py +166 -0
  116. pyxflow-0.4.0/src/pyxflow/components/button.py +150 -0
  117. pyxflow-0.4.0/src/pyxflow/components/card.py +188 -0
  118. pyxflow-0.4.0/src/pyxflow/components/checkbox.py +114 -0
  119. pyxflow-0.4.0/src/pyxflow/components/checkbox_group.py +170 -0
  120. pyxflow-0.4.0/src/pyxflow/components/combo_box.py +372 -0
  121. pyxflow-0.4.0/src/pyxflow/components/confirm_dialog.py +278 -0
  122. pyxflow-0.4.0/src/pyxflow/components/constants.py +618 -0
  123. pyxflow-0.4.0/src/pyxflow/components/context_menu.py +276 -0
  124. pyxflow-0.4.0/src/pyxflow/components/custom_field.py +121 -0
  125. pyxflow-0.4.0/src/pyxflow/components/date_picker.py +216 -0
  126. pyxflow-0.4.0/src/pyxflow/components/date_time_picker.py +186 -0
  127. pyxflow-0.4.0/src/pyxflow/components/details.py +156 -0
  128. pyxflow-0.4.0/src/pyxflow/components/dialog.py +453 -0
  129. pyxflow-0.4.0/src/pyxflow/components/drawer_toggle.py +10 -0
  130. pyxflow-0.4.0/src/pyxflow/components/email_field.py +178 -0
  131. pyxflow-0.4.0/src/pyxflow/components/flex_layout.py +236 -0
  132. pyxflow-0.4.0/src/pyxflow/components/form_layout.py +421 -0
  133. pyxflow-0.4.0/src/pyxflow/components/grid.py +1839 -0
  134. pyxflow-0.4.0/src/pyxflow/components/horizontal_layout.py +197 -0
  135. pyxflow-0.4.0/src/pyxflow/components/html.py +256 -0
  136. pyxflow-0.4.0/src/pyxflow/components/icon.py +55 -0
  137. pyxflow-0.4.0/src/pyxflow/components/list_box.py +284 -0
  138. pyxflow-0.4.0/src/pyxflow/components/login.py +237 -0
  139. pyxflow-0.4.0/src/pyxflow/components/markdown.py +38 -0
  140. pyxflow-0.4.0/src/pyxflow/components/master_detail_layout.py +302 -0
  141. pyxflow-0.4.0/src/pyxflow/components/menu_bar.py +338 -0
  142. pyxflow-0.4.0/src/pyxflow/components/message_input.py +64 -0
  143. pyxflow-0.4.0/src/pyxflow/components/message_list.py +108 -0
  144. pyxflow-0.4.0/src/pyxflow/components/mixins.py +88 -0
  145. pyxflow-0.4.0/src/pyxflow/components/multi_select_combo_box.py +343 -0
  146. pyxflow-0.4.0/src/pyxflow/components/notification.py +339 -0
  147. pyxflow-0.4.0/src/pyxflow/components/number_field.py +295 -0
  148. pyxflow-0.4.0/src/pyxflow/components/password_field.py +177 -0
  149. pyxflow-0.4.0/src/pyxflow/components/popover.py +288 -0
  150. pyxflow-0.4.0/src/pyxflow/components/progress_bar.py +82 -0
  151. pyxflow-0.4.0/src/pyxflow/components/radio_button_group.py +149 -0
  152. pyxflow-0.4.0/src/pyxflow/components/renderer.py +76 -0
  153. pyxflow-0.4.0/src/pyxflow/components/router_link.py +55 -0
  154. pyxflow-0.4.0/src/pyxflow/components/scroller.py +91 -0
  155. pyxflow-0.4.0/src/pyxflow/components/select.py +263 -0
  156. pyxflow-0.4.0/src/pyxflow/components/side_nav.py +226 -0
  157. pyxflow-0.4.0/src/pyxflow/components/span.py +44 -0
  158. pyxflow-0.4.0/src/pyxflow/components/split_layout.py +181 -0
  159. pyxflow-0.4.0/src/pyxflow/components/tab_sheet.py +152 -0
  160. pyxflow-0.4.0/src/pyxflow/components/tabs.py +255 -0
  161. pyxflow-0.4.0/src/pyxflow/components/text_area.py +192 -0
  162. pyxflow-0.4.0/src/pyxflow/components/text_field.py +238 -0
  163. pyxflow-0.4.0/src/pyxflow/components/time_picker.py +201 -0
  164. pyxflow-0.4.0/src/pyxflow/components/upload.py +280 -0
  165. pyxflow-0.4.0/src/pyxflow/components/value_change_mode.py +5 -0
  166. pyxflow-0.4.0/src/pyxflow/components/vertical_layout.py +194 -0
  167. pyxflow-0.4.0/src/pyxflow/components/virtual_list.py +234 -0
  168. pyxflow-0.4.0/src/pyxflow/core/__init__.py +9 -0
  169. pyxflow-0.4.0/src/pyxflow/core/component.py +794 -0
  170. pyxflow-0.4.0/src/pyxflow/core/element.py +130 -0
  171. pyxflow-0.4.0/src/pyxflow/core/keys.py +34 -0
  172. pyxflow-0.4.0/src/pyxflow/core/state_node.py +121 -0
  173. pyxflow-0.4.0/src/pyxflow/core/state_tree.py +127 -0
  174. pyxflow-0.4.0/src/pyxflow/data/__init__.py +47 -0
  175. pyxflow-0.4.0/src/pyxflow/data/binder.py +382 -0
  176. pyxflow-0.4.0/src/pyxflow/data/converter.py +51 -0
  177. pyxflow-0.4.0/src/pyxflow/data/provider.py +191 -0
  178. pyxflow-0.4.0/src/pyxflow/data/result.py +78 -0
  179. pyxflow-0.4.0/src/pyxflow/data/validator.py +89 -0
  180. pyxflow-0.4.0/src/pyxflow/menu.py +130 -0
  181. pyxflow-0.4.0/src/pyxflow/router.py +674 -0
  182. pyxflow-0.4.0/src/pyxflow/scaffold/favicon.ico +0 -0
  183. pyxflow-0.4.0/src/pyxflow/scaffold/project/__main__.py.tmpl +5 -0
  184. pyxflow-0.4.0/src/pyxflow/scaffold/project/static/styles/styles.css +8 -0
  185. pyxflow-0.4.0/src/pyxflow/scaffold/project/views/hello_world.py.tmpl +15 -0
  186. pyxflow-0.4.0/src/pyxflow/scaffold/project/views/main_layout.py.tmpl +17 -0
  187. pyxflow-0.4.0/src/pyxflow/scaffold/vscode/extensions.json +7 -0
  188. pyxflow-0.4.0/src/pyxflow/scaffold/vscode/python.code-snippets +22 -0
  189. pyxflow-0.4.0/src/pyxflow/scaffold/vscode/settings.json +48 -0
  190. pyxflow-0.4.0/src/pyxflow/scaffold/vscode/templates/pyxflow_view.py +10 -0
  191. pyxflow-0.4.0/src/pyxflow/server/__init__.py +6 -0
  192. pyxflow-0.4.0/src/pyxflow/server/http_server.py +820 -0
  193. pyxflow-0.4.0/src/pyxflow/server/uidl_handler.py +1099 -0
@@ -0,0 +1,51 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ /build/
8
+ /bundle-project/
9
+ # Keep src/pyxflow/bundle/ (Vaadin frontend assets shipped in wheel)
10
+ !src/pyxflow/bundle/
11
+ develop-eggs/
12
+ dist/
13
+ downloads/
14
+ eggs/
15
+ .eggs/
16
+ lib/
17
+ lib64/
18
+ parts/
19
+ sdist/
20
+ var/
21
+ wheels/
22
+ *.egg-info/
23
+ .installed.cfg
24
+ *.egg
25
+
26
+ # Virtual environments
27
+ .venv/
28
+ venv/
29
+ ENV/
30
+
31
+ # IDE
32
+ .idea/
33
+ .vscode/
34
+ *.swp
35
+ *.swo
36
+
37
+ # Testing
38
+ .pytest_cache/
39
+ .coverage
40
+ htmlcov/
41
+ .tox/
42
+
43
+ # Playwright
44
+ .playwright-mcp/
45
+
46
+ # Logs
47
+ *.log
48
+
49
+ # OS
50
+ .DS_Store
51
+ Thumbs.db
pyxflow-0.4.0/LICENSE ADDED
@@ -0,0 +1,191 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2024 Vaadin Ltd.
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
pyxflow-0.4.0/PKG-INFO ADDED
@@ -0,0 +1,281 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyxflow
3
+ Version: 0.4.0
4
+ Summary: Python implementation of Vaadin Flow
5
+ Project-URL: Homepage, https://github.com/manolo/pyxflow
6
+ Project-URL: Documentation, https://vaadin.com/docs
7
+ Author-email: Vaadin <info@vaadin.com>
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Framework :: AsyncIO
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Internet :: WWW/HTTP
19
+ Classifier: Topic :: Software Development :: User Interfaces
20
+ Requires-Python: >=3.10
21
+ Requires-Dist: aiohttp>=3.9.0
22
+ Requires-Dist: watchfiles>=0.20
23
+ Provides-Extra: dev
24
+ Requires-Dist: pillow; extra == 'dev'
25
+ Requires-Dist: playwright; extra == 'dev'
26
+ Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
27
+ Requires-Dist: pytest-playwright; extra == 'dev'
28
+ Requires-Dist: pytest>=7.0; extra == 'dev'
29
+ Requires-Dist: pyyaml; extra == 'dev'
30
+ Description-Content-Type: text/markdown
31
+
32
+ <img src="docs/logo.png" alt="PyXFlow" width="80" align="left" style="margin-right: 16px;">
33
+
34
+ # [PyXFlow](https://manolo.github.io/pyxflow/)
35
+
36
+ **Build full-stack web apps in pure Python. No JavaScript. No HTML templates.**
37
+
38
+ Write your code and business logic in Python. It runs on the server. The browser is just a thin client rendering standard web components: you never touch the frontend.
39
+
40
+ Under the hood, PyXFlow uses the same server-driven architecture as [Vaadin Flow](https://vaadin.com/flow) but entirely written in Python, and ships with 50+ [Vaadin web components](https://vaadin.com/components): enterprise-grade, accessible, and battle-tested over years.
41
+
42
+ <p align="center">
43
+ <img src="docs/screenshots/architecture-diagram.png" alt="Architecture">
44
+ </p>
45
+
46
+ ---
47
+
48
+ ```python
49
+ from pyxflow import Route
50
+ from pyxflow.components import *
51
+
52
+ @Route("hello")
53
+ class HelloView(HorizontalLayout):
54
+ def __init__(self):
55
+ name = TextField("Your name")
56
+ button = Button("Say hello", lambda e: Notification.show(f"Hello {name.value}"))
57
+ self.add(name, button)
58
+ ```
59
+
60
+ <p align="center">
61
+ <img src="docs/screenshots/screenshot-hello-crop.gif" alt="Hello World" width="500">
62
+ </p>
63
+
64
+ ## Features
65
+
66
+ - **Server-side only** -- all logic runs in Python, no JavaScript to write
67
+ - **Real-time push** -- update the UI from background tasks via WebSocket
68
+ - **Lazy data loading** -- Grid with virtual scrolling and server-side sorting
69
+ - **Form validation** -- Binder with validators and converters
70
+ - **Theming** -- Lumo and Aura themes with dark mode support
71
+ - **Hot reload** -- `--dev` mode watches for file changes
72
+
73
+ ## Demo
74
+
75
+ The included demo app showcases real-world patterns across 8 views:
76
+
77
+ | View | Route | What it shows |
78
+ |------|-------|---------------|
79
+ | About | `/` | Landing page with logo and architecture diagram |
80
+ | Hello | `/hello` | Simplest view -- TextField + Button + Notification |
81
+ | Components | `/components` | 20+ components in a responsive CSS grid |
82
+ | Grid | `/grid` | Lazy data provider with sorting and selection (200 rows) |
83
+ | Master-Detail | `/master-detail` | Grid + side form with Binder validation |
84
+ | Responsive CRUD | `/crud` | Full CRUD with route parameters and FAB |
85
+ | Stopwatch | `/push-demo` | WebSocket push -- server updates UI every second |
86
+ | File Explorer | `/file-explorer` | TreeGrid + @ClientCallable for server method calls |
87
+
88
+ <p align="center">
89
+ <img src="docs/screenshots/demo-tour.gif" alt="Demo tour" width="700">
90
+ </p>
91
+
92
+ ### Run the demo
93
+
94
+ ```bash
95
+ git clone https://github.com/manolo/pyxflow.git
96
+ cd pyxflow
97
+ python -m venv .venv && source .venv/bin/activate
98
+ pip install -e .
99
+ python -m demo # http://localhost:8088
100
+ ```
101
+
102
+ ## Installation
103
+
104
+ ```bash
105
+ pip install pyxflow
106
+ ```
107
+
108
+ ## Quick start
109
+
110
+ ```bash
111
+ mkdir my-app && cd my-app
112
+ python -m venv .venv
113
+ source .venv/bin/activate # Windows: .venv\Scripts\activate
114
+ pip install pyxflow
115
+ pyxflow --setup
116
+ pyxflow
117
+ # http://localhost:8080
118
+ ```
119
+
120
+ This scaffolds a project with `views/`, `static/`, and VSCode config:
121
+
122
+ ```
123
+ my-app/
124
+ views/
125
+ main_layout.py # AppLayout with SideNav
126
+ hello_world.py # Sample view with TextField + Button
127
+ static/
128
+ favicon.ico
129
+ styles/
130
+ styles.css
131
+ images/
132
+ .vscode/ # VSCode settings, snippets, extensions
133
+ ```
134
+
135
+ ### Running
136
+
137
+ ```bash
138
+ pyxflow [app_module] [options]
139
+
140
+ app_module Python module with views/ (auto-detected if omitted)
141
+ --setup [app_name] Scaffold a new project (views, static, .vscode/)
142
+ --vscode Generate .vscode/ config and install recommended extensions
143
+ --dev Auto-reload on source changes
144
+ --debug Verbose UIDL protocol logging
145
+ --port PORT Server port (default: 8080)
146
+ --host HOST Server host (default: localhost)
147
+ --bundle Generate frontend bundle
148
+ ```
149
+
150
+ ## Routing
151
+
152
+ Each view is a Python class with a `@Route` decorator that defines the URL path. Add `@Menu` to include it in the navigation. PyXFlow handles client-side URL routing automatically.
153
+
154
+ ```python
155
+ from pyxflow import Route, Menu
156
+
157
+ @Route("dashboard", page_title="Dashboard", layout=MainLayout)
158
+ @Menu(title="Dashboard", order=1, icon="vaadin:dashboard")
159
+ class DashboardView(VerticalLayout):
160
+ ...
161
+ ```
162
+
163
+ - `@Route(path)` -- register a view at a URL path
164
+ - `@Route(path, layout=MainLayout)` -- wrap in a layout
165
+ - `@Menu(title, order, icon)` -- add to the navigation menu
166
+ - Route parameters: `@Route("greet/:name")` with `on_parameter_changed(self, params)`
167
+
168
+ ## Application shell
169
+
170
+ `@AppShell` marks the global app configuration: push, theme, stylesheets. Only one per app. In practice, you put it on your main layout class (`AppLayout`) which provides the navbar, drawer, and content area.
171
+
172
+ ```python
173
+ from pyxflow import AppShell, Push, ColorScheme, StyleSheet
174
+ from pyxflow.components import AppLayout, DrawerToggle, H1, SideNav, SideNavItem
175
+ from pyxflow.menu import get_menu_entries
176
+
177
+ @AppShell
178
+ @Push
179
+ @ColorScheme("dark")
180
+ @StyleSheet("lumo/lumo.css", "styles/styles.css")
181
+ class MainLayout(AppLayout):
182
+ def __init__(self):
183
+ self.add_to_navbar(DrawerToggle(), H1("My App"))
184
+ nav = SideNav()
185
+ for entry in get_menu_entries():
186
+ nav.add_item(SideNavItem(entry.title, entry.path))
187
+ self.add_to_drawer(nav)
188
+ ```
189
+
190
+ ## Grid with lazy data
191
+
192
+ Grid fetches only the rows visible in the viewport. Provide a callback that returns a slice of your data and the total count -- Grid handles virtual scrolling, sorting, and pagination.
193
+
194
+ ```python
195
+ grid = Grid()
196
+ grid.add_column("name", header="Name").set_sortable(True).set_auto_width(True)
197
+ grid.add_column("email", header="Email").set_auto_width(True)
198
+ grid.set_data_provider(my_fetch)
199
+
200
+ def my_fetch(offset, limit, sort_orders):
201
+ return items[offset:offset+limit], len(items)
202
+ ```
203
+
204
+ ## Real-time push
205
+
206
+ Update the UI from business background tasks running in the server. The server pushes changes to the browser via WebSocket. Just call `ui.access()` from any async task.
207
+
208
+ ```python
209
+ import asyncio
210
+
211
+ @Route("live")
212
+ class LiveView(VerticalLayout):
213
+ def __init__(self):
214
+ self.label = Span("0")
215
+ self.add(self.label)
216
+ asyncio.get_event_loop().create_task(self._tick())
217
+
218
+ async def _tick(self):
219
+ n = 0
220
+ while True:
221
+ await asyncio.sleep(1)
222
+ n += 1
223
+ ui = self.get_ui()
224
+ if ui:
225
+ ui.access(lambda: self.label.set_text(str(n)))
226
+ ```
227
+
228
+ Requires `@Push` on the `@AppShell` class.
229
+
230
+ ## Components
231
+
232
+ <p align="center">
233
+ <img src="docs/screenshots/screenshot-components.gif" alt="Components" width="650">
234
+ </p>
235
+
236
+ | Type | Component | Description |
237
+ |------|-----------|-------------|
238
+ | Input | `TextField` | Single-line text input |
239
+ | Input | `TextArea` | Multi-line text input |
240
+ | Input | `PasswordField` | Masked password input |
241
+ | Input | `EmailField` | Email input with RFC 5322 validation |
242
+ | Input | `NumberField` | Numeric input with min/max/step |
243
+ | Input | `IntegerField` | Integer-only variant |
244
+ | Input | `Checkbox` / `CheckboxGroup` | Toggle and multiple selection |
245
+ | Input | `RadioButtonGroup` | Single selection from options |
246
+ | Input | `Select` | Dropdown single selection |
247
+ | Input | `ComboBox` / `MultiSelectComboBox` | Filterable dropdown (multi-select) |
248
+ | Input | `DatePicker` / `TimePicker` / `DateTimePicker` | Date and time selection |
249
+ | Input | `Upload` | File upload |
250
+ | Input | `CustomField` | Composite custom field |
251
+ | Data | `Grid` | Data table with sorting, selection, lazy loading, renderers |
252
+ | Data | `TreeGrid` | Hierarchical data table with expand/collapse |
253
+ | Layout | `VerticalLayout` / `HorizontalLayout` | Stack children vertically or horizontally |
254
+ | Layout | `FlexLayout` | CSS Flexbox layout |
255
+ | Layout | `FormLayout` | Responsive form with labels and colspan |
256
+ | Layout | `SplitLayout` | Resizable two-panel split |
257
+ | Layout | `AppLayout` | Application shell with navbar and drawer |
258
+ | Layout | `Scroller` | Scrollable container |
259
+ | Layout | `Card` | Styled card container |
260
+ | Layout | `Details` / `Accordion` | Collapsible sections |
261
+ | Layout | `Dialog` / `ConfirmDialog` | Modal dialogs |
262
+ | Layout | `MasterDetailLayout` | Master-detail pattern |
263
+ | Navigation | `Tabs` / `TabSheet` | Tab navigation with content panels |
264
+ | Navigation | `SideNav` | Side navigation with items |
265
+ | Navigation | `MenuBar` / `ContextMenu` | Hierarchical and right-click menus |
266
+ | Navigation | `RouterLink` | Client-side navigation link |
267
+ | Display | `Button` | Click listener, icon support, keyboard shortcuts |
268
+ | Display | `Icon` | Vaadin and Lumo icon sets |
269
+ | Display | `Notification` | Toast notifications with position and duration |
270
+ | Display | `ProgressBar` | Determinate and indeterminate progress |
271
+ | Display | `Avatar` / `AvatarGroup` | User avatars |
272
+ | Display | `Span`, `H1`-`H6`, `Paragraph`, `Pre` | Text elements |
273
+ | Display | `Image`, `Anchor`, `IFrame` | Media and links |
274
+
275
+ ## Development
276
+
277
+ See [README-DEV.md](README-DEV.md) for setup, tests, project structure, and architecture.
278
+
279
+ ## License
280
+
281
+ Apache License 2.0