pyqt-reactive 0.1.3__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 (167) hide show
  1. pyqt_reactive-0.1.3/.github/workflows/ci.yml +108 -0
  2. pyqt_reactive-0.1.3/.github/workflows/publish.yml +51 -0
  3. pyqt_reactive-0.1.3/.gitignore +102 -0
  4. pyqt_reactive-0.1.3/.readthedocs.yml +20 -0
  5. pyqt_reactive-0.1.3/CHANGELOG.md +21 -0
  6. pyqt_reactive-0.1.3/JOSS_READINESS.md +65 -0
  7. pyqt_reactive-0.1.3/LICENSE +21 -0
  8. pyqt_reactive-0.1.3/PKG-INFO +156 -0
  9. pyqt_reactive-0.1.3/README.md +116 -0
  10. pyqt_reactive-0.1.3/docs/Makefile +18 -0
  11. pyqt_reactive-0.1.3/docs/api/modules.rst +114 -0
  12. pyqt_reactive-0.1.3/docs/architecture/abstract_manager_widget.rst +162 -0
  13. pyqt_reactive-0.1.3/docs/architecture/abstract_table_browser.rst +134 -0
  14. pyqt_reactive-0.1.3/docs/architecture/cross_window_update_optimization.rst +552 -0
  15. pyqt_reactive-0.1.3/docs/architecture/field_change_dispatcher.rst +184 -0
  16. pyqt_reactive-0.1.3/docs/architecture/flash_animation_system.rst +145 -0
  17. pyqt_reactive-0.1.3/docs/architecture/gui_performance_patterns.rst +1002 -0
  18. pyqt_reactive-0.1.3/docs/architecture/index.rst +48 -0
  19. pyqt_reactive-0.1.3/docs/architecture/list_item_preview_system.rst +252 -0
  20. pyqt_reactive-0.1.3/docs/architecture/parameter_form_lifecycle.rst +247 -0
  21. pyqt_reactive-0.1.3/docs/architecture/parameter_form_service_architecture.rst +516 -0
  22. pyqt_reactive-0.1.3/docs/architecture/parametric_widget_creation.rst +260 -0
  23. pyqt_reactive-0.1.3/docs/architecture/scope_visual_feedback_system.rst +133 -0
  24. pyqt_reactive-0.1.3/docs/architecture/service-layer-architecture.rst +207 -0
  25. pyqt_reactive-0.1.3/docs/architecture/ui_services_architecture.rst +252 -0
  26. pyqt_reactive-0.1.3/docs/architecture/widget_protocol_system.rst +284 -0
  27. pyqt_reactive-0.1.3/docs/architecture.rst +494 -0
  28. pyqt_reactive-0.1.3/docs/conf.py +85 -0
  29. pyqt_reactive-0.1.3/docs/development/index.rst +12 -0
  30. pyqt_reactive-0.1.3/docs/development/ui-patterns.rst +873 -0
  31. pyqt_reactive-0.1.3/docs/development/window_manager_usage.rst +299 -0
  32. pyqt_reactive-0.1.3/docs/examples/atomic_operations.rst +160 -0
  33. pyqt_reactive-0.1.3/docs/examples/basic.rst +273 -0
  34. pyqt_reactive-0.1.3/docs/examples/dual_axis.rst +294 -0
  35. pyqt_reactive-0.1.3/docs/examples/index.rst +9 -0
  36. pyqt_reactive-0.1.3/docs/examples/ui.rst +268 -0
  37. pyqt_reactive-0.1.3/docs/index.rst +129 -0
  38. pyqt_reactive-0.1.3/docs/make.bat +35 -0
  39. pyqt_reactive-0.1.3/docs/plans/flash_performance_optimization_plan.md +834 -0
  40. pyqt_reactive-0.1.3/docs/plans/opengl_flash_acceleration.md +337 -0
  41. pyqt_reactive-0.1.3/docs/plans/opengl_multi_window_architecture.md +570 -0
  42. pyqt_reactive-0.1.3/docs/plans/parameter_form_manager_live_context.md +157 -0
  43. pyqt_reactive-0.1.3/docs/plans/window_manager_usage.md +286 -0
  44. pyqt_reactive-0.1.3/docs/quickstart.md +44 -0
  45. pyqt_reactive-0.1.3/docs/quickstart.rst +163 -0
  46. pyqt_reactive-0.1.3/docs/state_management.rst +166 -0
  47. pyqt_reactive-0.1.3/docs/undo_redo.rst +54 -0
  48. pyqt_reactive-0.1.3/paper.bib +97 -0
  49. pyqt_reactive-0.1.3/paper.md +141 -0
  50. pyqt_reactive-0.1.3/pyproject.toml +79 -0
  51. pyqt_reactive-0.1.3/scripts/release.py +63 -0
  52. pyqt_reactive-0.1.3/scripts/update_and_release.py +114 -0
  53. pyqt_reactive-0.1.3/scripts/update_version.py +111 -0
  54. pyqt_reactive-0.1.3/scripts/verify_release_ready.py +274 -0
  55. pyqt_reactive-0.1.3/src/pyqt_reactive/__init__.py +27 -0
  56. pyqt_reactive-0.1.3/src/pyqt_reactive/animation/__init__.py +38 -0
  57. pyqt_reactive-0.1.3/src/pyqt_reactive/animation/flash_config.py +102 -0
  58. pyqt_reactive-0.1.3/src/pyqt_reactive/animation/flash_mixin.py +1761 -0
  59. pyqt_reactive-0.1.3/src/pyqt_reactive/animation/flash_overlay_opengl.py +598 -0
  60. pyqt_reactive-0.1.3/src/pyqt_reactive/core/__init__.py +21 -0
  61. pyqt_reactive-0.1.3/src/pyqt_reactive/core/background_task.py +176 -0
  62. pyqt_reactive-0.1.3/src/pyqt_reactive/core/code_generator.py +75 -0
  63. pyqt_reactive-0.1.3/src/pyqt_reactive/core/collapsible_splitter_helper.py +92 -0
  64. pyqt_reactive-0.1.3/src/pyqt_reactive/core/debounce_timer.py +45 -0
  65. pyqt_reactive-0.1.3/src/pyqt_reactive/core/log_utils.py +284 -0
  66. pyqt_reactive-0.1.3/src/pyqt_reactive/core/path_cache.py +250 -0
  67. pyqt_reactive-0.1.3/src/pyqt_reactive/core/performance_monitor.py +224 -0
  68. pyqt_reactive-0.1.3/src/pyqt_reactive/core/reorderable_list_widget.py +55 -0
  69. pyqt_reactive-0.1.3/src/pyqt_reactive/core/rich_text_appender.py +103 -0
  70. pyqt_reactive-0.1.3/src/pyqt_reactive/core/sort_utils.py +16 -0
  71. pyqt_reactive-0.1.3/src/pyqt_reactive/dialogs/__init__.py +5 -0
  72. pyqt_reactive-0.1.3/src/pyqt_reactive/dialogs/group_by_selector_dialog.py +301 -0
  73. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/__init__.py +64 -0
  74. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/form_init_service.py +440 -0
  75. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/layout_constants.py +95 -0
  76. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/parameter_form_base.py +372 -0
  77. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/parameter_form_constants.py +149 -0
  78. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/parameter_form_manager.py +1066 -0
  79. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/parameter_form_service.py +622 -0
  80. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/parameter_info_types.py +255 -0
  81. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/parameter_type_utils.py +317 -0
  82. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/ui_utils.py +46 -0
  83. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/widget_creation_config.py +547 -0
  84. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/widget_creation_registry.py +53 -0
  85. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/widget_creation_types.py +157 -0
  86. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/widget_dispatcher.py +192 -0
  87. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/widget_factory.py +244 -0
  88. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/widget_operations.py +238 -0
  89. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/widget_registry.py +169 -0
  90. pyqt_reactive-0.1.3/src/pyqt_reactive/forms/widget_strategies.py +1037 -0
  91. pyqt_reactive-0.1.3/src/pyqt_reactive/io/base.py +20 -0
  92. pyqt_reactive-0.1.3/src/pyqt_reactive/io/defaults.py +4 -0
  93. pyqt_reactive-0.1.3/src/pyqt_reactive/io/exceptions.py +6 -0
  94. pyqt_reactive-0.1.3/src/pyqt_reactive/io/file_manager.py +769 -0
  95. pyqt_reactive-0.1.3/src/pyqt_reactive/protocols/__init__.py +90 -0
  96. pyqt_reactive-0.1.3/src/pyqt_reactive/protocols/codegen_provider.py +57 -0
  97. pyqt_reactive-0.1.3/src/pyqt_reactive/protocols/component_selection.py +65 -0
  98. pyqt_reactive-0.1.3/src/pyqt_reactive/protocols/form_config.py +58 -0
  99. pyqt_reactive-0.1.3/src/pyqt_reactive/protocols/function_registry.py +73 -0
  100. pyqt_reactive-0.1.3/src/pyqt_reactive/protocols/llm_service.py +37 -0
  101. pyqt_reactive-0.1.3/src/pyqt_reactive/protocols/log_providers.py +58 -0
  102. pyqt_reactive-0.1.3/src/pyqt_reactive/protocols/preview_formatter.py +94 -0
  103. pyqt_reactive-0.1.3/src/pyqt_reactive/protocols/widget_adapters.py +391 -0
  104. pyqt_reactive-0.1.3/src/pyqt_reactive/protocols/widget_protocols.py +155 -0
  105. pyqt_reactive-0.1.3/src/pyqt_reactive/protocols/window_factory.py +79 -0
  106. pyqt_reactive-0.1.3/src/pyqt_reactive/services/__init__.py +57 -0
  107. pyqt_reactive-0.1.3/src/pyqt_reactive/services/enabled_field_styling_service.py +342 -0
  108. pyqt_reactive-0.1.3/src/pyqt_reactive/services/enum_dispatch_service.py +171 -0
  109. pyqt_reactive-0.1.3/src/pyqt_reactive/services/field_change_dispatcher.py +245 -0
  110. pyqt_reactive-0.1.3/src/pyqt_reactive/services/flag_context_manager.py +229 -0
  111. pyqt_reactive-0.1.3/src/pyqt_reactive/services/parameter_ops_service.py +292 -0
  112. pyqt_reactive-0.1.3/src/pyqt_reactive/services/parameter_service_abc.py +207 -0
  113. pyqt_reactive-0.1.3/src/pyqt_reactive/services/pattern_data_manager.py +222 -0
  114. pyqt_reactive-0.1.3/src/pyqt_reactive/services/persistent_system_monitor.py +324 -0
  115. pyqt_reactive-0.1.3/src/pyqt_reactive/services/process_tracker.py +211 -0
  116. pyqt_reactive-0.1.3/src/pyqt_reactive/services/scope_color_service.py +133 -0
  117. pyqt_reactive-0.1.3/src/pyqt_reactive/services/scope_token_service.py +203 -0
  118. pyqt_reactive-0.1.3/src/pyqt_reactive/services/search_service.py +94 -0
  119. pyqt_reactive-0.1.3/src/pyqt_reactive/services/signal_service.py +162 -0
  120. pyqt_reactive-0.1.3/src/pyqt_reactive/services/system_monitor_core.py +209 -0
  121. pyqt_reactive-0.1.3/src/pyqt_reactive/services/value_collection_service.py +153 -0
  122. pyqt_reactive-0.1.3/src/pyqt_reactive/services/widget_service.py +288 -0
  123. pyqt_reactive-0.1.3/src/pyqt_reactive/services/window_manager.py +387 -0
  124. pyqt_reactive-0.1.3/src/pyqt_reactive/theming/__init__.py +17 -0
  125. pyqt_reactive-0.1.3/src/pyqt_reactive/theming/color_scheme.py +389 -0
  126. pyqt_reactive-0.1.3/src/pyqt_reactive/theming/palette_manager.py +268 -0
  127. pyqt_reactive-0.1.3/src/pyqt_reactive/theming/style_generator.py +565 -0
  128. pyqt_reactive-0.1.3/src/pyqt_reactive/utils/__init__.py +10 -0
  129. pyqt_reactive-0.1.3/src/pyqt_reactive/utils/preview_formatters.py +66 -0
  130. pyqt_reactive-0.1.3/src/pyqt_reactive/utils/window_utils.py +83 -0
  131. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/__init__.py +24 -0
  132. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/editors/__init__.py +6 -0
  133. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/editors/simple_code_editor.py +1101 -0
  134. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/enhanced_path_widget.py +291 -0
  135. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/function_list_editor.py +1105 -0
  136. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/function_pane.py +666 -0
  137. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/llm_chat_panel.py +309 -0
  138. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/log_viewer.py +2911 -0
  139. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/mixins/__init__.py +21 -0
  140. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/mixins/cross_window_preview_mixin.py +139 -0
  141. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/mixins/selection_preservation_mixin.py +108 -0
  142. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/no_scroll_spinbox.py +222 -0
  143. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/__init__.py +10 -0
  144. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/abstract_manager_widget.py +2257 -0
  145. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/abstract_table_browser.py +274 -0
  146. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/checkbox_group_widget.py +120 -0
  147. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/clickable_help_components.py +928 -0
  148. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/column_filter_widget.py +522 -0
  149. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/config_hierarchy_tree.py +580 -0
  150. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/function_table_browser.py +83 -0
  151. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/image_table_browser.py +74 -0
  152. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/list_item_delegate.py +563 -0
  153. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/scope_color_strategy.py +166 -0
  154. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/scope_color_utils.py +274 -0
  155. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/scope_visual_config.py +115 -0
  156. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/scoped_border_mixin.py +204 -0
  157. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/shared/scrollable_form_mixin.py +206 -0
  158. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/status_bar.py +324 -0
  159. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/status_indicator.py +157 -0
  160. pyqt_reactive-0.1.3/src/pyqt_reactive/widgets/system_monitor.py +923 -0
  161. pyqt_reactive-0.1.3/src/pyqt_reactive/windows/help_window_manager.py +269 -0
  162. pyqt_reactive-0.1.3/tests/__init__.py +1 -0
  163. pyqt_reactive-0.1.3/tests/conftest.py +12 -0
  164. pyqt_reactive-0.1.3/tests/test_core.py +26 -0
  165. pyqt_reactive-0.1.3/tests/test_protocols.py +16 -0
  166. pyqt_reactive-0.1.3/tests/test_theming.py +21 -0
  167. pyqt_reactive-0.1.3/tests/test_widgets.py +19 -0
