meltygui 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (463) hide show
  1. meltygui-0.1.0/.gitignore +10 -0
  2. meltygui-0.1.0/LICENSE +202 -0
  3. meltygui-0.1.0/PKG-INFO +143 -0
  4. meltygui-0.1.0/README.md +98 -0
  5. meltygui-0.1.0/docs/APPS.md +103 -0
  6. meltygui-0.1.0/docs/DEVELOPMENT.md +130 -0
  7. meltygui-0.1.0/docs/PUBLISHING.md +58 -0
  8. meltygui-0.1.0/docs/SUPPORT_WHEELS.md +92 -0
  9. meltygui-0.1.0/examples/tensor_live.py +28 -0
  10. meltygui-0.1.0/examples/tile_manager.py +12 -0
  11. meltygui-0.1.0/examples/voxel_playground.py +113 -0
  12. meltygui-0.1.0/meltygui/__init__.py +107 -0
  13. meltygui-0.1.0/meltygui/accounts/__init__.py +0 -0
  14. meltygui-0.1.0/meltygui/accounts/internet_accounts.py +1355 -0
  15. meltygui-0.1.0/meltygui/chat/__init__.py +91 -0
  16. meltygui-0.1.0/meltygui/chat/activity.py +75 -0
  17. meltygui-0.1.0/meltygui/chat/backends.py +36 -0
  18. meltygui-0.1.0/meltygui/chat/chat_interface.py +732 -0
  19. meltygui-0.1.0/meltygui/chat/chat_proxy.py +352 -0
  20. meltygui-0.1.0/meltygui/chat/codex_proxy.py +592 -0
  21. meltygui-0.1.0/meltygui/chat/codex_settings.py +100 -0
  22. meltygui-0.1.0/meltygui/chat/codex_transport.py +60 -0
  23. meltygui-0.1.0/meltygui/chat/command_parser.py +204 -0
  24. meltygui-0.1.0/meltygui/chat/images.py +227 -0
  25. meltygui-0.1.0/meltygui/chat/messages.py +417 -0
  26. meltygui-0.1.0/meltygui/chat/metadata.py +139 -0
  27. meltygui-0.1.0/meltygui/chat/writer_locks.py +64 -0
  28. meltygui-0.1.0/meltygui/code/__init__.py +0 -0
  29. meltygui-0.1.0/meltygui/code/basic_converters.py +533 -0
  30. meltygui-0.1.0/meltygui/code/chain_converters.py +2111 -0
  31. meltygui-0.1.0/meltygui/code/code_checks.py +2209 -0
  32. meltygui-0.1.0/meltygui/code/core_syntax.py +1430 -0
  33. meltygui-0.1.0/meltygui/code/file_converters.py +1933 -0
  34. meltygui-0.1.0/meltygui/code/fileref.py +702 -0
  35. meltygui-0.1.0/meltygui/code/hotswap_guard.py +144 -0
  36. meltygui-0.1.0/meltygui/code/libcst_conversion.py +9724 -0
  37. meltygui-0.1.0/meltygui/code/live_instrument.py +392 -0
  38. meltygui-0.1.0/meltygui/code/live_view.py +2490 -0
  39. meltygui-0.1.0/meltygui/code/melty_scan.py +2684 -0
  40. meltygui-0.1.0/meltygui/code/new_codecs.py +1255 -0
  41. meltygui-0.1.0/meltygui/code/new_converters.py +3017 -0
  42. meltygui-0.1.0/meltygui/code/project_code.py +278 -0
  43. meltygui-0.1.0/meltygui/code/source_context.py +63 -0
  44. meltygui-0.1.0/meltygui/code/symbol_roster.py +1588 -0
  45. meltygui-0.1.0/meltygui/code/syntax_check.py +34 -0
  46. meltygui-0.1.0/meltygui/code/syntax_check_worker.py +114 -0
  47. meltygui-0.1.0/meltygui/completion/__init__.py +0 -0
  48. meltygui-0.1.0/meltygui/completion/fim.py +1232 -0
  49. meltygui-0.1.0/meltygui/completion/fim_context.py +481 -0
  50. meltygui-0.1.0/meltygui/completion/providers/__init__.py +0 -0
  51. meltygui-0.1.0/meltygui/completion/providers/anthropic_oauth.py +446 -0
  52. meltygui-0.1.0/meltygui/completion/providers/anthropic_requests.py +69 -0
  53. meltygui-0.1.0/meltygui/completion/providers/claude.py +203 -0
  54. meltygui-0.1.0/meltygui/completion/providers/claude_usage.py +499 -0
  55. meltygui-0.1.0/meltygui/completion/providers/codex_accounts.py +180 -0
  56. meltygui-0.1.0/meltygui/completion/providers/copilot.py +617 -0
  57. meltygui-0.1.0/meltygui/completion/providers/oauth_popup.py +220 -0
  58. meltygui-0.1.0/meltygui/completion/providers/ollama.py +320 -0
  59. meltygui-0.1.0/meltygui/completion/providers/profiles.py +23 -0
  60. meltygui-0.1.0/meltygui/core/README.md +88 -0
  61. meltygui-0.1.0/meltygui/core/__init__.py +1 -0
  62. meltygui-0.1.0/meltygui/core/automation/__init__.py +1 -0
  63. meltygui-0.1.0/meltygui/core/automation/action_core.py +153 -0
  64. meltygui-0.1.0/meltygui/core/automation/collection_action.py +45 -0
  65. meltygui-0.1.0/meltygui/core/automation/mcp_eval.py +167 -0
  66. meltygui-0.1.0/meltygui/core/automation/mcp_hotswap.py +107 -0
  67. meltygui-0.1.0/meltygui/core/automation/mcp_query.py +552 -0
  68. meltygui-0.1.0/meltygui/core/automation/mcp_server.py +657 -0
  69. meltygui-0.1.0/meltygui/core/automation/orchestration_core.py +2636 -0
  70. meltygui-0.1.0/meltygui/core/automation/query_core.py +124 -0
  71. meltygui-0.1.0/meltygui/core/automation/search_core.py +26 -0
  72. meltygui-0.1.0/meltygui/core/automation/selector_core.py +340 -0
  73. meltygui-0.1.0/meltygui/core/automation/value_core.py +1752 -0
  74. meltygui-0.1.0/meltygui/core/cache/__init__.py +1 -0
  75. meltygui-0.1.0/meltygui/core/cache/cache_diagnostics.py +0 -0
  76. meltygui-0.1.0/meltygui/core/cache/invalidation_decoration.py +153 -0
  77. meltygui-0.1.0/meltygui/core/cache/invalidation_tracker.py +43 -0
  78. meltygui-0.1.0/meltygui/core/cache/tile_cache.py +5968 -0
  79. meltygui-0.1.0/meltygui/core/conversion/__init__.py +1 -0
  80. meltygui-0.1.0/meltygui/core/conversion/bubbling.py +599 -0
  81. meltygui-0.1.0/meltygui/core/conversion/cache_tree.py +188 -0
  82. meltygui-0.1.0/meltygui/core/conversion/chain.py +113 -0
  83. meltygui-0.1.0/meltygui/core/conversion/converter_register.py +145 -0
  84. meltygui-0.1.0/meltygui/core/conversion/data_decoration.py +67 -0
  85. meltygui-0.1.0/meltygui/core/conversion/dict_conversion.py +1815 -0
  86. meltygui-0.1.0/meltygui/core/conversion/dict_conversion_util.py +177 -0
  87. meltygui-0.1.0/meltygui/core/conversion/dynamic_obj.py +89 -0
  88. meltygui-0.1.0/meltygui/core/conversion/graph_compare.py +183 -0
  89. meltygui-0.1.0/meltygui/core/conversion/load_save_v2.py +1032 -0
  90. meltygui-0.1.0/meltygui/core/conversion/missing_saved_class.py +39 -0
  91. meltygui-0.1.0/meltygui/core/conversion/path_finder.py +606 -0
  92. meltygui-0.1.0/meltygui/core/conversion/render_host.py +1083 -0
  93. meltygui-0.1.0/meltygui/core/core_render.py +6537 -0
  94. meltygui-0.1.0/meltygui/core/definition_hotswap.py +231 -0
  95. meltygui-0.1.0/meltygui/core/diagnostics/__init__.py +1 -0
  96. meltygui-0.1.0/meltygui/core/diagnostics/attribute_churn.py +38 -0
  97. meltygui-0.1.0/meltygui/core/diagnostics/fps_counter.py +39 -0
  98. meltygui-0.1.0/meltygui/core/diagnostics/gpu_frame_timer.py +103 -0
  99. meltygui-0.1.0/meltygui/core/diagnostics/inspection_core.py +169 -0
  100. meltygui-0.1.0/meltygui/core/diagnostics/monitor_core.py +105 -0
  101. meltygui-0.1.0/meltygui/core/diagnostics/notifications.py +706 -0
  102. meltygui-0.1.0/meltygui/core/diagnostics/perf_trace.py +281 -0
  103. meltygui-0.1.0/meltygui/core/diagnostics/profile_decoration.py +88 -0
  104. meltygui-0.1.0/meltygui/core/diagnostics/resize_trace.py +62 -0
  105. meltygui-0.1.0/meltygui/core/diagnostics/screenshot_core.py +247 -0
  106. meltygui-0.1.0/meltygui/core/diagnostics/session_status.py +98 -0
  107. meltygui-0.1.0/meltygui/core/diagnostics/trace_core.py +445 -0
  108. meltygui-0.1.0/meltygui/core/files/__init__.py +1 -0
  109. meltygui-0.1.0/meltygui/core/files/file_core.py +208 -0
  110. meltygui-0.1.0/meltygui/core/files/file_explorer_core.py +104 -0
  111. meltygui-0.1.0/meltygui/core/files/file_tree_core.py +198 -0
  112. meltygui-0.1.0/meltygui/core/files/file_watch_core.py +43 -0
  113. meltygui-0.1.0/meltygui/core/files/import_graph_core.py +43 -0
  114. meltygui-0.1.0/meltygui/core/files/metadata_core.py +51 -0
  115. meltygui-0.1.0/meltygui/core/graphics/__init__.py +1 -0
  116. meltygui-0.1.0/meltygui/core/graphics/cuda_context_core.py +166 -0
  117. meltygui-0.1.0/meltygui/core/graphics/cuda_interop_core.py +136 -0
  118. meltygui-0.1.0/meltygui/core/graphics/cuda_kernel_core.py +91 -0
  119. meltygui-0.1.0/meltygui/core/graphics/framebuffer_recorder.py +337 -0
  120. meltygui-0.1.0/meltygui/core/graphics/gl_state.py +658 -0
  121. meltygui-0.1.0/meltygui/core/graphics/lut_core.py +52 -0
  122. meltygui-0.1.0/meltygui/core/graphics/overlay_renderer.py +984 -0
  123. meltygui-0.1.0/meltygui/core/graphics/scene_target.py +180 -0
  124. meltygui-0.1.0/meltygui/core/graphics/screenshot.py +439 -0
  125. meltygui-0.1.0/meltygui/core/graphics/shader_func.py +478 -0
  126. meltygui-0.1.0/meltygui/core/graphics/tensor_core.py +45 -0
  127. meltygui-0.1.0/meltygui/core/graphics/text_texture.py +329 -0
  128. meltygui-0.1.0/meltygui/core/graphics/wayland_color.py +635 -0
  129. meltygui-0.1.0/meltygui/core/input/__init__.py +1 -0
  130. meltygui-0.1.0/meltygui/core/input/collision.py +165 -0
  131. meltygui-0.1.0/meltygui/core/input/drag_drop_core.py +1525 -0
  132. meltygui-0.1.0/meltygui/core/input/hypr_left_drag.py +323 -0
  133. meltygui-0.1.0/meltygui/core/input/input_core.py +245 -0
  134. meltygui-0.1.0/meltygui/core/input/input_handler.py +1101 -0
  135. meltygui-0.1.0/meltygui/core/input/mouse_cursor.py +355 -0
  136. meltygui-0.1.0/meltygui/core/input/pynput_backend.py +1054 -0
  137. meltygui-0.1.0/meltygui/core/input/space_mouse.py +338 -0
  138. meltygui-0.1.0/meltygui/core/input/touchpad_backend.py +393 -0
  139. meltygui-0.1.0/meltygui/core/input/view_selection.py +177 -0
  140. meltygui-0.1.0/meltygui/core/layout/__init__.py +1 -0
  141. meltygui-0.1.0/meltygui/core/layout/column_core.py +2153 -0
  142. meltygui-0.1.0/meltygui/core/layout/cursor_core.py +161 -0
  143. meltygui-0.1.0/meltygui/core/layout/dropdown_core.py +278 -0
  144. meltygui-0.1.0/meltygui/core/layout/edge_constraints.py +155 -0
  145. meltygui-0.1.0/meltygui/core/layout/grid_core.py +117 -0
  146. meltygui-0.1.0/meltygui/core/layout/header_core.py +23 -0
  147. meltygui-0.1.0/meltygui/core/layout/header_runtime.py +67 -0
  148. meltygui-0.1.0/meltygui/core/layout/layout_core.py +87 -0
  149. meltygui-0.1.0/meltygui/core/layout/tile_manager_core.py +591 -0
  150. meltygui-0.1.0/meltygui/core/melty.py +6726 -0
  151. meltygui-0.1.0/meltygui/core/module_map.json +896 -0
  152. meltygui-0.1.0/meltygui/core/module_names.py +19 -0
  153. meltygui-0.1.0/meltygui/core/rendering/__init__.py +1 -0
  154. meltygui-0.1.0/meltygui/core/rendering/core_decoration.py +431 -0
  155. meltygui-0.1.0/meltygui/core/rendering/core_render_helpers.py +328 -0
  156. meltygui-0.1.0/meltygui/core/rendering/func_metadata.py +398 -0
  157. meltygui-0.1.0/meltygui/core/rendering/mode.py +818 -0
  158. meltygui-0.1.0/meltygui/core/rendering/mode_defaults.py +41 -0
  159. meltygui-0.1.0/meltygui/core/rendering/modes.py +136 -0
  160. meltygui-0.1.0/meltygui/core/rendering/parameter_core.py +1665 -0
  161. meltygui-0.1.0/meltygui/core/rendering/render_dispatch.py +1891 -0
  162. meltygui-0.1.0/meltygui/core/rendering/render_funcs.py +273 -0
  163. meltygui-0.1.0/meltygui/core/rendering/shaped.py +312 -0
  164. meltygui-0.1.0/meltygui/core/rendering/window_decoration.py +25 -0
  165. meltygui-0.1.0/meltygui/core/runtime/__init__.py +1 -0
  166. meltygui-0.1.0/meltygui/core/runtime/app.py +735 -0
  167. meltygui-0.1.0/meltygui/core/runtime/app_session.py +140 -0
  168. meltygui-0.1.0/meltygui/core/runtime/background.py +564 -0
  169. meltygui-0.1.0/meltygui/core/runtime/extensions.py +53 -0
  170. meltygui-0.1.0/meltygui/core/runtime/gc_manager.py +1163 -0
  171. meltygui-0.1.0/meltygui/core/runtime/lifecycle.py +21 -0
  172. meltygui-0.1.0/meltygui/core/runtime/paths.py +27 -0
  173. meltygui-0.1.0/meltygui/core/runtime/settings.py +14 -0
  174. meltygui-0.1.0/meltygui/core/runtime/singleton.py +16 -0
  175. meltygui-0.1.0/meltygui/core/runtime/thread_safe_bool.py +24 -0
  176. meltygui-0.1.0/meltygui/core/runtime/thread_signal.py +30 -0
  177. meltygui-0.1.0/meltygui/core/runtime/toggles.py +3115 -0
  178. meltygui-0.1.0/meltygui/core/services/__init__.py +1 -0
  179. meltygui-0.1.0/meltygui/core/services/account_core.py +10 -0
  180. meltygui-0.1.0/meltygui/core/services/chat_core.py +19 -0
  181. meltygui-0.1.0/meltygui/core/services/claude_terminal_core.py +346 -0
  182. meltygui-0.1.0/meltygui/core/services/terminal_core.py +458 -0
  183. meltygui-0.1.0/meltygui/core/services/terminal_runtime.py +78 -0
  184. meltygui-0.1.0/meltygui/core/styling/__init__.py +1 -0
  185. meltygui-0.1.0/meltygui/core/styling/color_core.py +46 -0
  186. meltygui-0.1.0/meltygui/core/styling/fonts.py +639 -0
  187. meltygui-0.1.0/meltygui/core/styling/global_style.py +338 -0
  188. meltygui-0.1.0/meltygui/core/styling/style.py +198 -0
  189. meltygui-0.1.0/meltygui/core/styling/style_core.py +522 -0
  190. meltygui-0.1.0/meltygui/core/styling/warm_start.py +149 -0
  191. meltygui-0.1.0/meltygui/core/windowing/__init__.py +1 -0
  192. meltygui-0.1.0/meltygui/core/windowing/backends/PYIMGUI_LICENSE +28 -0
  193. meltygui-0.1.0/meltygui/core/windowing/backends/__init__.py +1 -0
  194. meltygui-0.1.0/meltygui/core/windowing/backends/imgui_renderer.py +138 -0
  195. meltygui-0.1.0/meltygui/core/windowing/backends/native_wayland.py +850 -0
  196. meltygui-0.1.0/meltygui/core/windowing/backends/protocols/xdg-decoration-unstable-v1.xml +156 -0
  197. meltygui-0.1.0/meltygui/core/windowing/backends/protocols/xdg-shell.xml +1420 -0
  198. meltygui-0.1.0/meltygui/core/windowing/backends/wayland_protocol.py +101 -0
  199. meltygui-0.1.0/meltygui/core/windowing/dock_core.py +182 -0
  200. meltygui-0.1.0/meltygui/core/windowing/frame_geometry.py +42 -0
  201. meltygui-0.1.0/meltygui/core/windowing/geometry_feed.py +864 -0
  202. meltygui-0.1.0/meltygui/core/windowing/glfw_utils.py +1343 -0
  203. meltygui-0.1.0/meltygui/core/windowing/os_frame.py +1552 -0
  204. meltygui-0.1.0/meltygui/core/windowing/surface.py +643 -0
  205. meltygui-0.1.0/meltygui/core/windowing/titlebar.py +1560 -0
  206. meltygui-0.1.0/meltygui/core/windowing/titlebar_buttons.py +281 -0
  207. meltygui-0.1.0/meltygui/core/windowing/wayland_move.py +932 -0
  208. meltygui-0.1.0/meltygui/core/windowing/window_api.py +62 -0
  209. meltygui-0.1.0/meltygui/core/windowing/window_constants.py +339 -0
  210. meltygui-0.1.0/meltygui/core/windowing/window_visibility.py +162 -0
  211. meltygui-0.1.0/meltygui/debug/__init__.py +0 -0
  212. meltygui-0.1.0/meltygui/debug/app_view_utils.py +9 -0
  213. meltygui-0.1.0/meltygui/editor/__init__.py +0 -0
  214. meltygui-0.1.0/meltygui/editor/bash_syntax.py +30 -0
  215. meltygui-0.1.0/meltygui/editor/code_line_fast.py +152 -0
  216. meltygui-0.1.0/meltygui/editor/diff.py +139 -0
  217. meltygui-0.1.0/meltygui/editor/external_changes.py +159 -0
  218. meltygui-0.1.0/meltygui/editor/file_header.py +41 -0
  219. meltygui-0.1.0/meltygui/editor/live_usage.py +169 -0
  220. meltygui-0.1.0/meltygui/editor/live_view_views.py +1803 -0
  221. meltygui-0.1.0/meltygui/editor/pending_save.py +1351 -0
  222. meltygui-0.1.0/meltygui/editor/roster_tints.py +547 -0
  223. meltygui-0.1.0/meltygui/editor/source_preview.py +16 -0
  224. meltygui-0.1.0/meltygui/editor/source_tools.py +10 -0
  225. meltygui-0.1.0/meltygui/editor/source_ui.py +70 -0
  226. meltygui-0.1.0/meltygui/editor/spell_check.py +77 -0
  227. meltygui-0.1.0/meltygui/editor/text_editor.py +9076 -0
  228. meltygui-0.1.0/meltygui/editor/usage_picker.py +538 -0
  229. meltygui-0.1.0/meltygui/events/__init__.py +0 -0
  230. meltygui-0.1.0/meltygui/events/example.py +118 -0
  231. meltygui-0.1.0/meltygui/examples/__init__.py +0 -0
  232. meltygui-0.1.0/meltygui/examples/columns_demo.py +33 -0
  233. meltygui-0.1.0/meltygui/examples/columns_window_demo.py +60 -0
  234. meltygui-0.1.0/meltygui/examples/context_menu_demo.py +24 -0
  235. meltygui-0.1.0/meltygui/examples/context_menu_window_demo.py +49 -0
  236. meltygui-0.1.0/meltygui/examples/gui_playground.py +127 -0
  237. meltygui-0.1.0/meltygui/examples/live_view_playground.py +256 -0
  238. meltygui-0.1.0/meltygui/examples/lora.py +43 -0
  239. meltygui-0.1.0/meltygui/examples/lora_data.py +59 -0
  240. meltygui-0.1.0/meltygui/examples/lora_policies.py +67 -0
  241. meltygui-0.1.0/meltygui/examples/mode_demo.py +49 -0
  242. meltygui-0.1.0/meltygui/examples/modifies_demo.py +119 -0
  243. meltygui-0.1.0/meltygui/examples/scalar_policies.py +60 -0
  244. meltygui-0.1.0/meltygui/examples/style_layouts.py +149 -0
  245. meltygui-0.1.0/meltygui/examples/tile_manager_demo.py +74 -0
  246. meltygui-0.1.0/meltygui/examples/tint_demo.py +160 -0
  247. meltygui-0.1.0/meltygui/examples/tint_functions.py +56 -0
  248. meltygui-0.1.0/meltygui/examples/trace_demo.py +88 -0
  249. meltygui-0.1.0/meltygui/examples/two_windows.py +36 -0
  250. meltygui-0.1.0/meltygui/files/__init__.py +0 -0
  251. meltygui-0.1.0/meltygui/files/fast_file_explorer.py +439 -0
  252. meltygui-0.1.0/meltygui/gnome_extension/lsd-window-geometry@latent-descent/extension.js +237 -0
  253. meltygui-0.1.0/meltygui/gnome_extension/lsd-window-geometry@latent-descent/lsd-window-geometry@latent-descent.iml +9 -0
  254. meltygui-0.1.0/meltygui/gnome_extension/lsd-window-geometry@latent-descent/metadata.json +7 -0
  255. meltygui-0.1.0/meltygui/graphics/__init__.py +6 -0
  256. meltygui-0.1.0/meltygui/graphics/base.py +85 -0
  257. meltygui-0.1.0/meltygui/graphics/examples.py +507 -0
  258. meltygui-0.1.0/meltygui/graphics/executor.py +520 -0
  259. meltygui-0.1.0/meltygui/graphics/filter.py +667 -0
  260. meltygui-0.1.0/meltygui/graphics/filter.pyi +856 -0
  261. meltygui-0.1.0/meltygui/graphics/generate_stubs.py +22 -0
  262. meltygui-0.1.0/meltygui/graphics/registry.py +203 -0
  263. meltygui-0.1.0/meltygui/graphics/shader_compiler.py +155 -0
  264. meltygui-0.1.0/meltygui/graphics/shaders.py +1302 -0
  265. meltygui-0.1.0/meltygui/graphics/stub_generator.py +250 -0
  266. meltygui-0.1.0/meltygui/graphics/texture_manager.py +170 -0
  267. meltygui-0.1.0/meltygui/graphics/texture_min_max.py +295 -0
  268. meltygui-0.1.0/meltygui/hdr_color.py +757 -0
  269. meltygui-0.1.0/meltygui/image_load.py +308 -0
  270. meltygui-0.1.0/meltygui/model/__init__.py +1 -0
  271. meltygui-0.1.0/meltygui/model/account_model.py +142 -0
  272. meltygui-0.1.0/meltygui/model/camera_model.py +159 -0
  273. meltygui-0.1.0/meltygui/model/chat_model.py +86 -0
  274. meltygui-0.1.0/meltygui/model/code_model.py +62 -0
  275. meltygui-0.1.0/meltygui/model/code_proxy_model.py +876 -0
  276. meltygui-0.1.0/meltygui/model/collection_model.py +41 -0
  277. meltygui-0.1.0/meltygui/model/color_model.py +127 -0
  278. meltygui-0.1.0/meltygui/model/cuda_tensor_model.py +36 -0
  279. meltygui-0.1.0/meltygui/model/cuda_texture_model.py +149 -0
  280. meltygui-0.1.0/meltygui/model/dropdown_model.py +137 -0
  281. meltygui-0.1.0/meltygui/model/file_metadata_model.py +73 -0
  282. meltygui-0.1.0/meltygui/model/file_model.py +289 -0
  283. meltygui-0.1.0/meltygui/model/format_model.py +390 -0
  284. meltygui-0.1.0/meltygui/model/graph_model.py +98 -0
  285. meltygui-0.1.0/meltygui/model/icon_model.py +1024 -0
  286. meltygui-0.1.0/meltygui/model/import_graph_model.py +468 -0
  287. meltygui-0.1.0/meltygui/model/layout_model.py +15 -0
  288. meltygui-0.1.0/meltygui/model/lut_model.py +266 -0
  289. meltygui-0.1.0/meltygui/model/search_model.py +173 -0
  290. meltygui-0.1.0/meltygui/model/tensor_model.py +402 -0
  291. meltygui-0.1.0/meltygui/model/terminal_model.py +329 -0
  292. meltygui-0.1.0/meltygui/model/texture_model.py +146 -0
  293. meltygui-0.1.0/meltygui/model/tile_model.py +24 -0
  294. meltygui-0.1.0/meltygui/model/trace_model.py +198 -0
  295. meltygui-0.1.0/meltygui/model/trace_report_model.py +146 -0
  296. meltygui-0.1.0/meltygui/models/__init__.py +0 -0
  297. meltygui-0.1.0/meltygui/models/file_meta.py +613 -0
  298. meltygui-0.1.0/meltygui/models/function_console.py +184 -0
  299. meltygui-0.1.0/meltygui/models/orchestration.py +48 -0
  300. meltygui-0.1.0/meltygui/pbr.py +1576 -0
  301. meltygui-0.1.0/meltygui/png_unfilter.c +49 -0
  302. meltygui-0.1.0/meltygui/resources/JetBrainsMono-Regular.ttf +0 -0
  303. meltygui-0.1.0/meltygui/resources/THIRD_PARTY_NOTICES.md +21 -0
  304. meltygui-0.1.0/meltygui/resources/dejavu/DejaVuSans-Bold.ttf +0 -0
  305. meltygui-0.1.0/meltygui/resources/dejavu/DejaVuSans-ExtraLight.ttf +0 -0
  306. meltygui-0.1.0/meltygui/resources/dejavu/DejaVuSans.ttf +0 -0
  307. meltygui-0.1.0/meltygui/resources/dejavu/LICENSE.txt +78 -0
  308. meltygui-0.1.0/meltygui/resources/fontawesome-LICENSE.txt +121 -0
  309. meltygui-0.1.0/meltygui/resources/fontawesome-webfont.ttf +0 -0
  310. meltygui-0.1.0/meltygui/resources/hdri/studio_small_09_1k.hdr +0 -0
  311. meltygui-0.1.0/meltygui/resources/jetbrains-weights/JetBrainsMono-Bold.ttf +0 -0
  312. meltygui-0.1.0/meltygui/resources/jetbrains-weights/JetBrainsMono-ExtraBold.ttf +0 -0
  313. meltygui-0.1.0/meltygui/resources/jetbrains-weights/JetBrainsMono-ExtraLight.ttf +0 -0
  314. meltygui-0.1.0/meltygui/resources/jetbrains-weights/JetBrainsMono-Light.ttf +0 -0
  315. meltygui-0.1.0/meltygui/resources/jetbrains-weights/JetBrainsMono-Medium.ttf +0 -0
  316. meltygui-0.1.0/meltygui/resources/jetbrains-weights/JetBrainsMono-SemiBold.ttf +0 -0
  317. meltygui-0.1.0/meltygui/resources/jetbrains-weights/JetBrainsMono-Thin.ttf +0 -0
  318. meltygui-0.1.0/meltygui/resources/jetbrains-weights/OFL.txt +93 -0
  319. meltygui-0.1.0/meltygui/resources/jetbrains-weights/README.md +2 -0
  320. meltygui-0.1.0/meltygui/state/__init__.py +0 -0
  321. meltygui-0.1.0/meltygui/state/account_state.py +22 -0
  322. meltygui-0.1.0/meltygui/state/animation_state.py +97 -0
  323. meltygui-0.1.0/meltygui/state/annotation_state.py +22 -0
  324. meltygui-0.1.0/meltygui/state/chat_state.py +36 -0
  325. meltygui-0.1.0/meltygui/state/code_state.py +10 -0
  326. meltygui-0.1.0/meltygui/state/core_enums.py +59 -0
  327. meltygui-0.1.0/meltygui/state/core_markers.py +115 -0
  328. meltygui-0.1.0/meltygui/state/core_undo.py +1075 -0
  329. meltygui-0.1.0/meltygui/state/file_state.py +75 -0
  330. meltygui-0.1.0/meltygui/state/graph_state.py +26 -0
  331. meltygui-0.1.0/meltygui/state/inspection_state.py +47 -0
  332. meltygui-0.1.0/meltygui/state/menu_state.py +10 -0
  333. meltygui-0.1.0/meltygui/state/model_enums.py +11 -0
  334. meltygui-0.1.0/meltygui/state/new_core_model.py +2394 -0
  335. meltygui-0.1.0/meltygui/state/orchestration_state.py +14 -0
  336. meltygui-0.1.0/meltygui/state/query_state.py +24 -0
  337. meltygui-0.1.0/meltygui/state/tensor_state.py +10 -0
  338. meltygui-0.1.0/meltygui/state/terminal_state.py +23 -0
  339. meltygui-0.1.0/meltygui/state/trace_state.py +32 -0
  340. meltygui-0.1.0/meltygui/state/voxel_state.py +12 -0
  341. meltygui-0.1.0/meltygui/text_index.py +816 -0
  342. meltygui-0.1.0/meltygui/utils/__init__.py +0 -0
  343. meltygui-0.1.0/meltygui/utils/jump_to_code.py +344 -0
  344. meltygui-0.1.0/meltygui/utils/pkl_inspect.py +90 -0
  345. meltygui-0.1.0/meltygui/utils/render_utils.py +1419 -0
  346. meltygui-0.1.0/meltygui/view/__init__.py +1 -0
  347. meltygui-0.1.0/meltygui/view/account_view.py +524 -0
  348. meltygui-0.1.0/meltygui/view/action_view.py +73 -0
  349. meltygui-0.1.0/meltygui/view/chat_decoration_view.py +112 -0
  350. meltygui-0.1.0/meltygui/view/chat_view.py +1703 -0
  351. meltygui-0.1.0/meltygui/view/code_view.py +2677 -0
  352. meltygui-0.1.0/meltygui/view/collection_view.py +1185 -0
  353. meltygui-0.1.0/meltygui/view/color_view.py +824 -0
  354. meltygui-0.1.0/meltygui/view/control_view.py +559 -0
  355. meltygui-0.1.0/meltygui/view/decoration_view.py +439 -0
  356. meltygui-0.1.0/meltygui/view/diagnostic_view.py +177 -0
  357. meltygui-0.1.0/meltygui/view/dropdown_view.py +1082 -0
  358. meltygui-0.1.0/meltygui/view/file_view.py +1599 -0
  359. meltygui-0.1.0/meltygui/view/graph_cuda_view.py +105 -0
  360. meltygui-0.1.0/meltygui/view/graph_view.py +882 -0
  361. meltygui-0.1.0/meltygui/view/header_view.py +848 -0
  362. meltygui-0.1.0/meltygui/view/input_view.py +238 -0
  363. meltygui-0.1.0/meltygui/view/inspection_view.py +1783 -0
  364. meltygui-0.1.0/meltygui/view/layout_view.py +596 -0
  365. meltygui-0.1.0/meltygui/view/lut_view.py +45 -0
  366. meltygui-0.1.0/meltygui/view/menu_view.py +212 -0
  367. meltygui-0.1.0/meltygui/view/orchestration_view.py +658 -0
  368. meltygui-0.1.0/meltygui/view/query_view.py +118 -0
  369. meltygui-0.1.0/meltygui/view/search_view.py +342 -0
  370. meltygui-0.1.0/meltygui/view/tab_view.py +258 -0
  371. meltygui-0.1.0/meltygui/view/tensor_view.py +430 -0
  372. meltygui-0.1.0/meltygui/view/terminal_view.py +355 -0
  373. meltygui-0.1.0/meltygui/view/text_view.py +8031 -0
  374. meltygui-0.1.0/meltygui/view/texture_view.py +480 -0
  375. meltygui-0.1.0/meltygui/view/tile_view.py +38 -0
  376. meltygui-0.1.0/meltygui/view/trace_view.py +923 -0
  377. meltygui-0.1.0/meltygui/view/voxel_cuda_view.py +824 -0
  378. meltygui-0.1.0/meltygui/view/voxel_view.py +1860 -0
  379. meltygui-0.1.0/meltygui/view/window_view.py +111 -0
  380. meltygui-0.1.0/pyproject.toml +37 -0
  381. meltygui-0.1.0/tests/conftest.py +121 -0
  382. meltygui-0.1.0/tests/fixtures/terminal_before_runtime.py +122 -0
  383. meltygui-0.1.0/tests/profile_render_wrapper.py +493 -0
  384. meltygui-0.1.0/tests/test_chat_messages.py +174 -0
  385. meltygui-0.1.0/tests/test_chat_presentation.py +74 -0
  386. meltygui-0.1.0/tests/test_column_edge_solve.py +122 -0
  387. meltygui-0.1.0/tests/test_column_frame_fit.py +147 -0
  388. meltygui-0.1.0/tests/test_column_maxes.py +259 -0
  389. meltygui-0.1.0/tests/test_core_relocation.py +75 -0
  390. meltygui-0.1.0/tests/test_core_syntax.py +996 -0
  391. meltygui-0.1.0/tests/test_cuda_context_core.py +122 -0
  392. meltygui-0.1.0/tests/test_cuda_direct_lines.py +58 -0
  393. meltygui-0.1.0/tests/test_cuda_interop.py +529 -0
  394. meltygui-0.1.0/tests/test_cuda_interop_core.py +65 -0
  395. meltygui-0.1.0/tests/test_cuda_kernel_core.py +116 -0
  396. meltygui-0.1.0/tests/test_cuda_march.py +442 -0
  397. meltygui-0.1.0/tests/test_definition_relocation.py +203 -0
  398. meltygui-0.1.0/tests/test_draw_state_parent_geometry.py +111 -0
  399. meltygui-0.1.0/tests/test_edge_graph_solve.py +143 -0
  400. meltygui-0.1.0/tests/test_file_metadata_model.py +119 -0
  401. meltygui-0.1.0/tests/test_file_model.py +102 -0
  402. meltygui-0.1.0/tests/test_file_type_codecs.py +225 -0
  403. meltygui-0.1.0/tests/test_file_watch_limits.py +106 -0
  404. meltygui-0.1.0/tests/test_fps_counter.py +28 -0
  405. meltygui-0.1.0/tests/test_frame_geometry_hotswap.py +34 -0
  406. meltygui-0.1.0/tests/test_fstring_highlight.py +197 -0
  407. meltygui-0.1.0/tests/test_function_console.py +90 -0
  408. meltygui-0.1.0/tests/test_glfw_window_editable_root.py +217 -0
  409. meltygui-0.1.0/tests/test_hdr_color.py +347 -0
  410. meltygui-0.1.0/tests/test_hotswap_preserves_runtime_state.py +204 -0
  411. meltygui-0.1.0/tests/test_import_boundary.py +36 -0
  412. meltygui-0.1.0/tests/test_live_class_apply.py +100 -0
  413. meltygui-0.1.0/tests/test_live_function_apply.py +177 -0
  414. meltygui-0.1.0/tests/test_live_store_owner.py +146 -0
  415. meltygui-0.1.0/tests/test_lut_model.py +181 -0
  416. meltygui-0.1.0/tests/test_native_background_drag.py +57 -0
  417. meltygui-0.1.0/tests/test_native_body_cursor.py +44 -0
  418. meltygui-0.1.0/tests/test_native_frame_contacts.py +47 -0
  419. meltygui-0.1.0/tests/test_native_windows.py +264 -0
  420. meltygui-0.1.0/tests/test_nested_layout_right_drag.py +85 -0
  421. meltygui-0.1.0/tests/test_os_frame.py +1832 -0
  422. meltygui-0.1.0/tests/test_package_contract.py +47 -0
  423. meltygui-0.1.0/tests/test_pending_signature_lint.py +372 -0
  424. meltygui-0.1.0/tests/test_public_boundary.py +63 -0
  425. meltygui-0.1.0/tests/test_readme_examples.py +82 -0
  426. meltygui-0.1.0/tests/test_recompile_import_backfill.py +80 -0
  427. meltygui-0.1.0/tests/test_render_change_notification.py +56 -0
  428. meltygui-0.1.0/tests/test_render_context_injection.py +55 -0
  429. meltygui-0.1.0/tests/test_render_func_integration.py +141 -0
  430. meltygui-0.1.0/tests/test_render_host_surface_drag.py +55 -0
  431. meltygui-0.1.0/tests/test_row_edge_solve.py +273 -0
  432. meltygui-0.1.0/tests/test_saved_renderer_recovery.py +42 -0
  433. meltygui-0.1.0/tests/test_search_symbol_tables.py +24 -0
  434. meltygui-0.1.0/tests/test_shader_func.py +424 -0
  435. meltygui-0.1.0/tests/test_shaped.py +303 -0
  436. meltygui-0.1.0/tests/test_surface_body_resize.py +128 -0
  437. meltygui-0.1.0/tests/test_syntax_check_worker.py +65 -0
  438. meltygui-0.1.0/tests/test_tensor_controls.py +132 -0
  439. meltygui-0.1.0/tests/test_tensor_model.py +107 -0
  440. meltygui-0.1.0/tests/test_tensor_slices.py +64 -0
  441. meltygui-0.1.0/tests/test_terminal_live_migration.py +126 -0
  442. meltygui-0.1.0/tests/test_terminal_ownership.py +125 -0
  443. meltygui-0.1.0/tests/test_text_texture_contexts.py +58 -0
  444. meltygui-0.1.0/tests/test_tile_manager.py +192 -0
  445. meltygui-0.1.0/tests/test_typing_incremental_layout.py +127 -0
  446. meltygui-0.1.0/tests/test_voxel_backends.py +97 -0
  447. meltygui-0.1.0/tests/test_voxel_ownership.py +61 -0
  448. meltygui-0.1.0/tests/test_voxel_roll_gl.py +100 -0
  449. meltygui-0.1.0/tests/test_window_collision_investigation.py +264 -0
  450. meltygui-0.1.0/tests/test_window_comment_overrides.py +287 -0
  451. meltygui-0.1.0/tests/test_windows_portability.py +88 -0
  452. meltygui-0.1.0/tests/untitled.py +11 -0
  453. meltygui-0.1.0/tools/native_wheels/build.py +45 -0
  454. meltygui-0.1.0/tools/native_wheels/build_in_container.sh +21 -0
  455. meltygui-0.1.0/tools/native_wheels/licenses/NVIDIA-CUDA-12.1-EULA.txt +1115 -0
  456. meltygui-0.1.0/tools/native_wheels/licenses/boost.txt +23 -0
  457. meltygui-0.1.0/tools/native_wheels/licenses/imgui-MIT.txt +21 -0
  458. meltygui-0.1.0/tools/native_wheels/licenses/imstb_rectpack.h.license.txt +37 -0
  459. meltygui-0.1.0/tools/native_wheels/licenses/imstb_textedit.h.license.txt +37 -0
  460. meltygui-0.1.0/tools/native_wheels/licenses/imstb_truetype.h.license.txt +37 -0
  461. meltygui-0.1.0/tools/native_wheels/prepare.py +111 -0
  462. meltygui-0.1.0/tools/native_wheels/rewrite_imports.py +55 -0
  463. meltygui-0.1.0/tools/release.py +111 -0
