ezmsg-qt 0.2.0__tar.gz → 0.2.2__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 (60) hide show
  1. ezmsg_qt-0.2.2/.github/workflows/docs.yml +73 -0
  2. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/.github/workflows/python-tests.yml +1 -0
  3. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/.gitignore +7 -0
  4. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/MIGRATION.md +3 -3
  5. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/PKG-INFO +10 -9
  6. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/README.md +6 -6
  7. ezmsg_qt-0.2.2/docs/Makefile +20 -0
  8. ezmsg_qt-0.2.2/docs/make.bat +35 -0
  9. ezmsg_qt-0.2.2/docs/source/_static/.gitkeep +0 -0
  10. ezmsg_qt-0.2.2/docs/source/_templates/autosummary/module.rst +65 -0
  11. ezmsg_qt-0.2.2/docs/source/_templates/navbar-logo.html +18 -0
  12. ezmsg_qt-0.2.2/docs/source/api/index.rst +11 -0
  13. ezmsg_qt-0.2.2/docs/source/conf.py +145 -0
  14. ezmsg_qt-0.2.2/docs/source/guides/examples.md +25 -0
  15. ezmsg_qt-0.2.2/docs/source/guides/migration.md +2 -0
  16. ezmsg_qt-0.2.2/docs/source/index.md +18 -0
  17. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/examples/dynamic_topic_switching_demo.py +2 -1
  18. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/examples/processor_chain_demo.py +5 -5
  19. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/examples/processor_chain_showcase.py +9 -9
  20. ezmsg_qt-0.2.2/examples/processor_graph_composition_demo.py +265 -0
  21. ezmsg_qt-0.2.2/examples/processor_graph_toy_demo.py +300 -0
  22. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/examples/spatial_carrier_fft_demo.py +102 -180
  23. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/pyproject.toml +16 -1
  24. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/src/ezmsg/qt/__init__.py +10 -6
  25. ezmsg_qt-0.2.2/src/ezmsg/qt/__version__.py +24 -0
  26. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/src/ezmsg/qt/adapter.py +1 -1
  27. ezmsg_qt-0.2.2/src/ezmsg/qt/chain.py +416 -0
  28. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/src/ezmsg/qt/gate.py +1 -3
  29. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/src/ezmsg/qt/session.py +158 -67
  30. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/src/ezmsg/qt/settings_form.py +58 -0
  31. ezmsg_qt-0.2.2/src/ezmsg/qt/settings_panel.py +174 -0
  32. ezmsg_qt-0.2.2/src/ezmsg/qt/sidecar.py +221 -0
  33. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/src/ezmsg/qt/subscriber.py +26 -1
  34. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/src/ezmsg/qt/visibility.py +1 -1
  35. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/tests/test_auto_gate.py +7 -9
  36. ezmsg_qt-0.2.2/tests/test_chain.py +184 -0
  37. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/tests/test_dynamic_subscriber.py +72 -0
  38. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/tests/test_endpoints.py +20 -0
  39. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/tests/test_integration.py +56 -15
  40. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/tests/test_session_processor.py +8 -8
  41. ezmsg_qt-0.2.2/tests/test_settings_panel.py +114 -0
  42. ezmsg_qt-0.2.2/tests/test_sidecar.py +238 -0
  43. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/tests/test_visibility.py +4 -1
  44. ezmsg_qt-0.2.0/src/ezmsg/qt/__version__.py +0 -34
  45. ezmsg_qt-0.2.0/src/ezmsg/qt/chain.py +0 -258
  46. ezmsg_qt-0.2.0/src/ezmsg/qt/sidecar.py +0 -172
  47. ezmsg_qt-0.2.0/tests/test_chain.py +0 -153
  48. ezmsg_qt-0.2.0/tests/test_sidecar.py +0 -121
  49. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/.envrc +0 -0
  50. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/.github/workflows/python-publish.yml +0 -0
  51. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/.pre-commit-config.yaml +0 -0
  52. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/.python-version +0 -0
  53. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/LICENSE +0 -0
  54. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/examples/dual_runner_shutdown_test.py +0 -0
  55. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/examples/ezmsg_toy_session.py +0 -0
  56. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/examples/simple_demo.py +0 -0
  57. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/src/ezmsg/qt/publisher.py +0 -0
  58. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/tests/test_dynamic_publisher.py +0 -0
  59. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/tests/test_gate.py +0 -0
  60. {ezmsg_qt-0.2.0 → ezmsg_qt-0.2.2}/tests/test_session_sidecar.py +0 -0