@@ -0,0 +1,108 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main, master, claude/**]
6
+ pull_request:
7
+ branches: [main, master]
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ # Test across Python versions and OSes
12
+ test:
13
+ runs-on: ${{ matrix.os }}
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ python-version: ["3.11", "3.12", "3.13"]
18
+ os: [ubuntu-latest, windows-latest, macos-latest]
19
+
20
+ steps:
21
+ - name: Checkout
22
+ uses: actions/checkout@v4
23
+
24
+ - name: Setup Python ${{ matrix.python-version }}
25
+ uses: actions/setup-python@v5
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+
29
+ - name: Install system dependencies (Linux)
30
+ if: runner.os == 'Linux'
31
+ run: |
32
+ sudo apt-get update
33
+ sudo apt-get install -y libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils libegl1
34
+
35
+ - name: Install dependencies
36
+ run: |
37
+ python -m pip install --upgrade pip
38
+ pip install -e ".[dev]"
39
+
40
+ - name: Run tests with coverage
41
+ run: |
42
+ pytest --cov=pyqt_reactive --cov-report=xml --cov-report=html --cov-report=term-missing -v
43
+
44
+ - name: Upload coverage to Codecov
45
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
46
+ uses: codecov/codecov-action@v3
47
+ with:
48
+ file: ./coverage.xml
49
+ fail_ci_if_error: false
50
+
51
+ # Code quality checks
52
+ code-quality:
53
+ runs-on: ubuntu-latest
54
+
55
+ steps:
56
+ - name: Checkout
57
+ uses: actions/checkout@v4
58
+
59
+ - name: Setup Python
60
+ uses: actions/setup-python@v5
61
+ with:
62
+ python-version: "3.12"
63
+
64
+ - name: Install dependencies
65
+ run: |
66
+ python -m pip install --upgrade pip
67
+ pip install ruff black mypy
68
+
69
+ - name: Run ruff (linting)
70
+ run: |
71
+ ruff check src/ --output-format=github
72
+
73
+ - name: Run black (formatting check)
74
+ run: |
75
+ black --check src/
76
+
77
+ - name: Run mypy (type checking)
78
+ run: |
79
+ mypy src/ --ignore-missing-imports
80
+
81
+ # Documentation build check
82
+ docs:
83
+ runs-on: ubuntu-latest
84
+
85
+ steps:
86
+ - name: Checkout
87
+ uses: actions/checkout@v4
88
+
89
+ - name: Setup Python
90
+ uses: actions/setup-python@v5
91
+ with:
92
+ python-version: "3.12"
93
+
94
+ - name: Install dependencies
95
+ run: |
96
+ python -m pip install --upgrade pip
97
+ pip install -e ".[docs]"
98
+
99
+ - name: Build documentation
100
+ run: |
101
+ cd docs
102
+ make html
103
+
104
+ - name: Check for build warnings
105
+ run: |
106
+ cd docs
107
+ make html SPHINXOPTS="-W --keep-going"
108
+
@@ -0,0 +1,51 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ contents: write
10
+ id-token: write # Required for trusted publishing
11
+
12
+ jobs:
13
+ build-and-publish:
14
+ name: Build and publish to PyPI
15
+ runs-on: ubuntu-latest
16
+ environment:
17
+ name: pypi
18
+ url: https://pypi.org/p/pyqt-reactive
19
+
20
+ steps:
21
+ - name: Checkout code
22
+ uses: actions/checkout@v4
23
+
24
+ - name: Set up Python
25
+ uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.12"
28
+
29
+ - name: Install build dependencies
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ pip install build
33
+
34
+ - name: Build package
35
+ run: python -m build
36
+
37
+ - name: Check distribution
38
+ run: |
39
+ pip install twine
40
+ twine check dist/*
41
+
42
+ - name: Create GitHub Release
43
+ uses: softprops/action-gh-release@v2
44
+ with:
45
+ files: dist/*
46
+ generate_release_notes: true
47
+ env:
48
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49
+
50
+ - name: Publish to PyPI
51
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,102 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+
27
+ # PyInstaller
28
+ *.manifest
29
+ *.spec
30
+
31
+ # Installer logs
32
+ pip-log.txt
33
+ pip-delete-this-directory.txt
34
+
35
+ # Unit test / coverage reports
36
+ htmlcov/
37
+ .tox/
38
+ .nox/
39
+ .coverage
40
+ .coverage.*
41
+ .cache
42
+ nosetests.xml
43
+ coverage.xml
44
+ *.cover
45
+ *.py,cover
46
+ .hypothesis/
47
+ .pytest_cache/
48
+
49
+ # Translations
50
+ *.mo
51
+ *.pot
52
+
53
+ # Sphinx documentation
54
+ docs/_build/
55
+
56
+ # PyBuilder
57
+ target/
58
+
59
+ # Jupyter Notebook
60
+ .ipynb_checkpoints
61
+
62
+ # IPython
63
+ profile_default/
64
+ ipython_config.py
65
+
66
+ # pyenv
67
+ .python-version
68
+
69
+ # Environments
70
+ .env
71
+ .venv
72
+ env/
73
+ venv/
74
+ ENV/
75
+ env.bak/
76
+ venv.bak/
77
+
78
+ # Spyder project settings
79
+ .spyderproject
80
+ .spyproject
81
+
82
+ # Rope project settings
83
+ .ropeproject
84
+
85
+ # mkdocs documentation
86
+ /site
87
+
88
+ # mypy
89
+ .mypy_cache/
90
+ .dmypy.json
91
+ dmypy.json
92
+
93
+ # Ruff
94
+ .ruff_cache/
95
+
96
+ # IDE
97
+ .idea/
98
+ .vscode/
99
+ *.swp
100
+ *.swo
101
+ *~
102
+
@@ -0,0 +1,20 @@
1
+ # Read the Docs configuration file
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ version: 2
5
+
6
+ build:
7
+ os: ubuntu-22.04
8
+ tools:
9
+ python: "3.12"
10
+
11
+ sphinx:
12
+ configuration: docs/conf.py
13
+ fail_on_warning: false
14
+
15
+ python:
16
+ install:
17
+ - method: pip
18
+ path: .
19
+ extra_requirements:
20
+ - docs
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ ## [0.1.0] - 2025-01-10
4
+
5
+ ### Added
6
+ - Initial release extracted from OpenHCS
7
+ - Core utilities layer (DebounceTimer, ReorderableListWidget, BackgroundTask, etc.)
8
+ - Theming system (ColorScheme, PaletteManager, StyleSheetGenerator)
9
+ - Widget protocols and adapters (ABC-based contracts)
10
+ - Extended widgets (NoScrollSpinBox, NoneAwareCheckBox, etc.)
11
+ - Animation system (FlashMixin, WindowFlashOverlay, GlobalFlashCoordinator)
12
+ - Service layer (SignalService, WidgetService, ValueCollectionService, etc.)
13
+ - Widget factory infrastructure
14
+ - ParameterFormManager with ObjectState integration
15
+ - Comprehensive test suite
16
+ - Sphinx documentation
17
+
18
+ ### Dependencies
19
+ - PyQt6 >= 6.4.0
20
+ - objectstate >= 0.1.0
21
+ - python-introspect >= 0.1.0
@@ -0,0 +1,65 @@
1
+ # JOSS Readiness Assessment for pyqt-reactor
2
+
3
+ ## Summary
4
+ **Status**: ~70% ready for JOSS submission. Strong paper and documentation, but needs improvements in testing and contribution guidelines.
5
+
6
+ ## ✅ Strengths
7
+
8
+ ### Paper (paper.md)
9
+ - ✅ Clear statement of need with comparison table
10
+ - ✅ Well-articulated software design sections
11
+ - ✅ Real-world application (OpenHCS) demonstrates impact
12
+ - ✅ AI disclosure included
13
+ - ✅ Proper YAML frontmatter with author/affiliation
14
+ - ✅ References section (though needs expansion)
15
+
16
+ ### Documentation
17
+ - ✅ Comprehensive Sphinx docs with multiple sections
18
+ - ✅ Quick start guide with working examples
19
+ - ✅ Architecture documentation
20
+ - ✅ API reference (auto-generated from docstrings)
21
+ - ✅ State management and undo/redo guides
22
+ - ✅ Multiple usage examples
23
+ - ✅ ReadTheDocs integration
24
+
25
+ ### Code Quality
26
+ - ✅ MIT License
27
+ - ✅ Python 3.11+ support
28
+ - ✅ Type hints throughout
29
+ - ✅ Proper package structure
30
+ - ✅ Dependencies clearly specified
31
+
32
+ ## ⚠️ Critical Gaps
33
+
34
+ ### 1. Testing (CRITICAL)
35
+ **Current**: Only 7 test functions across 95 lines
36
+ **Needed**: Expand to 20+ tests covering:
37
+ - Form generation from dataclasses
38
+ - Widget creation and value collection
39
+ - FieldChangeDispatcher
40
+ - WindowManager
41
+ - Theming system
42
+ - ObjectState integration
43
+
44
+ ### 2. Contributing Guidelines (IMPORTANT)
45
+ **Current**: README mentions CONTRIBUTING.md but file doesn't exist
46
+ **Needed**: Create CONTRIBUTING.md with development setup, code style, testing requirements
47
+
48
+ ### 3. Paper References (IMPORTANT)
49
+ **Current**: Only 3 references
50
+ **Needed**: Add citations for PyQt6, ObjectState, python-introspect, related frameworks
51
+
52
+ ### 4. CI/CD Workflows (IMPORTANT)
53
+ **Current**: None
54
+ **Needed**: GitHub Actions for testing, coverage, linting
55
+
56
+ ## Recommendation
57
+
58
+ **Ready to submit after addressing**:
59
+ 1. Expand test suite (minimum 20+ tests)
60
+ 2. Create CONTRIBUTING.md
61
+ 3. Expand paper.bib with 5+ additional references
62
+ 4. Add GitHub Actions CI workflow
63
+
64
+ **Estimated effort**: 10-17 hours to reach 90%+ readiness
65
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tristan Simas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,156 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyqt-reactive
3
+ Version: 0.1.3
4
+ Summary: React-quality reactive form generation framework for PyQt6
5
+ Project-URL: Homepage, https://github.com/OpenHCSDev/pyqt-reactive
6
+ Project-URL: Documentation, https://pyqt-reactive.readthedocs.io
7
+ Project-URL: Repository, https://github.com/OpenHCSDev/pyqt-reactive
8
+ Project-URL: Issues, https://github.com/OpenHCSDev/pyqt-reactive/issues
9
+ Author-email: Tristan Simas <tristan.simas@mail.mcgill.ca>
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: dataclass,forms,gui,pyqt6,reactive,widgets
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
+ Classifier: Topic :: Software Development :: User Interfaces
22
+ Requires-Python: >=3.11
23
+ Requires-Dist: objectstate>=0.1.0
24
+ Requires-Dist: pyqt6>=6.4.0
25
+ Requires-Dist: python-introspect>=0.1.0
26
+ Provides-Extra: dev
27
+ Requires-Dist: black>=23.0; extra == 'dev'
28
+ Requires-Dist: mypy>=1.0; extra == 'dev'
29
+ Requires-Dist: pytest-cov>=4.0; extra == 'dev'
30
+ Requires-Dist: pytest-qt>=4.0; extra == 'dev'
31
+ Requires-Dist: pytest>=7.0; extra == 'dev'
32
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
33
+ Provides-Extra: docs
34
+ Requires-Dist: sphinx-autodoc-typehints>=1.25; extra == 'docs'
35
+ Requires-Dist: sphinx-rtd-theme>=2.0; extra == 'docs'
36
+ Requires-Dist: sphinx>=7.0; extra == 'docs'
37
+ Provides-Extra: magicgui
38
+ Requires-Dist: magicgui>=0.7.0; extra == 'magicgui'
39
+ Description-Content-Type: text/markdown
40
+
41
+ # pyqt-reactor
42
+
43
+ **React-quality reactive form generation framework for PyQt6**
44
+
45
+ [![PyPI version](https://badge.fury.io/py/pyqt-reactor.svg)](https://badge.fury.io/py/pyqt-reactor)
46
+ [![Documentation Status](https://readthedocs.org/projects/pyqt-reactor/badge/?version=latest)](https://pyqt-reactor.readthedocs.io/en/latest/?badge=latest)
47
+ [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
48
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
49
+
50
+ ## Features
51
+
52
+ - **Dataclass-Driven Forms**: Automatically generate UI forms from Python dataclasses
53
+ - **ObjectState Integration**: First-class support for lazy configuration and hierarchical inheritance
54
+ - **ABC-Based Protocols**: Type-safe widget contracts with clean interfaces
55
+ - **Reactive Updates**: React-style lifecycle hooks with cross-window synchronization
56
+ - **Theming System**: ColorScheme-based styling with dynamic theme switching
57
+ - **Flash Animations**: Game-engine inspired visual feedback for value changes
58
+ - **Window Management**: Scoped window registry with navigation support
59
+
60
+ ## Quick Start
61
+
62
+ ```python
63
+ from dataclasses import dataclass
64
+ from PyQt6.QtWidgets import QApplication
65
+ from pyqt_reactive.forms import ParameterFormManager
66
+
67
+ @dataclass
68
+ class ProcessingConfig:
69
+ input_path: str = ""
70
+ output_path: str = ""
71
+ num_workers: int = 4
72
+ enable_gpu: bool = False
73
+
74
+ app = QApplication([])
75
+ form = ParameterFormManager(ProcessingConfig)
76
+ form.show()
77
+ app.exec()
78
+ ```
79
+
80
+ ## Installation
81
+
82
+ ```bash
83
+ pip install pyqt-reactor
84
+ ```
85
+
86
+ For development:
87
+ ```bash
88
+ git clone https://github.com/trissim/pyqt-reactor.git
89
+ cd pyqt-reactor
90
+ pip install -e ".[dev]"
91
+ ```
92
+
93
+ ## Architecture
94
+
95
+ The package is organized in layers:
96
+
97
+ ```
98
+ pyqt_reactive/
99
+ ├── core/ # Tier 1: Pure PyQt6 utilities
100
+ ├── protocols/ # Tier 2: Widget ABCs and adapters
101
+ ├── services/ # Tier 3: Reusable service layer
102
+ ├── forms/ # Tier 4: ParameterFormManager
103
+ ├── theming/ # Color schemes and styling
104
+ ├── widgets/ # Extended widget implementations
105
+ └── animation/ # Flash effects and visual feedback
106
+ ```
107
+
108
+ ## Key Components
109
+
110
+ ### ParameterFormManager
111
+
112
+ Auto-generates forms from dataclasses with full type support:
113
+
114
+ ```python
115
+ from pyqt_reactive.forms import ParameterFormManager
116
+
117
+ form = ParameterFormManager(MyConfig)
118
+ config = form.collect_values() # Get typed config back
119
+ ```
120
+
121
+ ### WindowManager
122
+
123
+ Singleton window registry with scope-based navigation:
124
+
125
+ ```python
126
+ from pyqt_reactive.services import WindowManager
127
+
128
+ window = WindowManager.show_or_focus("config:plate1", lambda: ConfigWindow(...))
129
+ WindowManager.navigate_to("config:plate1", field="exposure_time")
130
+ ```
131
+
132
+ ### Theming
133
+
134
+ Dynamic theme switching with consistent styling:
135
+
136
+ ```python
137
+ from pyqt_reactive.theming import ColorScheme, apply_theme
138
+
139
+ apply_theme(widget, ColorScheme.DARK)
140
+ ```
141
+
142
+ ## Documentation
143
+
144
+ Full documentation available at [pyqt-reactor.readthedocs.io](https://pyqt-reactor.readthedocs.io)
145
+
146
+ ## License
147
+
148
+ MIT License - see LICENSE file for details
149
+
150
+ ## Contributing
151
+
152
+ Contributions welcome! Please see CONTRIBUTING.md for guidelines.
153
+
154
+ ## Credits
155
+
156
+ Developed by Tristan Simas. Extracted from [OpenHCS](https://github.com/trissim/openhcs) for general-purpose use.
@@ -0,0 +1,116 @@
1
+ # pyqt-reactor
2
+
3
+ **React-quality reactive form generation framework for PyQt6**
4
+
5
+ [![PyPI version](https://badge.fury.io/py/pyqt-reactor.svg)](https://badge.fury.io/py/pyqt-reactor)
6
+ [![Documentation Status](https://readthedocs.org/projects/pyqt-reactor/badge/?version=latest)](https://pyqt-reactor.readthedocs.io/en/latest/?badge=latest)
7
+ [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
+
10
+ ## Features
11
+
12
+ - **Dataclass-Driven Forms**: Automatically generate UI forms from Python dataclasses
13
+ - **ObjectState Integration**: First-class support for lazy configuration and hierarchical inheritance
14
+ - **ABC-Based Protocols**: Type-safe widget contracts with clean interfaces
15
+ - **Reactive Updates**: React-style lifecycle hooks with cross-window synchronization
16
+ - **Theming System**: ColorScheme-based styling with dynamic theme switching
17
+ - **Flash Animations**: Game-engine inspired visual feedback for value changes
18
+ - **Window Management**: Scoped window registry with navigation support
19
+
20
+ ## Quick Start
21
+
22
+ ```python
23
+ from dataclasses import dataclass
24
+ from PyQt6.QtWidgets import QApplication
25
+ from pyqt_reactive.forms import ParameterFormManager
26
+
27
+ @dataclass
28
+ class ProcessingConfig:
29
+ input_path: str = ""
30
+ output_path: str = ""
31
+ num_workers: int = 4
32
+ enable_gpu: bool = False
33
+
34
+ app = QApplication([])
35
+ form = ParameterFormManager(ProcessingConfig)
36
+ form.show()
37
+ app.exec()
38
+ ```
39
+
40
+ ## Installation
41
+
42
+ ```bash
43
+ pip install pyqt-reactor
44
+ ```
45
+
46
+ For development:
47
+ ```bash
48
+ git clone https://github.com/trissim/pyqt-reactor.git
49
+ cd pyqt-reactor
50
+ pip install -e ".[dev]"
51
+ ```
52
+
53
+ ## Architecture
54
+
55
+ The package is organized in layers:
56
+
57
+ ```
58
+ pyqt_reactive/
59
+ ├── core/ # Tier 1: Pure PyQt6 utilities
60
+ ├── protocols/ # Tier 2: Widget ABCs and adapters
61
+ ├── services/ # Tier 3: Reusable service layer
62
+ ├── forms/ # Tier 4: ParameterFormManager
63
+ ├── theming/ # Color schemes and styling
64
+ ├── widgets/ # Extended widget implementations
65
+ └── animation/ # Flash effects and visual feedback
66
+ ```
67
+
68
+ ## Key Components
69
+
70
+ ### ParameterFormManager
71
+
72
+ Auto-generates forms from dataclasses with full type support:
73
+
74
+ ```python
75
+ from pyqt_reactive.forms import ParameterFormManager
76
+
77
+ form = ParameterFormManager(MyConfig)
78
+ config = form.collect_values() # Get typed config back
79
+ ```
80
+
81
+ ### WindowManager
82
+
83
+ Singleton window registry with scope-based navigation:
84
+
85
+ ```python
86
+ from pyqt_reactive.services import WindowManager
87
+
88
+ window = WindowManager.show_or_focus("config:plate1", lambda: ConfigWindow(...))
89
+ WindowManager.navigate_to("config:plate1", field="exposure_time")
90
+ ```
91
+
92
+ ### Theming
93
+
94
+ Dynamic theme switching with consistent styling:
95
+
96
+ ```python
97
+ from pyqt_reactive.theming import ColorScheme, apply_theme
98
+
99
+ apply_theme(widget, ColorScheme.DARK)
100
+ ```
101
+
102
+ ## Documentation
103
+
104
+ Full documentation available at [pyqt-reactor.readthedocs.io](https://pyqt-reactor.readthedocs.io)
105
+
106
+ ## License
107
+
108
+ MIT License - see LICENSE file for details
109
+
110
+ ## Contributing
111
+
112
+ Contributions welcome! Please see CONTRIBUTING.md for guidelines.
113
+
114
+ ## Credits
115
+
116
+ Developed by Tristan Simas. Extracted from [OpenHCS](https://github.com/trissim/openhcs) for general-purpose use.
@@ -0,0 +1,18 @@
1
+ # Minimal makefile for Sphinx documentation
2
+
3
+ # You can set these variables from the command line.
4
+ SPHINXOPTS =
5
+ SPHINXBUILD = sphinx-build
6
+ SOURCEDIR = .
7
+ BUILDDIR = _build
8
+
9
+ # Put it first so that "make" without argument is like "make help".
10
+ help:
11
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
12
+
13
+ .PHONY: help Makefile
14
+
15
+ # Catch-all target: route all unknown targets to Sphinx using the new
16
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
17
+ %: Makefile
18
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)