frequenz-dispatch 1.0.3__tar.gz → 1.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.
- {frequenz_dispatch-1.0.3/src/frequenz_dispatch.egg-info → frequenz_dispatch-1.1.0}/PKG-INFO +34 -30
- frequenz_dispatch-1.1.0/RELEASE_NOTES.md +22 -0
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/pyproject.toml +43 -33
- frequenz_dispatch-1.1.0/src/frequenz/dispatch/__init__.py +41 -0
- frequenz_dispatch-1.1.0/src/frequenz/dispatch/_actor_dispatcher.py +978 -0
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/src/frequenz/dispatch/_bg_service.py +109 -22
- frequenz_dispatch-1.1.0/src/frequenz/dispatch/_continuation.py +164 -0
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/src/frequenz/dispatch/_dispatch.py +7 -18
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/src/frequenz/dispatch/_dispatcher.py +74 -35
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/src/frequenz/dispatch/_event.py +1 -1
- frequenz_dispatch-1.1.0/src/frequenz/dispatch/_merge_helpers.py +33 -0
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/src/frequenz/dispatch/_merge_strategies.py +39 -20
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0/src/frequenz_dispatch.egg-info}/PKG-INFO +34 -30
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/src/frequenz_dispatch.egg-info/SOURCES.txt +4 -0
- frequenz_dispatch-1.1.0/src/frequenz_dispatch.egg-info/requires.txt +59 -0
- frequenz_dispatch-1.1.0/src/frequenz_dispatch.egg-info/scm_file_list.json +57 -0
- frequenz_dispatch-1.1.0/src/frequenz_dispatch.egg-info/scm_version.json +8 -0
- frequenz_dispatch-1.0.3/RELEASE_NOTES.md +0 -22
- frequenz_dispatch-1.0.3/src/frequenz/dispatch/__init__.py +0 -37
- frequenz_dispatch-1.0.3/src/frequenz/dispatch/_actor_dispatcher.py +0 -355
- frequenz_dispatch-1.0.3/src/frequenz_dispatch.egg-info/requires.txt +0 -54
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/LICENSE +0 -0
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/MANIFEST.in +0 -0
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/README.md +0 -0
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/setup.cfg +0 -0
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/src/frequenz/dispatch/conftest.py +0 -0
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/src/frequenz/dispatch/py.typed +0 -0
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/src/frequenz_dispatch.egg-info/dependency_links.txt +0 -0
- {frequenz_dispatch-1.0.3 → frequenz_dispatch-1.1.0}/src/frequenz_dispatch.egg-info/top_level.txt +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: frequenz-dispatch
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: A highlevel interface for the dispatch API
|
|
5
5
|
Author-email: Frequenz Energy-as-a-Service GmbH <floss@frequenz.com>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Project-URL: Documentation, https://frequenz-floss.github.io/frequenz-dispatch-python/
|
|
8
8
|
Project-URL: Changelog, https://github.com/frequenz-floss/frequenz-dispatch-python/releases
|
|
9
9
|
Project-URL: Issues, https://github.com/frequenz-floss/frequenz-dispatch-python/issues
|
|
@@ -12,7 +12,6 @@ Project-URL: Support, https://github.com/frequenz-floss/frequenz-dispatch-python
|
|
|
12
12
|
Keywords: frequenz,python,actor,frequenz-dispatch,dispatch,highlevel,api
|
|
13
13
|
Classifier: Development Status :: 3 - Alpha
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Classifier: Programming Language :: Python :: 3
|
|
17
16
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
17
|
Classifier: Topic :: Software Development :: Libraries
|
|
@@ -20,50 +19,55 @@ Classifier: Typing :: Typed
|
|
|
20
19
|
Requires-Python: <4,>=3.11
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
22
21
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: typing-extensions<5.0.0,>=4.
|
|
22
|
+
Requires-Dist: typing-extensions<5.0.0,>=4.16.0
|
|
24
23
|
Requires-Dist: frequenz-sdk<1.0.0-rc2300,>=1.0.0-rc2100
|
|
25
|
-
Requires-Dist: frequenz-channels<
|
|
24
|
+
Requires-Dist: frequenz-channels<3.0.0,>=1.13.0
|
|
26
25
|
Requires-Dist: frequenz-client-dispatch<2.0.0,>=0.11.3
|
|
27
26
|
Requires-Dist: frequenz-client-base<0.12.0,>=0.11.0
|
|
27
|
+
Requires-Dist: frequenz-client-common<0.5.0,>=0.3.8
|
|
28
|
+
Requires-Dist: frequenz-core<2.0.0,>=1.6.0
|
|
29
|
+
Requires-Dist: grpcio<2.0.0,>=1.80.0
|
|
28
30
|
Provides-Extra: dev-flake8
|
|
29
|
-
Requires-Dist: flake8==7.
|
|
31
|
+
Requires-Dist: flake8==7.5.0; extra == "dev-flake8"
|
|
32
|
+
Requires-Dist: flake8-datetimez==26.8.1; extra == "dev-flake8"
|
|
30
33
|
Requires-Dist: flake8-docstrings==1.7.0; extra == "dev-flake8"
|
|
31
34
|
Requires-Dist: flake8-pyproject==1.2.4; extra == "dev-flake8"
|
|
32
|
-
Requires-Dist: pydoclint==0.
|
|
35
|
+
Requires-Dist: pydoclint==0.12.0; extra == "dev-flake8"
|
|
33
36
|
Requires-Dist: pydocstyle==6.3.0; extra == "dev-flake8"
|
|
34
37
|
Provides-Extra: dev-formatting
|
|
35
|
-
Requires-Dist: black==
|
|
36
|
-
Requires-Dist: isort==
|
|
38
|
+
Requires-Dist: black==26.10.1; extra == "dev-formatting"
|
|
39
|
+
Requires-Dist: isort==9.0.2; extra == "dev-formatting"
|
|
37
40
|
Provides-Extra: dev-mkdocs
|
|
38
|
-
Requires-Dist: black==
|
|
39
|
-
Requires-Dist: Markdown==3.
|
|
40
|
-
Requires-Dist: mike==2.
|
|
41
|
-
Requires-Dist: mkdocs-gen-files==0.6.
|
|
42
|
-
Requires-Dist: mkdocs-literate-nav==0.6.
|
|
41
|
+
Requires-Dist: black==26.10.1; extra == "dev-mkdocs"
|
|
42
|
+
Requires-Dist: Markdown==3.11.3; extra == "dev-mkdocs"
|
|
43
|
+
Requires-Dist: mike==2.2.0; extra == "dev-mkdocs"
|
|
44
|
+
Requires-Dist: mkdocs-gen-files==0.6.1; extra == "dev-mkdocs"
|
|
45
|
+
Requires-Dist: mkdocs-literate-nav==0.6.3; extra == "dev-mkdocs"
|
|
43
46
|
Requires-Dist: mkdocs-macros-plugin==1.5.0; extra == "dev-mkdocs"
|
|
44
|
-
Requires-Dist: mkdocs-material==9.
|
|
45
|
-
Requires-Dist: mkdocstrings[python]==1.0.
|
|
46
|
-
Requires-Dist: mkdocstrings-python==
|
|
47
|
-
Requires-Dist: frequenz-repo-config[lib]==0.
|
|
47
|
+
Requires-Dist: mkdocs-material==9.8.1; extra == "dev-mkdocs"
|
|
48
|
+
Requires-Dist: mkdocstrings[python]==1.0.8; extra == "dev-mkdocs"
|
|
49
|
+
Requires-Dist: mkdocstrings-python==2.0.11; extra == "dev-mkdocs"
|
|
50
|
+
Requires-Dist: frequenz-repo-config[lib]==0.19.0; extra == "dev-mkdocs"
|
|
48
51
|
Provides-Extra: dev-mypy
|
|
49
|
-
Requires-Dist: mypy==
|
|
52
|
+
Requires-Dist: mypy==2.4.1; extra == "dev-mypy"
|
|
50
53
|
Requires-Dist: grpc-stubs==1.53.0.6; extra == "dev-mypy"
|
|
51
|
-
Requires-Dist: types-Markdown==3.
|
|
54
|
+
Requires-Dist: types-Markdown==3.11.3.20261108; extra == "dev-mypy"
|
|
52
55
|
Requires-Dist: frequenz-dispatch[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-mypy"
|
|
53
56
|
Provides-Extra: dev-noxfile
|
|
54
|
-
Requires-Dist: uv==0.
|
|
55
|
-
Requires-Dist: nox==
|
|
56
|
-
Requires-Dist: frequenz-repo-config[lib]==0.
|
|
57
|
+
Requires-Dist: uv==0.13.8; extra == "dev-noxfile"
|
|
58
|
+
Requires-Dist: nox==2026.10.20; extra == "dev-noxfile"
|
|
59
|
+
Requires-Dist: frequenz-repo-config[lib]==0.19.0; extra == "dev-noxfile"
|
|
57
60
|
Provides-Extra: dev-pylint
|
|
58
|
-
Requires-Dist: pylint==4.
|
|
61
|
+
Requires-Dist: pylint==4.1.3; extra == "dev-pylint"
|
|
59
62
|
Requires-Dist: frequenz-dispatch[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-pylint"
|
|
60
63
|
Provides-Extra: dev-pytest
|
|
61
|
-
Requires-Dist: pytest==9.0
|
|
62
|
-
Requires-Dist:
|
|
63
|
-
Requires-Dist:
|
|
64
|
-
Requires-Dist: pytest-
|
|
65
|
-
Requires-Dist:
|
|
66
|
-
Requires-Dist:
|
|
64
|
+
Requires-Dist: pytest==9.2.0; extra == "dev-pytest"
|
|
65
|
+
Requires-Dist: pylint==4.1.3; extra == "dev-pytest"
|
|
66
|
+
Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.19.0; extra == "dev-pytest"
|
|
67
|
+
Requires-Dist: pytest-mock==3.17.0; extra == "dev-pytest"
|
|
68
|
+
Requires-Dist: pytest-asyncio==1.5.0; extra == "dev-pytest"
|
|
69
|
+
Requires-Dist: async-solipsism==0.10; extra == "dev-pytest"
|
|
70
|
+
Requires-Dist: time-machine==3.6.0; extra == "dev-pytest"
|
|
67
71
|
Provides-Extra: dev
|
|
68
72
|
Requires-Dist: frequenz-dispatch[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]; extra == "dev"
|
|
69
73
|
Dynamic: license-file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Dispatch Highlevel Interface Release Notes
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
|
|
5
|
+
This release adds opt-in support for handing over a running actor between exactly adjacent dispatches, and adds support for `frequenz-channels` v2.0.0, while still supporting v1.13. It also fixes actors being left running when a dispatch's merge identity changes, and a scheduler timer crash.
|
|
6
|
+
|
|
7
|
+
## Upgrading
|
|
8
|
+
|
|
9
|
+
* `ActorDispatcher.ActorAndChannel` was exposed by mistake. This internal helper is now private and is no longer available under its old name.
|
|
10
|
+
* Dispatch now accepts `frequenz-channels >= 1.13.0, < 3`, including v2.
|
|
11
|
+
* The minimum `frequenz-core` version is now 1.6.0, and the minimum `typing-extensions` version is now 4.16.0. These versions are required by `frequenz-channels` 1.13.0 too.
|
|
12
|
+
* The internal timers now use `MonotonicTimer`, and channel shutdown uses `aclose`. These replace APIs that `frequenz-channels` v2 removes.
|
|
13
|
+
|
|
14
|
+
## New Features
|
|
15
|
+
|
|
16
|
+
* Added opt-in support for reusing a continuation-capable actor across exactly adjacent, compatible dispatches, enabled only through `Dispatcher.start_managing(continuation_predicate=...)`. New public names: `ContinuationCapable`, `is_exact_continuation()`, `DispatchInfo.continuation_of` and `DispatchInfo.dispatch`. Ambiguous or unsupported handovers keep the normal stop/start behavior.
|
|
17
|
+
|
|
18
|
+
## Bug Fixes
|
|
19
|
+
|
|
20
|
+
* Docstrings now use absolute cross-references to public paths instead of relative ones. Relative cross-references are expanded from the module where an object is defined since mkdocstrings-python 2.0.9, which broke some links, and projects rendering docstrings inherited from this library needed `relative_crossrefs: true` for them to work at all. See [frequenz-repo-config-python#655](https://github.com/frequenz-floss/frequenz-repo-config-python/issues/655) for details.
|
|
21
|
+
* Fixed actors being left running when an update changes a dispatch's merge identity.
|
|
22
|
+
* Fixed the scheduler's timer crashing when two scheduled events landed at the same instant, and stopped it from spinning at a microsecond interval once its event queue emptied afterward.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
[build-system]
|
|
5
5
|
requires = [
|
|
6
|
-
"setuptools ==
|
|
7
|
-
"setuptools_scm[toml] ==
|
|
8
|
-
"frequenz-repo-config[lib] == 0.
|
|
6
|
+
"setuptools == 84.2.1",
|
|
7
|
+
"setuptools_scm[toml] == 10.3.4",
|
|
8
|
+
"frequenz-repo-config[lib] == 0.19.0",
|
|
9
9
|
]
|
|
10
10
|
build-backend = "setuptools.build_meta"
|
|
11
11
|
|
|
@@ -13,7 +13,8 @@ build-backend = "setuptools.build_meta"
|
|
|
13
13
|
name = "frequenz-dispatch"
|
|
14
14
|
description = "A highlevel interface for the dispatch API"
|
|
15
15
|
readme = "README.md"
|
|
16
|
-
license =
|
|
16
|
+
license = "MIT"
|
|
17
|
+
license-files = ["LICENSE"]
|
|
17
18
|
keywords = [
|
|
18
19
|
"frequenz",
|
|
19
20
|
"python",
|
|
@@ -26,7 +27,6 @@ keywords = [
|
|
|
26
27
|
classifiers = [
|
|
27
28
|
"Development Status :: 3 - Alpha",
|
|
28
29
|
"Intended Audience :: Developers",
|
|
29
|
-
"License :: OSI Approved :: MIT License",
|
|
30
30
|
"Programming Language :: Python :: 3",
|
|
31
31
|
"Programming Language :: Python :: 3 :: Only",
|
|
32
32
|
"Topic :: Software Development :: Libraries",
|
|
@@ -34,14 +34,17 @@ classifiers = [
|
|
|
34
34
|
]
|
|
35
35
|
requires-python = ">= 3.11, < 4"
|
|
36
36
|
dependencies = [
|
|
37
|
-
"typing-extensions >= 4.
|
|
37
|
+
"typing-extensions >= 4.16.0, < 5.0.0",
|
|
38
38
|
# Make sure to update the version for cross-referencing also in the
|
|
39
39
|
# mkdocs.yml file when changing the version here (look for the config key
|
|
40
|
-
# plugins.mkdocstrings.handlers.python.
|
|
40
|
+
# plugins.mkdocstrings.handlers.python.inventories)
|
|
41
41
|
"frequenz-sdk >= 1.0.0-rc2100, < 1.0.0-rc2300",
|
|
42
|
-
"frequenz-channels >= 1.
|
|
42
|
+
"frequenz-channels >= 1.13.0, < 3.0.0",
|
|
43
43
|
"frequenz-client-dispatch >= 0.11.3, < 2.0.0",
|
|
44
44
|
"frequenz-client-base >= 0.11.0, < 0.12.0",
|
|
45
|
+
"frequenz-client-common >= 0.3.8, < 0.5.0",
|
|
46
|
+
"frequenz-core >= 1.6.0, < 2.0.0",
|
|
47
|
+
"grpcio >= 1.80.0, < 2.0.0",
|
|
45
48
|
]
|
|
46
49
|
dynamic = ["version"]
|
|
47
50
|
|
|
@@ -51,50 +54,52 @@ email = "floss@frequenz.com"
|
|
|
51
54
|
|
|
52
55
|
[project.optional-dependencies]
|
|
53
56
|
dev-flake8 = [
|
|
54
|
-
"flake8 == 7.
|
|
57
|
+
"flake8 == 7.5.0",
|
|
58
|
+
"flake8-datetimez == 26.8.1",
|
|
55
59
|
"flake8-docstrings == 1.7.0",
|
|
56
60
|
"flake8-pyproject == 1.2.4", # For reading the flake8 config from pyproject.toml
|
|
57
|
-
"pydoclint == 0.
|
|
61
|
+
"pydoclint == 0.12.0",
|
|
58
62
|
"pydocstyle == 6.3.0",
|
|
59
63
|
]
|
|
60
|
-
dev-formatting = ["black ==
|
|
64
|
+
dev-formatting = ["black == 26.10.1", "isort == 9.0.2"]
|
|
61
65
|
dev-mkdocs = [
|
|
62
|
-
"black ==
|
|
63
|
-
"Markdown==3.
|
|
64
|
-
"mike == 2.
|
|
65
|
-
"mkdocs-gen-files == 0.6.
|
|
66
|
-
"mkdocs-literate-nav == 0.6.
|
|
66
|
+
"black == 26.10.1",
|
|
67
|
+
"Markdown==3.11.3",
|
|
68
|
+
"mike == 2.2.0",
|
|
69
|
+
"mkdocs-gen-files == 0.6.1",
|
|
70
|
+
"mkdocs-literate-nav == 0.6.3",
|
|
67
71
|
"mkdocs-macros-plugin == 1.5.0",
|
|
68
|
-
"mkdocs-material == 9.
|
|
69
|
-
"mkdocstrings[python] == 1.0.
|
|
70
|
-
"mkdocstrings-python ==
|
|
71
|
-
"frequenz-repo-config[lib] == 0.
|
|
72
|
+
"mkdocs-material == 9.8.1",
|
|
73
|
+
"mkdocstrings[python] == 1.0.8",
|
|
74
|
+
"mkdocstrings-python == 2.0.11",
|
|
75
|
+
"frequenz-repo-config[lib] == 0.19.0",
|
|
72
76
|
]
|
|
73
77
|
dev-mypy = [
|
|
74
|
-
"mypy ==
|
|
78
|
+
"mypy == 2.4.1",
|
|
75
79
|
# This dependency introduces breaking changes in patch releases
|
|
76
80
|
"grpc-stubs == 1.53.0.6",
|
|
77
|
-
"types-Markdown == 3.
|
|
81
|
+
"types-Markdown == 3.11.3.20261108",
|
|
78
82
|
# For checking the noxfile, docs/ script, and tests
|
|
79
83
|
"frequenz-dispatch[dev-mkdocs,dev-noxfile,dev-pytest]",
|
|
80
84
|
]
|
|
81
85
|
dev-noxfile = [
|
|
82
|
-
"uv == 0.
|
|
83
|
-
"nox ==
|
|
84
|
-
"frequenz-repo-config[lib] == 0.
|
|
86
|
+
"uv == 0.13.8",
|
|
87
|
+
"nox == 2026.10.20",
|
|
88
|
+
"frequenz-repo-config[lib] == 0.19.0",
|
|
85
89
|
]
|
|
86
90
|
dev-pylint = [
|
|
87
|
-
"pylint == 4.
|
|
91
|
+
"pylint == 4.1.3",
|
|
88
92
|
# For checking the noxfile, docs/ script, and tests
|
|
89
93
|
"frequenz-dispatch[dev-mkdocs,dev-noxfile,dev-pytest]",
|
|
90
94
|
]
|
|
91
95
|
dev-pytest = [
|
|
92
|
-
"pytest == 9.0
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"pytest-
|
|
96
|
-
"
|
|
97
|
-
"
|
|
96
|
+
"pytest == 9.2.0",
|
|
97
|
+
"pylint == 4.1.3", # We need this to check for the examples
|
|
98
|
+
"frequenz-repo-config[extra-lint-examples] == 0.19.0",
|
|
99
|
+
"pytest-mock == 3.17.0",
|
|
100
|
+
"pytest-asyncio == 1.5.0",
|
|
101
|
+
"async-solipsism == 0.10",
|
|
102
|
+
"time-machine == 3.6.0",
|
|
98
103
|
]
|
|
99
104
|
dev = [
|
|
100
105
|
"frequenz-dispatch[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",
|
|
@@ -133,6 +138,9 @@ check-yield-types = false
|
|
|
133
138
|
arg-type-hints-in-docstring = false
|
|
134
139
|
arg-type-hints-in-signature = true
|
|
135
140
|
allow-init-docstring = true
|
|
141
|
+
check-class-attributes = true
|
|
142
|
+
check-style-mismatch = true
|
|
143
|
+
require-inline-class-var-docs = true
|
|
136
144
|
|
|
137
145
|
[tool.pylint.similarities]
|
|
138
146
|
ignore-comments = ['yes']
|
|
@@ -169,13 +177,15 @@ disable = [
|
|
|
169
177
|
# coming for external dependencies that are hard to address here, once this is
|
|
170
178
|
# fixed, we can add the following options:
|
|
171
179
|
# -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning
|
|
172
|
-
addopts = "-W=all
|
|
180
|
+
addopts = "-W=all"
|
|
173
181
|
testpaths = ["tests", "src"]
|
|
182
|
+
asyncio_debug = true
|
|
174
183
|
asyncio_mode = "auto"
|
|
175
184
|
asyncio_default_fixture_loop_scope = "function"
|
|
176
185
|
required_plugins = ["pytest-asyncio", "pytest-mock"]
|
|
177
186
|
|
|
178
187
|
[tool.mypy]
|
|
188
|
+
enable_error_code = ["exhaustive-match"]
|
|
179
189
|
explicit_package_bases = true
|
|
180
190
|
namespace_packages = true
|
|
181
191
|
# This option disables mypy cache, and it is sometimes useful to enable it if
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# License: MIT
|
|
2
|
+
# Copyright © 2024 Frequenz Energy-as-a-Service GmbH
|
|
3
|
+
|
|
4
|
+
"""A high-level interface for the dispatch API.
|
|
5
|
+
|
|
6
|
+
A small overview of the most important classes in this module:
|
|
7
|
+
|
|
8
|
+
* [`Dispatcher`][frequenz.dispatch.Dispatcher]: The entry point for the API.
|
|
9
|
+
* [`Dispatch`][frequenz.dispatch.Dispatch]: A dispatch type with lots of useful extra
|
|
10
|
+
functionality.
|
|
11
|
+
* [`ActorDispatcher`][frequenz.dispatch.ActorDispatcher]: A service to manage other
|
|
12
|
+
actors based on incoming dispatches.
|
|
13
|
+
* [`Created`][frequenz.dispatch.Created],
|
|
14
|
+
[`Updated`][frequenz.dispatch.Updated],
|
|
15
|
+
[`Deleted`][frequenz.dispatch.Deleted]: Dispatch event types.
|
|
16
|
+
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from ._actor_dispatcher import ActorDispatcher, ContinuationCapable, DispatchInfo
|
|
20
|
+
from ._bg_service import MergeStrategy
|
|
21
|
+
from ._continuation import is_exact_continuation
|
|
22
|
+
from ._dispatch import Dispatch
|
|
23
|
+
from ._dispatcher import Dispatcher
|
|
24
|
+
from ._event import Created, Deleted, DispatchEvent, Updated
|
|
25
|
+
from ._merge_strategies import MergeByType, MergeByTypeTarget
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"Created",
|
|
29
|
+
"Deleted",
|
|
30
|
+
"DispatchEvent",
|
|
31
|
+
"Dispatcher",
|
|
32
|
+
"Updated",
|
|
33
|
+
"Dispatch",
|
|
34
|
+
"ActorDispatcher",
|
|
35
|
+
"ContinuationCapable",
|
|
36
|
+
"DispatchInfo",
|
|
37
|
+
"MergeStrategy",
|
|
38
|
+
"MergeByType",
|
|
39
|
+
"MergeByTypeTarget",
|
|
40
|
+
"is_exact_continuation",
|
|
41
|
+
]
|