@@ -0,0 +1,73 @@
1
+ name: Documentation
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+ release:
11
+ types: [published]
12
+ workflow_dispatch:
13
+
14
+ permissions:
15
+ contents: read
16
+ pages: write
17
+ id-token: write
18
+
19
+ # Allow only one concurrent deployment
20
+ concurrency:
21
+ group: "pages"
22
+ cancel-in-progress: false
23
+
24
+ jobs:
25
+ build:
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ with:
30
+ fetch-depth: 0 # Needed for hatch-vcs to determine version
31
+
32
+ - name: Install uv
33
+ uses: astral-sh/setup-uv@v6
34
+ with:
35
+ enable-cache: true
36
+ python-version: "3.12"
37
+
38
+ - name: Install Qt system libraries
39
+ run: |
40
+ sudo apt-get update
41
+ sudo apt-get install -y libxkbcommon-x11-0 libegl1
42
+
43
+ - name: Install the project
44
+ # Full project install (not --only-group) so autodoc can import ezmsg.qt and its deps
45
+ run: uv sync --group docs
46
+
47
+ - name: Build documentation
48
+ env:
49
+ QT_QPA_PLATFORM: offscreen
50
+ run: |
51
+ cd docs
52
+ uv run make html
53
+
54
+ - name: Add .nojekyll file
55
+ run: touch docs/build/html/.nojekyll
56
+
57
+ - name: Upload artifact
58
+ uses: actions/upload-pages-artifact@v3
59
+ with:
60
+ path: 'docs/build/html'
61
+
62
+ deploy:
63
+ # Deploy on pushes to main and when a release is published (not on PRs)
64
+ if: github.event_name == 'push' || github.event_name == 'release'
65
+ environment:
66
+ name: github-pages
67
+ url: ${{ steps.deployment.outputs.page_url }}
68
+ runs-on: ubuntu-latest
69
+ needs: build
70
+ steps:
71
+ - name: Deploy to GitHub Pages
72
+ id: deployment
73
+ uses: actions/deploy-pages@v4
@@ -12,6 +12,7 @@ on:
12
12
  jobs:
13
13
  build:
14
14
  strategy:
15
+ fail-fast: false
15
16
  matrix:
16
17
  python-version: ["3.10.15", "3.11", "3.12", "3.13"]
17
18
  os:
@@ -70,6 +70,13 @@ venv.bak/
70
70
  .DS_Store
71
71
  Thumbs.db
72
72
 
73
+ # Sphinx documentation
74
+ docs/_build/
75
+ docs/build/
76
+ docs/source/_build
77
+ docs/source/generated
78
+ docs/source/api/generated
79
+
73
80
  # Project specific
74
81
  uv.lock
75
82
  .ruff_cache/
@@ -58,11 +58,11 @@ Notes:
58
58
 
59
59
  ## Processor Pipelines
60
60
 
61
- `ProcessorChain` attaches to a session and always runs off the UI thread.
61
+ `ProcessorGraph` attaches to a session and always runs off the UI thread.
62
62
 
