frequenz-client-microgrid 0.18.2__tar.gz → 0.18.4__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_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/PKG-INFO +29 -29
- frequenz_client_microgrid-0.18.4/RELEASE_NOTES.md +8 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/pyproject.toml +30 -29
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/_lifetime.py +0 -1
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/_location.py +0 -1
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/_microgrid_info_proto.py +0 -1
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/__init__.py +2 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_category.py +3 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_component.py +40 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_component_proto.py +63 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_data_samples_proto.py +0 -1
- frequenz_client_microgrid-0.18.4/src/frequenz/client/microgrid/component/_steam_boiler.py +18 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_types.py +2 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/metrics/_bounds_proto.py +0 -1
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/metrics/_metric.py +0 -1
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz_client_microgrid.egg-info/PKG-INFO +29 -29
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz_client_microgrid.egg-info/SOURCES.txt +3 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz_client_microgrid.egg-info/requires.txt +27 -26
- frequenz_client_microgrid-0.18.4/src/frequenz_client_microgrid.egg-info/scm_file_list.json +180 -0
- frequenz_client_microgrid-0.18.4/src/frequenz_client_microgrid.egg-info/scm_version.json +8 -0
- frequenz_client_microgrid-0.18.2/RELEASE_NOTES.md +0 -177
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/LICENSE +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/MANIFEST.in +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/README.md +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/setup.cfg +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/__init__.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/_client.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/_delivery_area.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/_delivery_area_proto.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/_exception.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/_lifetime_proto.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/_location_proto.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/_microgrid_info.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/_util.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_battery.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_chp.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_connection.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_connection_proto.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_converter.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_crypto_miner.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_data_samples.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_electrolyzer.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_ev_charger.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_grid_connection_point.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_hvac.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_inverter.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_meter.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_precharger.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_problematic.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_relay.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_state_sample.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_state_sample_proto.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_voltage_transformer.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/component/_wind_turbine.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/conftest.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/metrics/__init__.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/metrics/_bounds.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/metrics/_sample.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/metrics/_sample_proto.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/py.typed +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/sensor/__init__.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/sensor/_sensor.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/sensor/_sensor_proto.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/sensor/_state.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/sensor/_state_proto.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/sensor/_telemetry.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz/client/microgrid/sensor/_telemetry_proto.py +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz_client_microgrid.egg-info/dependency_links.txt +0 -0
- {frequenz_client_microgrid-0.18.2 → frequenz_client_microgrid-0.18.4}/src/frequenz_client_microgrid.egg-info/top_level.txt +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: frequenz-client-microgrid
|
|
3
|
-
Version: 0.18.
|
|
3
|
+
Version: 0.18.4
|
|
4
4
|
Summary: Microgrid API client for Python
|
|
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-client-microgrid-python/
|
|
8
8
|
Project-URL: Changelog, https://github.com/frequenz-floss/frequenz-client-microgrid-python/releases
|
|
9
9
|
Project-URL: Issues, https://github.com/frequenz-floss/frequenz-client-microgrid-python/issues
|
|
@@ -12,7 +12,6 @@ Project-URL: Support, https://github.com/frequenz-floss/frequenz-client-microgri
|
|
|
12
12
|
Keywords: api,client,frequenz,grpc,lib,library,microgrid,python
|
|
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 :: Internet
|
|
@@ -21,53 +20,54 @@ Classifier: Typing :: Typed
|
|
|
21
20
|
Requires-Python: <4,>=3.11
|
|
22
21
|
Description-Content-Type: text/markdown
|
|
23
22
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: frequenz-api-common<1.0.0,>=0.8.
|
|
25
|
-
Requires-Dist: frequenz-api-microgrid<
|
|
23
|
+
Requires-Dist: frequenz-api-common<1.0.0,>=0.8.4
|
|
24
|
+
Requires-Dist: frequenz-api-microgrid<1,>=0.18.0
|
|
26
25
|
Requires-Dist: frequenz-channels<2.0.0,>=1.6.1
|
|
27
26
|
Requires-Dist: frequenz-client-base<0.12.0,>=0.10.0
|
|
28
27
|
Requires-Dist: frequenz-client-common<0.4.0,>=0.3.6
|
|
29
28
|
Requires-Dist: frequenz-core<2.0.0,>=1.3.0
|
|
30
|
-
Requires-Dist: grpcio<2,>=1.
|
|
31
|
-
Requires-Dist: protobuf<
|
|
29
|
+
Requires-Dist: grpcio<2,>=1.80.0
|
|
30
|
+
Requires-Dist: protobuf<8,>=6.33.6
|
|
32
31
|
Requires-Dist: typing-extensions<5,>=4.13.0
|
|
33
32
|
Provides-Extra: dev-flake8
|
|
34
33
|
Requires-Dist: flake8==7.3.0; extra == "dev-flake8"
|
|
34
|
+
Requires-Dist: flake8-datetimez==20.10.0; extra == "dev-flake8"
|
|
35
35
|
Requires-Dist: flake8-docstrings==1.7.0; extra == "dev-flake8"
|
|
36
36
|
Requires-Dist: flake8-pyproject==1.2.4; extra == "dev-flake8"
|
|
37
|
-
Requires-Dist: pydoclint==0.
|
|
37
|
+
Requires-Dist: pydoclint==0.9.0; extra == "dev-flake8"
|
|
38
38
|
Requires-Dist: pydocstyle==6.3.0; extra == "dev-flake8"
|
|
39
39
|
Provides-Extra: dev-formatting
|
|
40
|
-
Requires-Dist: black==
|
|
41
|
-
Requires-Dist: isort==
|
|
40
|
+
Requires-Dist: black==26.5.1; extra == "dev-formatting"
|
|
41
|
+
Requires-Dist: isort==8.0.1; extra == "dev-formatting"
|
|
42
42
|
Provides-Extra: dev-mkdocs
|
|
43
|
-
Requires-Dist: black==
|
|
44
|
-
Requires-Dist: Markdown==3.10; extra == "dev-mkdocs"
|
|
45
|
-
Requires-Dist: mike==2.
|
|
46
|
-
Requires-Dist: mkdocs-gen-files==0.6.
|
|
47
|
-
Requires-Dist: mkdocs-literate-nav==0.6.
|
|
43
|
+
Requires-Dist: black==26.5.1; extra == "dev-mkdocs"
|
|
44
|
+
Requires-Dist: Markdown==3.10.2; extra == "dev-mkdocs"
|
|
45
|
+
Requires-Dist: mike==2.2.0; extra == "dev-mkdocs"
|
|
46
|
+
Requires-Dist: mkdocs-gen-files==0.6.1; extra == "dev-mkdocs"
|
|
47
|
+
Requires-Dist: mkdocs-literate-nav==0.6.3; extra == "dev-mkdocs"
|
|
48
48
|
Requires-Dist: mkdocs-macros-plugin==1.5.0; extra == "dev-mkdocs"
|
|
49
|
-
Requires-Dist: mkdocs-material==9.7.
|
|
50
|
-
Requires-Dist: mkdocstrings[python]==1.0.
|
|
51
|
-
Requires-Dist: mkdocstrings-python==
|
|
52
|
-
Requires-Dist: frequenz-repo-config[lib]==0.
|
|
49
|
+
Requires-Dist: mkdocs-material==9.7.6; extra == "dev-mkdocs"
|
|
50
|
+
Requires-Dist: mkdocstrings[python]==1.0.4; extra == "dev-mkdocs"
|
|
51
|
+
Requires-Dist: mkdocstrings-python==2.0.5; extra == "dev-mkdocs"
|
|
52
|
+
Requires-Dist: frequenz-repo-config[lib]==0.18.0; extra == "dev-mkdocs"
|
|
53
53
|
Provides-Extra: dev-mypy
|
|
54
|
-
Requires-Dist: mypy==1.
|
|
54
|
+
Requires-Dist: mypy==2.1.0; extra == "dev-mypy"
|
|
55
55
|
Requires-Dist: grpc-stubs==1.53.0.6; extra == "dev-mypy"
|
|
56
|
-
Requires-Dist: types-Markdown==3.10.
|
|
57
|
-
Requires-Dist: types-protobuf==
|
|
56
|
+
Requires-Dist: types-Markdown==3.10.2.20260518; extra == "dev-mypy"
|
|
57
|
+
Requires-Dist: types-protobuf==7.34.1.20260518; extra == "dev-mypy"
|
|
58
58
|
Requires-Dist: frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-mypy"
|
|
59
59
|
Provides-Extra: dev-noxfile
|
|
60
|
-
Requires-Dist: nox==
|
|
61
|
-
Requires-Dist: frequenz-repo-config[lib]==0.
|
|
60
|
+
Requires-Dist: nox==2026.4.10; extra == "dev-noxfile"
|
|
61
|
+
Requires-Dist: frequenz-repo-config[lib]==0.18.0; extra == "dev-noxfile"
|
|
62
62
|
Provides-Extra: dev-pylint
|
|
63
|
-
Requires-Dist: pylint==4.0.
|
|
63
|
+
Requires-Dist: pylint==4.0.6; extra == "dev-pylint"
|
|
64
64
|
Requires-Dist: frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-pylint"
|
|
65
65
|
Provides-Extra: dev-pytest
|
|
66
|
-
Requires-Dist: pytest==9.
|
|
67
|
-
Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.
|
|
66
|
+
Requires-Dist: pytest==9.1.1; extra == "dev-pytest"
|
|
67
|
+
Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.18.0; extra == "dev-pytest"
|
|
68
68
|
Requires-Dist: pytest-mock==3.15.1; extra == "dev-pytest"
|
|
69
|
-
Requires-Dist: pytest-asyncio==1.
|
|
70
|
-
Requires-Dist: async-solipsism==0.
|
|
69
|
+
Requires-Dist: pytest-asyncio==1.4.0; extra == "dev-pytest"
|
|
70
|
+
Requires-Dist: async-solipsism==0.9; extra == "dev-pytest"
|
|
71
71
|
Provides-Extra: dev
|
|
72
72
|
Requires-Dist: frequenz-client-microgrid[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]; extra == "dev"
|
|
73
73
|
Dynamic: license-file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Frequenz Microgrid API Client Release Notes
|
|
2
|
+
|
|
3
|
+
## New Features
|
|
4
|
+
|
|
5
|
+
* `Component` classes now expose two new functions to check the operational mode:
|
|
6
|
+
|
|
7
|
+
- `provides_telemetry()`: whether the component provides telemetry data
|
|
8
|
+
- `accepts_control()`: whether the component accepts control commands
|
|
@@ -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 == 82.0.1",
|
|
7
|
+
"setuptools_scm[toml] == 10.2.0",
|
|
8
|
+
"frequenz-repo-config[lib] == 0.18.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-client-microgrid"
|
|
14
14
|
description = "Microgrid API client for Python"
|
|
15
15
|
readme = "README.md"
|
|
16
|
-
license =
|
|
16
|
+
license = "MIT"
|
|
17
|
+
license-files = ["LICENSE"]
|
|
17
18
|
keywords = [
|
|
18
19
|
"api",
|
|
19
20
|
"client",
|
|
@@ -27,7 +28,6 @@ keywords = [
|
|
|
27
28
|
classifiers = [
|
|
28
29
|
"Development Status :: 3 - Alpha",
|
|
29
30
|
"Intended Audience :: Developers",
|
|
30
|
-
"License :: OSI Approved :: MIT License",
|
|
31
31
|
"Programming Language :: Python :: 3",
|
|
32
32
|
"Programming Language :: Python :: 3 :: Only",
|
|
33
33
|
"Topic :: Internet",
|
|
@@ -36,14 +36,14 @@ classifiers = [
|
|
|
36
36
|
]
|
|
37
37
|
requires-python = ">= 3.11, < 4"
|
|
38
38
|
dependencies = [
|
|
39
|
-
"frequenz-api-common >= 0.8.
|
|
40
|
-
"frequenz-api-microgrid >= 0.18.0, <
|
|
39
|
+
"frequenz-api-common >= 0.8.4, < 1.0.0",
|
|
40
|
+
"frequenz-api-microgrid >= 0.18.0, < 1",
|
|
41
41
|
"frequenz-channels >= 1.6.1, < 2.0.0",
|
|
42
42
|
"frequenz-client-base >= 0.10.0, < 0.12.0",
|
|
43
43
|
"frequenz-client-common >= 0.3.6, < 0.4.0",
|
|
44
44
|
"frequenz-core >= 1.3.0, < 2.0.0",
|
|
45
|
-
"grpcio >= 1.
|
|
46
|
-
"protobuf >= 6.
|
|
45
|
+
"grpcio >= 1.80.0, < 2",
|
|
46
|
+
"protobuf >= 6.33.6, < 8",
|
|
47
47
|
"typing-extensions >= 4.13.0, < 5",
|
|
48
48
|
]
|
|
49
49
|
dynamic = ["version"]
|
|
@@ -55,44 +55,45 @@ email = "floss@frequenz.com"
|
|
|
55
55
|
[project.optional-dependencies]
|
|
56
56
|
dev-flake8 = [
|
|
57
57
|
"flake8 == 7.3.0",
|
|
58
|
+
"flake8-datetimez == 20.10.0",
|
|
58
59
|
"flake8-docstrings == 1.7.0",
|
|
59
60
|
"flake8-pyproject == 1.2.4", # For reading the flake8 config from pyproject.toml
|
|
60
|
-
"pydoclint == 0.
|
|
61
|
+
"pydoclint == 0.9.0",
|
|
61
62
|
"pydocstyle == 6.3.0",
|
|
62
63
|
]
|
|
63
|
-
dev-formatting = ["black ==
|
|
64
|
+
dev-formatting = ["black == 26.5.1", "isort == 8.0.1"]
|
|
64
65
|
dev-mkdocs = [
|
|
65
|
-
"black ==
|
|
66
|
-
"Markdown==3.10",
|
|
67
|
-
"mike == 2.
|
|
68
|
-
"mkdocs-gen-files == 0.6.
|
|
69
|
-
"mkdocs-literate-nav == 0.6.
|
|
66
|
+
"black == 26.5.1",
|
|
67
|
+
"Markdown==3.10.2",
|
|
68
|
+
"mike == 2.2.0",
|
|
69
|
+
"mkdocs-gen-files == 0.6.1",
|
|
70
|
+
"mkdocs-literate-nav == 0.6.3",
|
|
70
71
|
"mkdocs-macros-plugin == 1.5.0",
|
|
71
|
-
"mkdocs-material == 9.7.
|
|
72
|
-
"mkdocstrings[python] == 1.0.
|
|
73
|
-
"mkdocstrings-python ==
|
|
74
|
-
"frequenz-repo-config[lib] == 0.
|
|
72
|
+
"mkdocs-material == 9.7.6",
|
|
73
|
+
"mkdocstrings[python] == 1.0.4",
|
|
74
|
+
"mkdocstrings-python == 2.0.5",
|
|
75
|
+
"frequenz-repo-config[lib] == 0.18.0",
|
|
75
76
|
]
|
|
76
77
|
dev-mypy = [
|
|
77
|
-
"mypy == 1.
|
|
78
|
+
"mypy == 2.1.0",
|
|
78
79
|
"grpc-stubs == 1.53.0.6",
|
|
79
|
-
"types-Markdown == 3.10.
|
|
80
|
-
"types-protobuf ==
|
|
80
|
+
"types-Markdown == 3.10.2.20260518",
|
|
81
|
+
"types-protobuf == 7.34.1.20260518",
|
|
81
82
|
# For checking the noxfile, docs/ script, and tests
|
|
82
83
|
"frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]",
|
|
83
84
|
]
|
|
84
|
-
dev-noxfile = ["nox ==
|
|
85
|
+
dev-noxfile = ["nox == 2026.4.10", "frequenz-repo-config[lib] == 0.18.0"]
|
|
85
86
|
dev-pylint = [
|
|
86
|
-
"pylint == 4.0.
|
|
87
|
+
"pylint == 4.0.6",
|
|
87
88
|
# For checking the noxfile, docs/ script, and tests
|
|
88
89
|
"frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]",
|
|
89
90
|
]
|
|
90
91
|
dev-pytest = [
|
|
91
|
-
"pytest == 9.
|
|
92
|
-
"frequenz-repo-config[extra-lint-examples] == 0.
|
|
92
|
+
"pytest == 9.1.1",
|
|
93
|
+
"frequenz-repo-config[extra-lint-examples] == 0.18.0",
|
|
93
94
|
"pytest-mock == 3.15.1",
|
|
94
|
-
"pytest-asyncio == 1.
|
|
95
|
-
"async-solipsism == 0.
|
|
95
|
+
"pytest-asyncio == 1.4.0",
|
|
96
|
+
"async-solipsism == 0.9",
|
|
96
97
|
]
|
|
97
98
|
dev = [
|
|
98
99
|
"frequenz-client-microgrid[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",
|
|
@@ -51,6 +51,7 @@ from ._problematic import (
|
|
|
51
51
|
)
|
|
52
52
|
from ._relay import Relay
|
|
53
53
|
from ._state_sample import ComponentErrorCode, ComponentStateCode, ComponentStateSample
|
|
54
|
+
from ._steam_boiler import SteamBoiler
|
|
54
55
|
from ._types import (
|
|
55
56
|
ComponentTypes,
|
|
56
57
|
ProblematicComponentTypes,
|
|
@@ -97,6 +98,7 @@ __all__ = [
|
|
|
97
98
|
"ProblematicComponentTypes",
|
|
98
99
|
"Relay",
|
|
99
100
|
"SolarInverter",
|
|
101
|
+
"SteamBoiler",
|
|
100
102
|
"UnrecognizedBattery",
|
|
101
103
|
"UnrecognizedComponent",
|
|
102
104
|
"UnrecognizedComponentTypes",
|
|
@@ -107,3 +107,6 @@ class ComponentCategory(enum.Enum):
|
|
|
107
107
|
|
|
108
108
|
WIND_TURBINE = electrical_components_pb2.ELECTRICAL_COMPONENT_CATEGORY_WIND_TURBINE
|
|
109
109
|
"""A wind turbine."""
|
|
110
|
+
|
|
111
|
+
STEAM_BOILER = electrical_components_pb2.ELECTRICAL_COMPONENT_CATEGORY_STEAM_BOILER
|
|
112
|
+
"""A steam boiler."""
|
|
@@ -52,6 +52,12 @@ class Component: # pylint: disable=too-many-instance-attributes
|
|
|
52
52
|
operational_lifetime: Lifetime = dataclasses.field(default_factory=Lifetime)
|
|
53
53
|
"""The operational lifetime of this component."""
|
|
54
54
|
|
|
55
|
+
_provides_telemetry: bool | None = None
|
|
56
|
+
"""Whether this component provides telemetry data, or `None` if unspecified."""
|
|
57
|
+
|
|
58
|
+
_accepts_control: bool | None = None
|
|
59
|
+
"""Whether this component accepts control commands, or `None` if unspecified."""
|
|
60
|
+
|
|
55
61
|
rated_bounds: Mapping[Metric | int, Bounds] = dataclasses.field(
|
|
56
62
|
default_factory=dict,
|
|
57
63
|
# dict is not hashable, so we don't use this field to calculate the hash. This
|
|
@@ -85,6 +91,40 @@ class Component: # pylint: disable=too-many-instance-attributes
|
|
|
85
91
|
raise TypeError(f"Cannot instantiate {cls.__name__} directly")
|
|
86
92
|
return super().__new__(cls)
|
|
87
93
|
|
|
94
|
+
def provides_telemetry(self) -> bool:
|
|
95
|
+
"""Check whether this component provides telemetry data.
|
|
96
|
+
|
|
97
|
+
Returns:
|
|
98
|
+
Whether this component provides telemetry data.
|
|
99
|
+
|
|
100
|
+
Raises:
|
|
101
|
+
ValueError: If the operational mode is unspecified, so whether telemetry
|
|
102
|
+
is provided is unknown.
|
|
103
|
+
"""
|
|
104
|
+
if self._provides_telemetry is None:
|
|
105
|
+
raise ValueError(
|
|
106
|
+
f"operational mode of {self} is unspecified; "
|
|
107
|
+
"telemetry availability is unknown"
|
|
108
|
+
)
|
|
109
|
+
return self._provides_telemetry
|
|
110
|
+
|
|
111
|
+
def accepts_control(self) -> bool:
|
|
112
|
+
"""Check whether this component accepts control commands.
|
|
113
|
+
|
|
114
|
+
Returns:
|
|
115
|
+
Whether this component accepts control commands.
|
|
116
|
+
|
|
117
|
+
Raises:
|
|
118
|
+
ValueError: If the operational mode is unspecified, so whether control
|
|
119
|
+
commands are accepted is unknown.
|
|
120
|
+
"""
|
|
121
|
+
if self._accepts_control is None:
|
|
122
|
+
raise ValueError(
|
|
123
|
+
f"operational mode of {self} is unspecified; "
|
|
124
|
+
"control availability is unknown"
|
|
125
|
+
)
|
|
126
|
+
return self._accepts_control
|
|
127
|
+
|
|
88
128
|
def is_operational_at(self, timestamp: datetime) -> bool:
|
|
89
129
|
"""Check whether this component is operational at a specific timestamp.
|
|
90
130
|
|
|
@@ -58,6 +58,7 @@ from ._problematic import (
|
|
|
58
58
|
UnspecifiedComponent,
|
|
59
59
|
)
|
|
60
60
|
from ._relay import Relay
|
|
61
|
+
from ._steam_boiler import SteamBoiler
|
|
61
62
|
from ._types import ComponentTypes
|
|
62
63
|
from ._voltage_transformer import VoltageTransformer
|
|
63
64
|
from ._wind_turbine import WindTurbine
|
|
@@ -70,6 +71,40 @@ _logger = logging.getLogger(__name__)
|
|
|
70
71
|
# pylint: disable=too-many-arguments
|
|
71
72
|
|
|
72
73
|
|
|
74
|
+
_BOOLS_BY_OPERATIONAL_MODE: dict[int, tuple[bool | None, bool | None]] = {
|
|
75
|
+
electrical_components_pb2.ELECTRICAL_COMPONENT_OPERATIONAL_MODE_INACTIVE: (
|
|
76
|
+
False,
|
|
77
|
+
False,
|
|
78
|
+
),
|
|
79
|
+
electrical_components_pb2.ELECTRICAL_COMPONENT_OPERATIONAL_MODE_TELEMETRY_ONLY: (
|
|
80
|
+
True,
|
|
81
|
+
False,
|
|
82
|
+
),
|
|
83
|
+
electrical_components_pb2.ELECTRICAL_COMPONENT_OPERATIONAL_MODE_CONTROL_ONLY: (
|
|
84
|
+
False,
|
|
85
|
+
True,
|
|
86
|
+
),
|
|
87
|
+
electrical_components_pb2.ELECTRICAL_COMPONENT_OPERATIONAL_MODE_CONTROL_AND_TELEMETRY: (
|
|
88
|
+
True,
|
|
89
|
+
True,
|
|
90
|
+
),
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def _operational_mode_to_bools(value: int) -> tuple[bool | None, bool | None]:
|
|
95
|
+
"""Map a protobuf operational mode to telemetry/control booleans.
|
|
96
|
+
|
|
97
|
+
Args:
|
|
98
|
+
value: A protobuf operational-mode enum value (an
|
|
99
|
+
`ELECTRICAL_COMPONENT_OPERATIONAL_MODE_*` constant).
|
|
100
|
+
|
|
101
|
+
Returns:
|
|
102
|
+
A `(provides_telemetry, accepts_control)` tuple, with both elements `None`
|
|
103
|
+
when the operational mode is unspecified or unrecognized.
|
|
104
|
+
"""
|
|
105
|
+
return _BOOLS_BY_OPERATIONAL_MODE.get(value, (None, None))
|
|
106
|
+
|
|
107
|
+
|
|
73
108
|
def component_from_proto(
|
|
74
109
|
message: electrical_components_pb2.ElectricalComponent,
|
|
75
110
|
) -> ComponentTypes:
|
|
@@ -116,6 +151,8 @@ class ComponentBaseData(NamedTuple):
|
|
|
116
151
|
lifetime: Lifetime
|
|
117
152
|
rated_bounds: dict[Metric | int, Bounds]
|
|
118
153
|
category_specific_info: dict[str, Any]
|
|
154
|
+
provides_telemetry: bool | None
|
|
155
|
+
accepts_control: bool | None
|
|
119
156
|
category_mismatched: bool = False
|
|
120
157
|
|
|
121
158
|
|
|
@@ -196,6 +233,7 @@ def component_base_from_proto_with_issues(
|
|
|
196
233
|
lifetime,
|
|
197
234
|
rated_bounds,
|
|
198
235
|
category_specific_info,
|
|
236
|
+
*_operational_mode_to_bools(message.operational_mode),
|
|
199
237
|
category_mismatched,
|
|
200
238
|
)
|
|
201
239
|
|
|
@@ -230,6 +268,8 @@ def component_from_proto_with_issues(
|
|
|
230
268
|
model_name=base_data.model_name,
|
|
231
269
|
category=base_data.category,
|
|
232
270
|
operational_lifetime=base_data.lifetime,
|
|
271
|
+
_provides_telemetry=base_data.provides_telemetry,
|
|
272
|
+
_accepts_control=base_data.accepts_control,
|
|
233
273
|
category_specific_metadata=base_data.category_specific_info,
|
|
234
274
|
rated_bounds=base_data.rated_bounds,
|
|
235
275
|
)
|
|
@@ -244,6 +284,8 @@ def component_from_proto_with_issues(
|
|
|
244
284
|
model_name=base_data.model_name,
|
|
245
285
|
category=base_data.category,
|
|
246
286
|
operational_lifetime=base_data.lifetime,
|
|
287
|
+
_provides_telemetry=base_data.provides_telemetry,
|
|
288
|
+
_accepts_control=base_data.accepts_control,
|
|
247
289
|
rated_bounds=base_data.rated_bounds,
|
|
248
290
|
)
|
|
249
291
|
case (
|
|
@@ -256,6 +298,7 @@ def component_from_proto_with_issues(
|
|
|
256
298
|
| ComponentCategory.METER
|
|
257
299
|
| ComponentCategory.PRECHARGER
|
|
258
300
|
| ComponentCategory.RELAY
|
|
301
|
+
| ComponentCategory.STEAM_BOILER
|
|
259
302
|
| ComponentCategory.WIND_TURBINE
|
|
260
303
|
):
|
|
261
304
|
return _trivial_category_to_class(base_data.category)(
|
|
@@ -265,6 +308,8 @@ def component_from_proto_with_issues(
|
|
|
265
308
|
manufacturer=base_data.manufacturer,
|
|
266
309
|
model_name=base_data.model_name,
|
|
267
310
|
operational_lifetime=base_data.lifetime,
|
|
311
|
+
_provides_telemetry=base_data.provides_telemetry,
|
|
312
|
+
_accepts_control=base_data.accepts_control,
|
|
268
313
|
rated_bounds=base_data.rated_bounds,
|
|
269
314
|
)
|
|
270
315
|
case ComponentCategory.BATTERY:
|
|
@@ -289,6 +334,8 @@ def component_from_proto_with_issues(
|
|
|
289
334
|
manufacturer=base_data.manufacturer,
|
|
290
335
|
model_name=base_data.model_name,
|
|
291
336
|
operational_lifetime=base_data.lifetime,
|
|
337
|
+
_provides_telemetry=base_data.provides_telemetry,
|
|
338
|
+
_accepts_control=base_data.accepts_control,
|
|
292
339
|
rated_bounds=base_data.rated_bounds,
|
|
293
340
|
)
|
|
294
341
|
case int():
|
|
@@ -300,6 +347,8 @@ def component_from_proto_with_issues(
|
|
|
300
347
|
manufacturer=base_data.manufacturer,
|
|
301
348
|
model_name=base_data.model_name,
|
|
302
349
|
operational_lifetime=base_data.lifetime,
|
|
350
|
+
_provides_telemetry=base_data.provides_telemetry,
|
|
351
|
+
_accepts_control=base_data.accepts_control,
|
|
303
352
|
rated_bounds=base_data.rated_bounds,
|
|
304
353
|
type=battery_type,
|
|
305
354
|
)
|
|
@@ -336,6 +385,8 @@ def component_from_proto_with_issues(
|
|
|
336
385
|
manufacturer=base_data.manufacturer,
|
|
337
386
|
model_name=base_data.model_name,
|
|
338
387
|
operational_lifetime=base_data.lifetime,
|
|
388
|
+
_provides_telemetry=base_data.provides_telemetry,
|
|
389
|
+
_accepts_control=base_data.accepts_control,
|
|
339
390
|
rated_bounds=base_data.rated_bounds,
|
|
340
391
|
)
|
|
341
392
|
case int():
|
|
@@ -349,6 +400,8 @@ def component_from_proto_with_issues(
|
|
|
349
400
|
manufacturer=base_data.manufacturer,
|
|
350
401
|
model_name=base_data.model_name,
|
|
351
402
|
operational_lifetime=base_data.lifetime,
|
|
403
|
+
_provides_telemetry=base_data.provides_telemetry,
|
|
404
|
+
_accepts_control=base_data.accepts_control,
|
|
352
405
|
rated_bounds=base_data.rated_bounds,
|
|
353
406
|
type=ev_charger_type,
|
|
354
407
|
)
|
|
@@ -366,6 +419,8 @@ def component_from_proto_with_issues(
|
|
|
366
419
|
manufacturer=base_data.manufacturer,
|
|
367
420
|
model_name=base_data.model_name,
|
|
368
421
|
operational_lifetime=base_data.lifetime,
|
|
422
|
+
_provides_telemetry=base_data.provides_telemetry,
|
|
423
|
+
_accepts_control=base_data.accepts_control,
|
|
369
424
|
rated_bounds=base_data.rated_bounds,
|
|
370
425
|
rated_fuse_current=rated_fuse_current,
|
|
371
426
|
)
|
|
@@ -403,6 +458,8 @@ def component_from_proto_with_issues(
|
|
|
403
458
|
manufacturer=base_data.manufacturer,
|
|
404
459
|
model_name=base_data.model_name,
|
|
405
460
|
operational_lifetime=base_data.lifetime,
|
|
461
|
+
_provides_telemetry=base_data.provides_telemetry,
|
|
462
|
+
_accepts_control=base_data.accepts_control,
|
|
406
463
|
rated_bounds=base_data.rated_bounds,
|
|
407
464
|
)
|
|
408
465
|
case int():
|
|
@@ -416,6 +473,8 @@ def component_from_proto_with_issues(
|
|
|
416
473
|
manufacturer=base_data.manufacturer,
|
|
417
474
|
model_name=base_data.model_name,
|
|
418
475
|
operational_lifetime=base_data.lifetime,
|
|
476
|
+
_provides_telemetry=base_data.provides_telemetry,
|
|
477
|
+
_accepts_control=base_data.accepts_control,
|
|
419
478
|
rated_bounds=base_data.rated_bounds,
|
|
420
479
|
type=inverter_type,
|
|
421
480
|
)
|
|
@@ -431,6 +490,8 @@ def component_from_proto_with_issues(
|
|
|
431
490
|
manufacturer=base_data.manufacturer,
|
|
432
491
|
model_name=base_data.model_name,
|
|
433
492
|
operational_lifetime=base_data.lifetime,
|
|
493
|
+
_provides_telemetry=base_data.provides_telemetry,
|
|
494
|
+
_accepts_control=base_data.accepts_control,
|
|
434
495
|
rated_bounds=base_data.rated_bounds,
|
|
435
496
|
primary_voltage=message.category_specific_info.power_transformer.primary,
|
|
436
497
|
secondary_voltage=message.category_specific_info.power_transformer.secondary,
|
|
@@ -451,6 +512,7 @@ def _trivial_category_to_class(
|
|
|
451
512
|
| Meter
|
|
452
513
|
| Precharger
|
|
453
514
|
| Relay
|
|
515
|
+
| SteamBoiler
|
|
454
516
|
| WindTurbine
|
|
455
517
|
]:
|
|
456
518
|
"""Return the class corresponding to a trivial component category."""
|
|
@@ -464,6 +526,7 @@ def _trivial_category_to_class(
|
|
|
464
526
|
ComponentCategory.METER: Meter,
|
|
465
527
|
ComponentCategory.PRECHARGER: Precharger,
|
|
466
528
|
ComponentCategory.RELAY: Relay,
|
|
529
|
+
ComponentCategory.STEAM_BOILER: SteamBoiler,
|
|
467
530
|
ComponentCategory.WIND_TURBINE: WindTurbine,
|
|
468
531
|
}[category]
|
|
469
532
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# License: MIT
|
|
2
|
+
# Copyright © 2026 Frequenz Energy-as-a-Service GmbH
|
|
3
|
+
|
|
4
|
+
"""Steam boiler component."""
|
|
5
|
+
|
|
6
|
+
import dataclasses
|
|
7
|
+
from typing import Literal
|
|
8
|
+
|
|
9
|
+
from ._category import ComponentCategory
|
|
10
|
+
from ._component import Component
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@dataclasses.dataclass(frozen=True, kw_only=True)
|
|
14
|
+
class SteamBoiler(Component):
|
|
15
|
+
"""A steam boiler component."""
|
|
16
|
+
|
|
17
|
+
category: Literal[ComponentCategory.STEAM_BOILER] = ComponentCategory.STEAM_BOILER
|
|
18
|
+
"""The category of this component."""
|
|
@@ -22,6 +22,7 @@ from ._problematic import (
|
|
|
22
22
|
UnspecifiedComponent,
|
|
23
23
|
)
|
|
24
24
|
from ._relay import Relay
|
|
25
|
+
from ._steam_boiler import SteamBoiler
|
|
25
26
|
from ._voltage_transformer import VoltageTransformer
|
|
26
27
|
from ._wind_turbine import WindTurbine
|
|
27
28
|
|
|
@@ -59,6 +60,7 @@ ComponentTypes: TypeAlias = (
|
|
|
59
60
|
| Precharger
|
|
60
61
|
| ProblematicComponentTypes
|
|
61
62
|
| Relay
|
|
63
|
+
| SteamBoiler
|
|
62
64
|
| VoltageTransformer
|
|
63
65
|
| WindTurbine
|
|
64
66
|
)
|