@@ -0,0 +1,10 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ .pytest_cache/
5
+ dist/
6
+ build/
7
+ *.egg-info/
8
+ .melty/
9
+
10
+ .idea/
meltygui-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
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 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 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 those 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
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,143 @@
1
+ Metadata-Version: 2.5
2
+ Name: meltygui
3
+ Version: 0.1.0
4
+ Summary: Immediate-mode Python UI, live inspection, HDR and tensor visualization
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Operating System :: POSIX :: Linux
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Requires-Python: <3.14,>=3.11
14
+ Requires-Dist: anthropic>=0.40
15
+ Requires-Dist: freetype-py>=2.4
16
+ Requires-Dist: glfw>=2.10
17
+ Requires-Dist: httpx>=0.27
18
+ Requires-Dist: jedi>=0.19
19
+ Requires-Dist: libcst>=1.4
20
+ Requires-Dist: mcp>=1.0
21
+ Requires-Dist: meltygui-imgui[glfw]<2.0.1,>=2.0.0.post1
22
+ Requires-Dist: numpy>=1.26
23
+ Requires-Dist: packaging>=24
24
+ Requires-Dist: pillow>=10
25
+ Requires-Dist: psutil>=6
26
+ Requires-Dist: pygments>=2.18
27
+ Requires-Dist: pyopengl-accelerate>=3.1.7
28
+ Requires-Dist: pyopengl>=3.1.7
29
+ Requires-Dist: pyte>=0.8
30
+ Requires-Dist: rich>=13
31
+ Requires-Dist: rtree>=1.2
32
+ Requires-Dist: symspellpy>=6.7
33
+ Requires-Dist: tomlkit>=0.13
34
+ Requires-Dist: uvicorn>=0.30
35
+ Requires-Dist: watchdog>=4
36
+ Provides-Extra: input
37
+ Requires-Dist: evdev>=1.7; (sys_platform == 'linux') and extra == 'input'
38
+ Requires-Dist: pynput>=1.7; extra == 'input'
39
+ Provides-Extra: profile
40
+ Requires-Dist: line-profiler>=4; extra == 'profile'
41
+ Provides-Extra: tensor
42
+ Requires-Dist: meltygui-pycuda<2026.2,>=2026.1.post1; (sys_platform == 'linux') and extra == 'tensor'
43
+ Requires-Dist: torch>=2.2; extra == 'tensor'
44
+ Description-Content-Type: text/markdown
45
+
46
+ # MeltyGUI
47
+
48
+ Low latency tensor visualization for PyTorch.
49
+
50
+ MeltyGUI is an open source data visualization toolkit for PyTorch, designed to render massive tensors in-place on the GPU at an interactive framerate. The purpose of this project is to make PyTorch code easier to understand and faster to debug. Along with its core tensor rendering components, MeltyGUI is bundled with a Blender inspired UI framework designed to make interacting with high dimensional tensors feel fast and intuitive.
51
+
52
+ MeltyGUI is capable of rendering tensors exceeding 64GB in size. The primary challenge with visualizing data this large is moving it around. MeltyGUI skips the data movement entirely, and ray-marches tensors directly from CUDA memory.
53
+
54
+ <img width="2410" height="2018" alt="Image" src="https://github.com/user-attachments/assets/82ffae2c-ec0a-456c-b781-5428c54009f8" />
55
+
56
+ ## Getting started
57
+
58
+ MeltyGUI is not yet published to PyPI. For now, install from a checkout using
59
+ [the setup guide](docs/DEVELOPMENT.md#setup).
60
+
61
+ The current setup targets Linux x86-64 with Python 3.11, 3.12 or 3.13 and a
62
+ working OpenGL 4.3 context. CUDA tensor rendering also requires PyTorch, an
63
+ NVIDIA GPU, a CUDA toolkit, and MeltyGUI's GL-enabled CUDA binding. The native
64
+ bindings install as prebuilt wheels on those targets; elsewhere installers
65
+ compile them, see [when no wheel matches](docs/SUPPORT_WHEELS.md#when-no-wheel-matches).
66
+
67
+ ## Visualize a tensor
68
+
69
+ Create a small volume on the GPU and tag `draw_voxels` as an OS window with
70
+ `glfw_window`:
71
+
72
+ ```python
73
+ import torch
74
+ import meltygui
75
+
76
+ axis = torch.linspace(-1.5, 1.5, 40, device="cuda:0")
77
+ x, y, z = torch.meshgrid(axis, axis, axis, indexing="ij")
78
+ volume = torch.exp(-4 * ((torch.sqrt(x * x + y * y) - 0.85) ** 2 + z * z))
79
+
80
+ meltygui.glfw_window(
81
+ meltygui.draw_voxels, name="Torus", value=volume, width=850, height=700
82
+ )
83
+ ```
84
+
85
+ Save this as `tensor_demo.py` and run it with the Python from your configured
86
+ environment:
87
+
88
+ ```sh
89
+ .venv/bin/python tensor_demo.py
90
+ ```
91
+
92
+ `glfw_window` turns a view into a native window: `name` is the window title,
93
+ `width` / `height` its content size, `value` the view's input, and every other
94
+ keyword argument goes to the view. The window loop starts automatically after
95
+ the module finishes defining its windows. The CUDA renderer reads the volume on
96
+ its own GPU and transfers the rendered 2D image for display.
97
+
98
+ To compose several views in one window, decorate your own function instead. It
99
+ runs each frame, so create the tensor outside it to avoid reallocating the
100
+ volume on every frame:
101
+
102
+ ```python
103
+ @meltygui.glfw_window(name="CUDA tensor", width=850, height=700)
104
+ def draw_frame():
105
+ # Interactive widget, rendered in a loop. This function will be called wheneven
106
+ # the rendered image is invalidated
107
+ meltygui.draw_voxels(volume, name="Torus", width=800, height=630)
108
+ ```
109
+
110
+ `draw_voxels` chooses CUDA for CUDA tensors and OpenGL for CPU tensors, NumPy
111
+ arrays and GL textures. Select a renderer explicitly with the framework's
112
+ `view_func` override (or call either renderer directly):
113
+
114
+ ```python
115
+ meltygui.draw_voxels(volume, view_func=meltygui.draw_voxels_opengl)
116
+ meltygui.draw_voxels(volume, view_func=meltygui.draw_voxels_cuda)
117
+ ```
118
+
119
+ `draw_voxels_opengl` accepts tensors directly, including CUDA tensors; it slices
120
+ and uploads the displayed volume to a GL texture. `draw_voxels_cuda` requires a
121
+ CUDA tensor and reads it in place. Both expose the same camera, mapping and
122
+ shading controls. Backend selection no longer uses the obsolete `cuda_march`
123
+ parameter.
124
+
125
+ See [the tensor and live-code example](examples/tensor_live.py) for a tensor
126
+ viewer alongside an editable function view.
127
+
128
+ ## Build an app
129
+
130
+ Use the bundled UI framework to add controls, editors, and additional windows.
131
+ [Building an app](docs/APPS.md) covers persistent view state, render functions,
132
+ and window lifecycle.
133
+
134
+ For framework design, feature ownership and render-function patterns, see
135
+ [Contributing](CONTRIBUTING.md). [Development](docs/DEVELOPMENT.md) covers setup,
136
+ checks and packaging; [Architecture gaps](docs/ARCHITECTURE_DEBT.md) tracks the
137
+ remaining migration work.
138
+
139
+ ## License
140
+
141
+ MeltyGUI is licensed under [Apache 2.0](LICENSE). Bundled third-party code and
142
+ assets retain their own licenses. The separate commercial IDE is not part of
143
+ this distribution.
@@ -0,0 +1,98 @@
1
+ # MeltyGUI
2
+
3
+ Low latency tensor visualization for PyTorch.
4
+
5
+ MeltyGUI is an open source data visualization toolkit for PyTorch, designed to render massive tensors in-place on the GPU at an interactive framerate. The purpose of this project is to make PyTorch code easier to understand and faster to debug. Along with its core tensor rendering components, MeltyGUI is bundled with a Blender inspired UI framework designed to make interacting with high dimensional tensors feel fast and intuitive.
6
+
7
+ MeltyGUI is capable of rendering tensors exceeding 64GB in size. The primary challenge with visualizing data this large is moving it around. MeltyGUI skips the data movement entirely, and ray-marches tensors directly from CUDA memory.
8
+
9
+ <img width="2410" height="2018" alt="Image" src="https://github.com/user-attachments/assets/82ffae2c-ec0a-456c-b781-5428c54009f8" />
10
+
11
+ ## Getting started
12
+
13
+ MeltyGUI is not yet published to PyPI. For now, install from a checkout using
14
+ [the setup guide](docs/DEVELOPMENT.md#setup).
15
+
16
+ The current setup targets Linux x86-64 with Python 3.11, 3.12 or 3.13 and a
17
+ working OpenGL 4.3 context. CUDA tensor rendering also requires PyTorch, an
18
+ NVIDIA GPU, a CUDA toolkit, and MeltyGUI's GL-enabled CUDA binding. The native
19
+ bindings install as prebuilt wheels on those targets; elsewhere installers
20
+ compile them, see [when no wheel matches](docs/SUPPORT_WHEELS.md#when-no-wheel-matches).
21
+
22
+ ## Visualize a tensor
23
+
24
+ Create a small volume on the GPU and tag `draw_voxels` as an OS window with
25
+ `glfw_window`:
26
+
27
+ ```python
28
+ import torch
29
+ import meltygui
30
+
31
+ axis = torch.linspace(-1.5, 1.5, 40, device="cuda:0")
32
+ x, y, z = torch.meshgrid(axis, axis, axis, indexing="ij")
33
+ volume = torch.exp(-4 * ((torch.sqrt(x * x + y * y) - 0.85) ** 2 + z * z))
34
+
35
+ meltygui.glfw_window(
36
+ meltygui.draw_voxels, name="Torus", value=volume, width=850, height=700
37
+ )
38
+ ```
39
+
40
+ Save this as `tensor_demo.py` and run it with the Python from your configured
41
+ environment:
42
+
43
+ ```sh
44
+ .venv/bin/python tensor_demo.py
45
+ ```
46
+
47
+ `glfw_window` turns a view into a native window: `name` is the window title,
48
+ `width` / `height` its content size, `value` the view's input, and every other
49
+ keyword argument goes to the view. The window loop starts automatically after
50
+ the module finishes defining its windows. The CUDA renderer reads the volume on
51
+ its own GPU and transfers the rendered 2D image for display.
52
+
53
+ To compose several views in one window, decorate your own function instead. It
54
+ runs each frame, so create the tensor outside it to avoid reallocating the
55
+ volume on every frame:
56
+
57
+ ```python
58
+ @meltygui.glfw_window(name="CUDA tensor", width=850, height=700)
59
+ def draw_frame():
60
+ # Interactive widget, rendered in a loop. This function will be called wheneven
61
+ # the rendered image is invalidated
62
+ meltygui.draw_voxels(volume, name="Torus", width=800, height=630)
63
+ ```
64
+
65
+ `draw_voxels` chooses CUDA for CUDA tensors and OpenGL for CPU tensors, NumPy
66
+ arrays and GL textures. Select a renderer explicitly with the framework's
67
+ `view_func` override (or call either renderer directly):
68
+
69
+ ```python
70
+ meltygui.draw_voxels(volume, view_func=meltygui.draw_voxels_opengl)
71
+ meltygui.draw_voxels(volume, view_func=meltygui.draw_voxels_cuda)
72
+ ```
73
+
74
+ `draw_voxels_opengl` accepts tensors directly, including CUDA tensors; it slices
75
+ and uploads the displayed volume to a GL texture. `draw_voxels_cuda` requires a
76
+ CUDA tensor and reads it in place. Both expose the same camera, mapping and
77
+ shading controls. Backend selection no longer uses the obsolete `cuda_march`
78
+ parameter.
79
+
80
+ See [the tensor and live-code example](examples/tensor_live.py) for a tensor
81
+ viewer alongside an editable function view.
82
+
83
+ ## Build an app
84
+
85
+ Use the bundled UI framework to add controls, editors, and additional windows.
86
+ [Building an app](docs/APPS.md) covers persistent view state, render functions,
87
+ and window lifecycle.
88
+
89
+ For framework design, feature ownership and render-function patterns, see
90
+ [Contributing](CONTRIBUTING.md). [Development](docs/DEVELOPMENT.md) covers setup,
91
+ checks and packaging; [Architecture gaps](docs/ARCHITECTURE_DEBT.md) tracks the
92
+ remaining migration work.
93
+
94
+ ## License
95
+
96
+ MeltyGUI is licensed under [Apache 2.0](LICENSE). Bundled third-party code and
97
+ assets retain their own licenses. The separate commercial IDE is not part of
98
+ this distribution.
@@ -0,0 +1,103 @@
1
+ # Building an app
2
+
3
+ Install the framework into the same environment that runs the app. Both the
4
+ package name and import name are `meltygui`. There is no `src` package and no
5
+ requirement to launch from the framework checkout.
6
+
7
+ When contributing reusable features to the library, also follow the
8
+ [ownership and render-function contracts](../CONTRIBUTING.md).
9
+
10
+ ```python
11
+ import meltygui
12
+ from meltygui.core.core_render import render_func
13
+ from meltygui.core.conversion.dict_conversion import DictConversion
14
+
15
+ class EditorState(DictConversion):
16
+ def __init__(self):
17
+ super().__init__()
18
+ self.text = "Hello"
19
+
20
+ @meltygui.glfw_window(name="Editor", app_id="my-editor", width=900, height=700)
21
+ @render_func(use_cache=False)
22
+ def editor(input_value=None, state: EditorState = None):
23
+ changed, state.text = meltygui.draw_text(state.text)
24
+ return changed, input_value
25
+ ```
26
+
27
+ The loop starts after the main module finishes defining its windows.
28
+ Injected state persists across frames and sessions. Call render functions every
29
+ frame, returning `(changed, value)`. For nested windows, pass `closable=True` and
30
+ an `open_requested` event to the same call every frame. Use `glfw_window=True` to
31
+ host a child in a native window; its lifecycle follows the same rules.
32
+
33
+ ## Common imports
34
+
35
+ ```python
36
+ from meltygui import draw_text, draw_voxels, glfw_window, imgui
37
+ from meltygui.core.core_render import render_func
38
+ from meltygui.core.rendering.core_decoration import defaults, no_save
39
+ from meltygui.core.conversion.dict_conversion import DictConversion
40
+ from meltygui.core.conversion.render_host import RenderHost
41
+ from meltygui.view.code_view import draw_function_live
42
+ from meltygui.graphics import Filter
43
+ from meltygui.chat import draw_chat_interface, register_chat_backend
44
+ ```
45
+
46
+ `meltygui.persisted(name, factory, app_id=...)` retains app-owned objects in
47
+ addition to automatically retained view state. Keep an existing app's `app_id`
48
+ when migrating so its session file remains the same.
49
+
50
+ ## Tiled editors
51
+
52
+ Mark an editor with `@render_func(multi_instance=True)` to offer it in every
53
+ tile's editor dropdown. Registration happens when its module is imported; the
54
+ flag does not open a window. A `Tile` in the app model owns the selected function
55
+ reference and its `input_value`. `Tile` and `Split` are `DictConversion` models,
56
+ so the normal app/session persistence saves the layout and function references.
57
+
58
+ ```python
59
+ from meltygui.model.tile_model import Split, Tile
60
+
61
+ @render_func(multi_instance=True, tint=(0.2, 0.4, 0.6))
62
+ def draw_scene(input_value: Scene, state: ViewportState = None):
63
+ ...
64
+ return changed, input_value
65
+
66
+ # Store this on your app model. A layout always has a Split root.
67
+ app_model.tiles = Split("x", [
68
+ Tile(render_func=draw_scene, input_value=scene),
69
+ Tile(render_func=draw_scene, input_value=scene),
70
+ ])
71
+ ```
72
+
73
+ The host declares `multi_instance_renderers=()` to receive the eligible
74
+ function references from core, and passes that parameter to `draw_tiles` along
75
+ with its injected `TileManagerState`. The selected editor receives the tile's
76
+ input unchanged: the app supplies a compatible value, or the editor accepts
77
+ `None` and uses injected model/state. Choosing another editor does not construct
78
+ or convert model data.
79
+
80
+ Each tile has independent injected view state. Switching editors and switching
81
+ back restores that tile's editor state. Splitting inherits the renderer and
82
+ shares the input value, while creating a new view instance. See
83
+ `examples/tile_manager.py` for a runnable demo with counters and notes.
84
+
85
+ Hosted renderers can declare `instance` and `layout_frame` parameters. These
86
+ receive the tile's existing conversion identity and its four shared frame edges,
87
+ so instance-targeted commands and nested column layouts stay within that tile.
88
+ An editor created by a corner split first renders when the drag ends, after its
89
+ initial size is known.
90
+
91
+ Files in an installed library are read-only to the live editor. App source roots
92
+ are registered from the app's entry point and decorated functions. An editable
93
+ framework checkout can also be edited; an ordinary wheel in site-packages cannot.
94
+
95
+ ## Native binding imports
96
+
97
+ MeltyGUI uses a namespaced ImGui binding. Low-level app code should use
98
+ `from meltygui import imgui` (or `import meltygui_imgui as imgui`). Mixing contexts from
99
+ upstream `imgui` with MeltyGUI's binding is unsupported. The upstream packages
100
+ can coexist because the support wheels install different Python namespaces.
101
+
102
+ The optional tensor backend similarly uses `meltygui_pycuda`. A child project's
103
+ own `pycuda` dependency remains independent of MeltyGUI's internal backend.