63
63
  ```python
64
- chain = (
65
- ProcessorChain(MyTopic.RAW, parent=self)
64
+ graph = (
65
+ ProcessorGraph(MyTopic.RAW, parent=self)
66
66
  .parallel(Filter)
67
67
  .local(DisplayTransform)
68
68
  .connect(self.on_data)
@@ -1,13 +1,14 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: ezmsg-qt
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Qt integration for ezmsg with direct topic-based pub/sub
5
5
  Author-email: Preston Peranich <pperanich@gmail.com>
6
6
  License-Expression: MIT
7
7
  License-File: LICENSE
8
8
  Requires-Python: >=3.10
9
- Requires-Dist: ezmsg>=3.8
9
+ Requires-Dist: ezmsg>=3.10.0b4
10
10
  Requires-Dist: qtpy>=2.4.1
11
+ Requires-Dist: typing-extensions>=4.0
11
12
  Provides-Extra: examples
12
13
  Requires-Dist: ezmsg-baseproc; extra == 'examples'
13
14
  Requires-Dist: fastplotlib>=0.6.1; extra == 'examples'
@@ -29,7 +30,7 @@ familiar signal/slot style while keeping ezmsg runtime ownership explicit.
29
30
 
30
31
  - `EzSession` owns the ezmsg runtime thread, `GraphContext`, and sidecar pipelines
31
32
  - `EzSubscriber` and `EzPublisher` attach to a session
32
- - `ProcessorChain` compiles processing stages into a sidecar runtime owned by the session
33
+ - `ProcessorGraph` compiles processing stages into a sidecar runtime owned by the session
33
34
 
34
35
  ## Quick Start
35
36
 
@@ -109,15 +110,15 @@ class TopicSwitcher(QtWidgets.QWidget):
109
110
 
110
111
  ## Local Processing
111
112
 
112
- Use `ProcessorChain` when widget-facing data needs ezmsg processing off the UI thread.
113
+ Use `ProcessorGraph` when widget-facing data needs ezmsg processing off the UI thread.
113
114
 
114
115
  ```python
115
- from ezmsg.qt import EzSession, ProcessorChain
116
+ from ezmsg.qt import EzSession, ProcessorGraph
116
117
 
117
118
  session = EzSession()
118
119
 
119
- chain = (
120
- ProcessorChain(MyTopic.RAW, parent=widget)
120
+ graph = (
121
+ ProcessorGraph(MyTopic.RAW, parent=widget)
121
122
  .parallel(LowPassFilter)
122
123
  .local(ThresholdDetector)
123
124
  .connect(widget.on_processed)
@@ -156,7 +157,7 @@ with session:
156
157
  ```
157
158
 
158
159
  - `graph_address`: Optional GraphServer address
159
- - `attach(obj)`: Attach an `EzSubscriber`, `EzPublisher`, or `ProcessorChain`
160
+ - `attach(obj)`: Attach an `EzSubscriber`, `EzPublisher`, or `ProcessorGraph`
160
161
  - `detach(obj)`: Detach an `EzSubscriber` or `EzPublisher`
161
162
  - `running`: Whether the session runtime is active
162
163
 
@@ -9,7 +9,7 @@ familiar signal/slot style while keeping ezmsg runtime ownership explicit.
9
9
 
10
10
  - `EzSession` owns the ezmsg runtime thread, `GraphContext`, and sidecar pipelines
11
11
  - `EzSubscriber` and `EzPublisher` attach to a session
12
- - `ProcessorChain` compiles processing stages into a sidecar runtime owned by the session
12
+ - `ProcessorGraph` compiles processing stages into a sidecar runtime owned by the session
13
13
 
14
14
  ## Quick Start
15
15
 
@@ -89,15 +89,15 @@ class TopicSwitcher(QtWidgets.QWidget):
89
89
 
90
90
  ## Local Processing
91
91
 
92
- Use `ProcessorChain` when widget-facing data needs ezmsg processing off the UI thread.
92
+ Use `ProcessorGraph` when widget-facing data needs ezmsg processing off the UI thread.
93
93
 
94
94
  ```python
95
- from ezmsg.qt import EzSession, ProcessorChain
95
+ from ezmsg.qt import EzSession, ProcessorGraph
96
96
 
97
97
  session = EzSession()
98
98
 
99
- chain = (
100
- ProcessorChain(MyTopic.RAW, parent=widget)
99
+ graph = (
100
+ ProcessorGraph(MyTopic.RAW, parent=widget)
101
101
  .parallel(LowPassFilter)
102
102
  .local(ThresholdDetector)
103
103
  .connect(widget.on_processed)
@@ -136,7 +136,7 @@ with session:
136
136
  ```
137
137
 
138
138
  - `graph_address`: Optional GraphServer address
139
- - `attach(obj)`: Attach an `EzSubscriber`, `EzPublisher`, or `ProcessorChain`
139
+ - `attach(obj)`: Attach an `EzSubscriber`, `EzPublisher`, or `ProcessorGraph`
140
140
  - `detach(obj)`: Detach an `EzSubscriber` or `EzPublisher`
141
141
  - `running`: Whether the session runtime is active
142
142
 
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = source
9
+ BUILDDIR = build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,35 @@
1
+ @ECHO OFF
2
+
3
+ pushd %~dp0
4
+
5
+ REM Command file for Sphinx documentation
6
+
7
+ if "%SPHINXBUILD%" == "" (
8
+ set SPHINXBUILD=sphinx-build
9
+ )
10
+ set SOURCEDIR=source
11
+ set BUILDDIR=build
12
+
13
+ %SPHINXBUILD% >NUL 2>NUL
14
+ if errorlevel 9009 (
15
+ echo.
16
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17
+ echo.installed, then set the SPHINXBUILD environment variable to point
18
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
19
+ echo.may add the Sphinx directory to PATH.
20
+ echo.
21
+ echo.If you don't have Sphinx installed, grab it from
22
+ echo.https://www.sphinx-doc.org/
23
+ exit /b 1
24
+ )
25
+
26
+ if "%1" == "" goto help
27
+
28
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
+ goto end
30
+
31
+ :help
32
+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
+
34
+ :end
35
+ popd
File without changes
@@ -0,0 +1,65 @@
1
+ {{ fullname | escape | underline}}
2
+
3
+ .. automodule:: {{ fullname }}
4
+ :no-members:
5
+
6
+ {% block attributes %}
7
+ {% if attributes %}
8
+ .. rubric:: Module Attributes
9
+
10
+ .. autosummary::
11
+ :toctree:
12
+ {% for item in attributes %}
13
+ {{ item }}
14
+ {%- endfor %}
15
+ {% endif %}
16
+ {% endblock %}
17
+
18
+ {% block functions %}
19
+ {% if functions %}
20
+ .. rubric:: Functions
21
+
22
+ {% for item in functions %}
23
+ .. autofunction:: {{ item }}
24
+ {%- endfor %}
25
+ {% endif %}
26
+ {% endblock %}
27
+
28
+ {% block classes %}
29
+ {% if classes %}
30
+ .. rubric:: Classes
31
+
32
+ {% for item in classes %}
33
+ .. autoclass:: {{ item }}
34
+ :members:
35
+ :undoc-members:
36
+ :show-inheritance:
37
+ :special-members: __init__
38
+ {%- endfor %}
39
+ {% endif %}
40
+ {% endblock %}
41
+
42
+ {% block exceptions %}
43
+ {% if exceptions %}
44
+ .. rubric:: Exceptions
45
+
46
+ {% for item in exceptions %}
47
+ .. autoexception:: {{ item }}
48
+ :members:
49
+ :show-inheritance:
50
+ {%- endfor %}
51
+ {% endif %}
52
+ {% endblock %}
53
+
54
+ {% block modules %}
55
+ {% if modules %}
56
+ .. rubric:: Modules
57
+
58
+ .. autosummary::
59
+ :toctree:
60
+ :recursive:
61
+ {% for item in modules %}
62
+ {{ item }}
63
+ {%- endfor %}
64
+ {% endif %}
65
+ {% endblock %}
@@ -0,0 +1,18 @@
1
+ {# Override of pydata-sphinx-theme's navbar-logo component.
2
+ Splits the brand into two links: the logo image goes to the ezmsg.org
3
+ landing page (``logo.link``) and the title text goes to this site's root. #}
4
+ {% set org_href = theme_logo.get("link") or pathto(root_doc) %}
5
+ {% set alt = theme_logo.get("alt_text", "ezmsg.org") %}
6
+ {% if "light" in theme_logo["image_relative"] %}
7
+ {% if default_mode is undefined or default_mode == "auto" %}
8
+ {% set default_mode = "light" %}
9
+ {% endif %}
10
+ {% set js_mode = "light" if default_mode == "dark" else "dark" %}
11
+ <a class="navbar-brand logo" href="{{ org_href }}" title="ezmsg.org" style="margin-right: 0.75rem;">
12
+ <img src="{{ theme_logo['image_relative'][default_mode] }}" class="logo__image only-{{ default_mode }}" alt="{{ alt }}"/>
13
+ <img src="{{ theme_logo['image_relative'][js_mode] }}" class="logo__image only-{{ js_mode }} pst-js-only" alt="{{ alt }}"/>
14
+ </a>
15
+ {% endif %}
16
+ <a class="navbar-brand logo" href="{{ pathto(root_doc) }}">
17
+ <p class="title logo__title">{{ theme_logo.get("text") or docstitle }}</p>
18
+ </a>
@@ -0,0 +1,11 @@
1
+ API Reference
2
+ =============
3
+
4
+ This page contains auto-generated API reference documentation.
5
+
6
+ .. autosummary::
7
+ :toctree: generated
8
+ :recursive:
9
+ :template: autosummary/module.rst
10
+
11
+ ezmsg.qt
@@ -0,0 +1,145 @@
1
+ # Configuration file for the Sphinx documentation builder.
2
+
3
+ import os
4
+ import sys
5
+
6
+ # Add the source directory to the path
7
+ sys.path.insert(0, os.path.abspath("../../src"))
8
+
9
+ # Allow Qt widgets to be imported/instantiated without a display (e.g. headless CI)
10
+ os.environ.setdefault("QT_QPA_PLATFORM", "offscreen")
11
+
12
+ # -- Project information --------------------------
13
+
14
+ project = "ezmsg.qt"
15
+ copyright = "2026, ezmsg Contributors"
16
+ author = "ezmsg Contributors"
17
+
18
+ # The version is managed by hatch-vcs and stored in __version__.py
19
+ try:
20
+ from ezmsg.qt.__version__ import version as release
21
+ except ImportError:
22
+ release = "unknown"
23
+
24
+ # For display purposes, extract the base version without git commit info
25
+ version = release.split("+")[0] if release != "unknown" else release
26
+
27
+ # -- General configuration --------------------------
28
+
29
+ extensions = [
30
+ "sphinx.ext.autodoc",
31
+ "sphinx.ext.autosummary",
32
+ "sphinx.ext.napoleon",
33
+ "sphinx.ext.intersphinx",
34
+ "sphinx.ext.viewcode",
35
+ "sphinx.ext.duration",
36
+ "sphinx_autodoc_typehints",
37
+ "sphinx_copybutton",
38
+ "myst_parser", # For markdown files
39
+ ]
40
+
41
+ templates_path = ["_templates"]
42
+ source_suffix = {
43
+ ".rst": "restructuredtext",
44
+ ".md": "markdown",
45
+ }
46
+ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
47
+
48
+ # The toctree master document
49
+ master_doc = "index"
50
+
51
+ # -- Autodoc configuration ------------------------------
52
+
53
+ # Auto-generate API docs
54
+ autosummary_generate = True
55
+ autosummary_imported_members = False
56
+ autodoc_typehints = "description"
57
+ autodoc_member_order = "bysource"
58
+ autodoc_typehints_format = "short"
59
+ python_use_unqualified_type_names = True
60
+ autodoc_default_options = {
61
+ "members": True,
62
+ "member-order": "bysource",
63
+ "special-members": "__init__",
64
+ "undoc-members": True,
65
+ "show-inheritance": True,
66
+ }
67
+
68
+ # Don't show the full module path in the docs
69
+ add_module_names = False
70
+
71
+ # -- Intersphinx configuration --------------------------
72
+
73
+ intersphinx_mapping = {
74
+ "python": ("https://docs.python.org/3/", None),
75
+ "numpy": ("https://numpy.org/doc/stable/", None),
76
+ "ezmsg": ("https://www.ezmsg.org/ezmsg/", None),
77
+ }
78
+ intersphinx_disabled_domains = ["std"]
79
+
80
+ # -- Options for HTML output -----------------------------
81
+
82
+ html_theme = "pydata_sphinx_theme"
83
+ html_static_path = ["_static"]
84
+
85
+ # Set the base URL for the documentation
86
+ html_baseurl = "https://www.ezmsg.org/ezmsg-qt/"
87
+
88
+ html_theme_options = {
89
+ "logo": {
90
+ "text": f"ezmsg.qt {version}",
91
+ "link": "https://www.ezmsg.org",
92
+ "image_light": "https://www.ezmsg.org/_static/_images/ezmsg_logo.png",
93
+ "image_dark": "https://www.ezmsg.org/_static/_images/ezmsg_logo.png",
94
+ "alt_text": "ezmsg.org",
95
+ },
96
+ "header_links_before_dropdown": 4,
97
+ "navbar_start": ["navbar-logo"],
98
+ "navbar_end": ["theme-switcher", "navbar-icon-links"],
99
+ "icon_links": [
100
+ {
101
+ "name": "GitHub",
102
+ "url": "https://github.com/ezmsg-org/ezmsg-qt",
103
+ "icon": "fa-brands fa-github",
104
+ },
105
+ {
106
+ "name": "ezmsg.org",
107
+ "url": "https://www.ezmsg.org",
108
+ "icon": "fa-solid fa-house",
109
+ },
110
+ ],
111
+ }
112
+
113
+ # Timestamp is inserted at every page bottom in this strftime format.
114
+ html_last_updated_fmt = "%Y-%m-%d"
115
+
116
+ # -- Options for linkcode -----------------------------
117
+
118
+ branch = "main"
119
+ code_url = f"https://github.com/ezmsg-org/ezmsg-qt/blob/{branch}/"
120
+
121
+
122
+ def linkcode_resolve(domain, info):
123
+ if domain != "py":
124
+ return None
125
+ if not info["module"]:
126
+ return None
127
+ filename = info["module"].replace(".", "/")
128
+ return f"{code_url}src/{filename}.py"
129
+
130
+
131
+ # -- Qt signal annotation -----------------------------
132
+
133
+
134
+ def _document_qt_signals(app, what, name, obj, options, lines):
135
+ """Label class-level Qt signals (which carry no docstring) with their signature."""
136
+ try:
137
+ from qtpy import QtCore
138
+ except ImportError:
139
+ return
140
+ if isinstance(obj, QtCore.Signal):
141
+ lines[:0] = [f"Qt signal: ``{obj}``", ""]
142
+
143
+
144
+ def setup(app):
145
+ app.connect("autodoc-process-docstring", _document_qt_signals)
@@ -0,0 +1,25 @@
1
+ # Examples
2
+
3
+ The [`examples/`](https://github.com/ezmsg-org/ezmsg-qt/tree/main/examples) directory
4
+ contains runnable demos. From a clone of the repository, install the project with a
5
+ Qt binding and run a demo:
6
+
7
+ ```bash
8
+ uv sync --extra pyside6
9
+ uv run python examples/simple_demo.py
10
+ ```
11
+
12
+ `spatial_carrier_fft_demo.py` additionally requires the `examples` extra
13
+ (`uv sync --extra pyside6 --extra examples`).
14
+
15
+ | Example | Description |
16
+ |---|---|
17
+ | [`simple_demo.py`](https://github.com/ezmsg-org/ezmsg-qt/blob/main/examples/simple_demo.py) | A Qt widget publishes numbers to an ezmsg unit that doubles them and receives the results via `EzSession`. |
18
+ | [`ezmsg_toy_session.py`](https://github.com/ezmsg-org/ezmsg-qt/blob/main/examples/ezmsg_toy_session.py) | Connects a Qt widget to the ezmsg toy graph running in a `GraphRunner` (publish and subscribe). |
19
+ | [`dynamic_topic_switching_demo.py`](https://github.com/ezmsg-org/ezmsg-qt/blob/main/examples/dynamic_topic_switching_demo.py) | Runtime `EzSubscriber` topic switching. |
20
+ | [`processor_chain_demo.py`](https://github.com/ezmsg-org/ezmsg-qt/blob/main/examples/processor_chain_demo.py) | Compiled processor pipelines with shared and isolated sidecar execution stages. |
21
+ | [`processor_chain_showcase.py`](https://github.com/ezmsg-org/ezmsg-qt/blob/main/examples/processor_chain_showcase.py) | Tour of the `ProcessorGraph` API: `.parallel()` / `.local()` stages, auto-gating when a widget is hidden, and mixed graphs. |
22
+ | [`processor_graph_composition_demo.py`](https://github.com/ezmsg-org/ezmsg-qt/blob/main/examples/processor_graph_composition_demo.py) | `ProcessorGraph` composition with reusable recipes and branches. |
23
+ | [`processor_graph_toy_demo.py`](https://github.com/ezmsg-org/ezmsg-qt/blob/main/examples/processor_graph_toy_demo.py) | Qt-flavored reimplementation of the ezmsg toy graph using `ProcessorGraph`. |
24
+ | [`spatial_carrier_fft_demo.py`](https://github.com/ezmsg-org/ezmsg-qt/blob/main/examples/spatial_carrier_fft_demo.py) | Spatial carrier demo driven by `ezmsg.baseproc.clock.Clock`, plotted with fastplotlib. |
25
+ | [`dual_runner_shutdown_test.py`](https://github.com/ezmsg-org/ezmsg-qt/blob/main/examples/dual_runner_shutdown_test.py) | Minimal reproduction of a sidecar `GraphRunner` shutdown deadlock and its fix (diagnostic script). |
@@ -0,0 +1,2 @@
1
+ ```{include} ../../../MIGRATION.md
2
+ ```
@@ -0,0 +1,18 @@
1
+ ```{include} ../../README.md
2
+ ```
3
+
4
+ ## Documentation
5
+
6
+ ```{toctree}
7
+ :maxdepth: 2
8
+ :caption: Contents:
9
+
10
+ guides/migration
11
+ guides/examples
12
+ api/index
13
+ ```
14
+
15
+ ## Indices and tables
16
+
17
+ - {ref}`genindex`
18
+ - {ref}`modindex`
@@ -73,7 +73,8 @@ class DynamicTopicWidget(QtWidgets.QWidget):
73
73
  layout.setSpacing(12)
74
74
 
75
75
  instructions = QtWidgets.QLabel(
76
- "Choose a topic. The same EzSubscriber retargets without reconnecting the slot."
76
+ "Choose a topic. The same EzSubscriber retargets "
77
+ + "without reconnecting the slot."
77
78
  )
78
79
  instructions.setWordWrap(True)
79
80
  instructions.setSizePolicy(
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
- Processor Chain Demo
3
+ Processor Graph Demo
4
4
 
5
5
  Demonstrates compiled processor pipelines with shared and isolated
6
6
  sidecar execution stages.
@@ -17,7 +17,7 @@ from qtpy import QtCore
17
17
  from qtpy import QtWidgets
18
18
 
19
19
  from ezmsg.qt import EzSession
20
- from ezmsg.qt import ProcessorChain
20
+ from ezmsg.qt import ProcessorGraph
21
21
 
22
22
 
23
23
  class DemoTopic(Enum):
@@ -67,7 +67,7 @@ class NumberGenerator(ez.Unit):
67
67
  class DemoWidget(QtWidgets.QWidget):
68
68
  def __init__(self, session: EzSession):
69
69
  super().__init__()
70
- self.setWindowTitle("Processor Chain Demo")
70
+ self.setWindowTitle("Processor Graph Demo")
71
71
 
72
72
  layout = QtWidgets.QVBoxLayout(self)
73
73
 
@@ -75,8 +75,8 @@ class DemoWidget(QtWidgets.QWidget):
75
75
  self.result_label = QtWidgets.QLabel("Waiting for data...")
76
76
  layout.addWidget(self.result_label)
77
77
 
78
- self.chain = (
79
- ProcessorChain(DemoTopic.NUMBERS, parent=self)
78
+ self.graph = (
79
+ ProcessorGraph(DemoTopic.NUMBERS, parent=self, auto_gate=True)
80
80
  .parallel(DoubleProcessor)
81
81
  .local(SquareProcessor)
82
82
  .connect(self.on_result)
@@ -2,12 +2,12 @@
2
2
  """
3
3
  Processor Chain Showcase
4
4
 
5
- Demonstrates all features of the processor chains API:
5
+ Demonstrates all features of the processor graph API:
6
6
  - Fluent .parallel() / .local() API for grouping processors
7
7
  - .parallel() for running in sidecar (parallel processing)
8
8
  - .local() for running in the shared sidecar process
9
9
  - Auto-gating: processing stops when widget is hidden (e.g., tab not visible)
10
- - Mixed chains with both parallel and local groups
10
+ - Mixed graphs with both parallel and local stages
11
11
 
12
12
  """
13
13
 
@@ -23,7 +23,7 @@ from qtpy import QtWidgets
23
23
 
24
24
  from ezmsg.qt import EzSession
25
25
  from ezmsg.qt import EzSubscriber
26
- from ezmsg.qt import ProcessorChain
26
+ from ezmsg.qt import ProcessorGraph
27
27
 
28
28
 
29
29
  class DataTopic(Enum):
@@ -31,7 +31,7 @@ class DataTopic(Enum):
31
31
 
32
32
 
33
33
  # ============================================================================
34
- # Processors - These can be reused in different chain configurations
34
+ # Processors - These can be reused in different graph configurations
35
35
  # ============================================================================
36
36
 
37
37
 
@@ -148,10 +148,10 @@ class ProcessedDataWidget(QtWidgets.QWidget):
148
148
 
149
149
  layout.addStretch()
150
150
 
151
- # Set up processor chain with auto-gating
151
+ # Set up processor graph with auto-gating
152
152
  # When this widget is hidden (tab switched), processing stops
153
- self.chain = (
154
- ProcessorChain(DataTopic.SENSOR_DATA, parent=self)
153
+ self.graph = (
154
+ ProcessorGraph(DataTopic.SENSOR_DATA, parent=self, auto_gate=True)
155
155
  .parallel(LowPassFilter, ScaleProcessor) # Sidecar (grouped)
156
156
  .local(ThresholdDetector)
157
157
  .connect(self.on_data)
@@ -191,7 +191,7 @@ class RawDataWidget(QtWidgets.QWidget):
191
191
  title = QtWidgets.QLabel("<b>Raw Sensor Data</b>")
192
192
  layout.addWidget(title)
193
193
 
194
- desc = QtWidgets.QLabel("Direct subscription - no processor chain")
194
+ desc = QtWidgets.QLabel("Direct subscription - no processor graph")
195
195
  layout.addWidget(desc)
196
196
 
197
197
  self.result_label = QtWidgets.QLabel("Waiting for data...")
@@ -207,7 +207,7 @@ class RawDataWidget(QtWidgets.QWidget):
207
207
 
208
208
  layout.addStretch()
209
209
 
210
- # Direct subscription without processor chain
210
+ # Direct subscription without processor graph
211
211
  self.sub = EzSubscriber(DataTopic.SENSOR_DATA, parent=self, session=session)
212
212
  self.sub.connect(self.on_data)
213
213