frequenz-client-microgrid 0.18.0__tar.gz → 0.18.1__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 (59) hide show
  1. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/PKG-INFO +21 -21
  2. frequenz_client_microgrid-0.18.1/RELEASE_NOTES.md +13 -0
  3. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/pyproject.toml +19 -19
  4. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/__init__.py +2 -0
  5. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_category.py +3 -0
  6. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_component_proto.py +4 -0
  7. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_types.py +2 -0
  8. frequenz_client_microgrid-0.18.1/src/frequenz/client/microgrid/component/_wind_turbine.py +18 -0
  9. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz_client_microgrid.egg-info/PKG-INFO +21 -21
  10. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz_client_microgrid.egg-info/SOURCES.txt +1 -0
  11. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz_client_microgrid.egg-info/requires.txt +20 -20
  12. frequenz_client_microgrid-0.18.0/RELEASE_NOTES.md +0 -215
  13. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/LICENSE +0 -0
  14. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/MANIFEST.in +0 -0
  15. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/README.md +0 -0
  16. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/setup.cfg +0 -0
  17. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/__init__.py +0 -0
  18. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/_client.py +0 -0
  19. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/_delivery_area.py +0 -0
  20. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/_delivery_area_proto.py +0 -0
  21. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/_exception.py +0 -0
  22. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/_lifetime.py +0 -0
  23. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/_lifetime_proto.py +0 -0
  24. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/_location.py +0 -0
  25. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/_location_proto.py +0 -0
  26. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/_microgrid_info.py +0 -0
  27. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/_microgrid_info_proto.py +0 -0
  28. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/_util.py +0 -0
  29. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_battery.py +0 -0
  30. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_chp.py +0 -0
  31. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_component.py +0 -0
  32. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_connection.py +0 -0
  33. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_connection_proto.py +0 -0
  34. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_converter.py +0 -0
  35. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_crypto_miner.py +0 -0
  36. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_data_samples.py +0 -0
  37. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_data_samples_proto.py +0 -0
  38. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_electrolyzer.py +0 -0
  39. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_ev_charger.py +0 -0
  40. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_grid_connection_point.py +0 -0
  41. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_hvac.py +0 -0
  42. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_inverter.py +0 -0
  43. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_meter.py +0 -0
  44. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_precharger.py +0 -0
  45. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_problematic.py +0 -0
  46. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_relay.py +0 -0
  47. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_state_sample.py +0 -0
  48. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_state_sample_proto.py +0 -0
  49. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/component/_voltage_transformer.py +0 -0
  50. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/conftest.py +0 -0
  51. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/metrics/__init__.py +0 -0
  52. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/metrics/_bounds.py +0 -0
  53. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/metrics/_bounds_proto.py +0 -0
  54. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/metrics/_metric.py +0 -0
  55. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/metrics/_sample.py +0 -0
  56. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/metrics/_sample_proto.py +0 -0
  57. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz/client/microgrid/py.typed +0 -0
  58. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz_client_microgrid.egg-info/dependency_links.txt +0 -0
  59. {frequenz_client_microgrid-0.18.0 → frequenz_client_microgrid-0.18.1}/src/frequenz_client_microgrid.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: frequenz-client-microgrid
3
- Version: 0.18.0
3
+ Version: 0.18.1
4
4
  Summary: Microgrid API client for Python
5
5
  Author-email: Frequenz Energy-as-a-Service GmbH <floss@frequenz.com>
6
6
  License: MIT
@@ -33,40 +33,40 @@ Requires-Dist: typing-extensions<5,>=4.13.0
33
33
  Provides-Extra: dev-flake8
34
34
  Requires-Dist: flake8==7.3.0; extra == "dev-flake8"
35
35
  Requires-Dist: flake8-docstrings==1.7.0; extra == "dev-flake8"
36
- Requires-Dist: flake8-pyproject==1.2.3; extra == "dev-flake8"
37
- Requires-Dist: pydoclint==0.7.6; extra == "dev-flake8"
36
+ Requires-Dist: flake8-pyproject==1.2.4; extra == "dev-flake8"
37
+ Requires-Dist: pydoclint==0.8.3; extra == "dev-flake8"
38
38
  Requires-Dist: pydocstyle==6.3.0; extra == "dev-flake8"
39
39
  Provides-Extra: dev-formatting
40
- Requires-Dist: black==25.9.0; extra == "dev-formatting"
41
- Requires-Dist: isort==6.1.0; extra == "dev-formatting"
40
+ Requires-Dist: black==25.12.0; extra == "dev-formatting"
41
+ Requires-Dist: isort==7.0.0; extra == "dev-formatting"
42
42
  Provides-Extra: dev-mkdocs
43
- Requires-Dist: black==25.9.0; extra == "dev-mkdocs"
44
- Requires-Dist: Markdown==3.9; extra == "dev-mkdocs"
43
+ Requires-Dist: black==25.12.0; extra == "dev-mkdocs"
44
+ Requires-Dist: Markdown==3.10; extra == "dev-mkdocs"
45
45
  Requires-Dist: mike==2.1.3; extra == "dev-mkdocs"
46
- Requires-Dist: mkdocs-gen-files==0.5.0; extra == "dev-mkdocs"
46
+ Requires-Dist: mkdocs-gen-files==0.6.0; extra == "dev-mkdocs"
47
47
  Requires-Dist: mkdocs-literate-nav==0.6.2; extra == "dev-mkdocs"
48
- Requires-Dist: mkdocs-macros-plugin==1.4.1; extra == "dev-mkdocs"
49
- Requires-Dist: mkdocs-material==9.6.22; extra == "dev-mkdocs"
50
- Requires-Dist: mkdocstrings[python]==0.30.1; extra == "dev-mkdocs"
48
+ Requires-Dist: mkdocs-macros-plugin==1.5.0; extra == "dev-mkdocs"
49
+ Requires-Dist: mkdocs-material==9.7.0; extra == "dev-mkdocs"
50
+ Requires-Dist: mkdocstrings[python]==1.0.0; extra == "dev-mkdocs"
51
51
  Requires-Dist: mkdocstrings-python==1.18.2; extra == "dev-mkdocs"
52
- Requires-Dist: frequenz-repo-config[lib]==0.13.6; extra == "dev-mkdocs"
52
+ Requires-Dist: frequenz-repo-config[lib]==0.13.8; extra == "dev-mkdocs"
53
53
  Provides-Extra: dev-mypy
54
- Requires-Dist: mypy==1.18.2; extra == "dev-mypy"
54
+ Requires-Dist: mypy==1.19.0; extra == "dev-mypy"
55
55
  Requires-Dist: grpc-stubs==1.53.0.6; extra == "dev-mypy"
56
- Requires-Dist: types-Markdown==3.9.0.20250906; extra == "dev-mypy"
57
- Requires-Dist: types-protobuf==6.32.1.20250918; extra == "dev-mypy"
56
+ Requires-Dist: types-Markdown==3.10.0.20251106; extra == "dev-mypy"
57
+ Requires-Dist: types-protobuf==6.32.1.20251105; 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==2025.10.16; extra == "dev-noxfile"
61
- Requires-Dist: frequenz-repo-config[lib]==0.13.6; extra == "dev-noxfile"
60
+ Requires-Dist: nox==2025.11.12; extra == "dev-noxfile"
61
+ Requires-Dist: frequenz-repo-config[lib]==0.13.8; extra == "dev-noxfile"
62
62
  Provides-Extra: dev-pylint
63
- Requires-Dist: pylint==4.0.2; extra == "dev-pylint"
63
+ Requires-Dist: pylint==4.0.4; 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==8.4.2; extra == "dev-pytest"
67
- Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.13.6; extra == "dev-pytest"
66
+ Requires-Dist: pytest==9.0.2; extra == "dev-pytest"
67
+ Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.13.8; extra == "dev-pytest"
68
68
  Requires-Dist: pytest-mock==3.15.1; extra == "dev-pytest"
69
- Requires-Dist: pytest-asyncio==1.2.0; extra == "dev-pytest"
69
+ Requires-Dist: pytest-asyncio==1.3.0; extra == "dev-pytest"
70
70
  Requires-Dist: async-solipsism==0.8; 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"
@@ -0,0 +1,13 @@
1
+ # Frequenz Microgrid API Client Release Notes
2
+
3
+ ## Summary
4
+
5
+ This release adds a new `WindTurbine` component type.
6
+
7
+ ## Upgrading
8
+
9
+ - If you are using `match` and doing exhaustive matching on the `Component` types, you will get `mypy` errors and will need to handle the new `WindTurbine` type.
10
+
11
+ ## New Features
12
+
13
+ - Add `WindTurbine` component type.
@@ -5,7 +5,7 @@
5
5
  requires = [
6
6
  "setuptools == 80.9.0",
7
7
  "setuptools_scm[toml] == 9.2.2",
8
- "frequenz-repo-config[lib] == 0.13.6",
8
+ "frequenz-repo-config[lib] == 0.13.8",
9
9
  ]
10
10
  build-backend = "setuptools.build_meta"
11
11
 
@@ -56,42 +56,42 @@ email = "floss@frequenz.com"
56
56
  dev-flake8 = [
57
57
  "flake8 == 7.3.0",
58
58
  "flake8-docstrings == 1.7.0",
59
- "flake8-pyproject == 1.2.3", # For reading the flake8 config from pyproject.toml
60
- "pydoclint == 0.7.6",
59
+ "flake8-pyproject == 1.2.4", # For reading the flake8 config from pyproject.toml
60
+ "pydoclint == 0.8.3",
61
61
  "pydocstyle == 6.3.0",
62
62
  ]
63
- dev-formatting = ["black == 25.9.0", "isort == 6.1.0"]
63
+ dev-formatting = ["black == 25.12.0", "isort == 7.0.0"]
64
64
  dev-mkdocs = [
65
- "black == 25.9.0",
66
- "Markdown==3.9",
65
+ "black == 25.12.0",
66
+ "Markdown==3.10",
67
67
  "mike == 2.1.3",
68
- "mkdocs-gen-files == 0.5.0",
68
+ "mkdocs-gen-files == 0.6.0",
69
69
  "mkdocs-literate-nav == 0.6.2",
70
- "mkdocs-macros-plugin == 1.4.1",
71
- "mkdocs-material == 9.6.22",
72
- "mkdocstrings[python] == 0.30.1",
70
+ "mkdocs-macros-plugin == 1.5.0",
71
+ "mkdocs-material == 9.7.0",
72
+ "mkdocstrings[python] == 1.0.0",
73
73
  "mkdocstrings-python == 1.18.2",
74
- "frequenz-repo-config[lib] == 0.13.6",
74
+ "frequenz-repo-config[lib] == 0.13.8",
75
75
  ]
76
76
  dev-mypy = [
77
- "mypy == 1.18.2",
77
+ "mypy == 1.19.0",
78
78
  "grpc-stubs == 1.53.0.6",
79
- "types-Markdown == 3.9.0.20250906",
80
- "types-protobuf == 6.32.1.20250918",
79
+ "types-Markdown == 3.10.0.20251106",
80
+ "types-protobuf == 6.32.1.20251105",
81
81
  # For checking the noxfile, docs/ script, and tests
82
82
  "frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]",
83
83
  ]
84
- dev-noxfile = ["nox == 2025.10.16", "frequenz-repo-config[lib] == 0.13.6"]
84
+ dev-noxfile = ["nox == 2025.11.12", "frequenz-repo-config[lib] == 0.13.8"]
85
85
  dev-pylint = [
86
- "pylint == 4.0.2",
86
+ "pylint == 4.0.4",
87
87
  # For checking the noxfile, docs/ script, and tests
88
88
  "frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]",
89
89
  ]
90
90
  dev-pytest = [
91
- "pytest == 8.4.2",
92
- "frequenz-repo-config[extra-lint-examples] == 0.13.6",
91
+ "pytest == 9.0.2",
92
+ "frequenz-repo-config[extra-lint-examples] == 0.13.8",
93
93
  "pytest-mock == 3.15.1",
94
- "pytest-asyncio == 1.2.0",
94
+ "pytest-asyncio == 1.3.0",
95
95
  "async-solipsism == 0.8",
96
96
  ]
97
97
  dev = [
@@ -58,6 +58,7 @@ from ._types import (
58
58
  UnspecifiedComponentTypes,
59
59
  )
60
60
  from ._voltage_transformer import VoltageTransformer
61
+ from ._wind_turbine import WindTurbine
61
62
 
62
63
  __all__ = [
63
64
  "AcEvCharger",
@@ -107,4 +108,5 @@ __all__ = [
107
108
  "UnspecifiedEvCharger",
108
109
  "UnspecifiedInverter",
109
110
  "VoltageTransformer",
111
+ "WindTurbine",
110
112
  ]
@@ -104,3 +104,6 @@ class ComponentCategory(enum.Enum):
104
104
 
105
105
  HVAC = electrical_components_pb2.ELECTRICAL_COMPONENT_CATEGORY_HVAC
106
106
  """A Heating, Ventilation, and Air Conditioning (HVAC) system."""
107
+
108
+ WIND_TURBINE = electrical_components_pb2.ELECTRICAL_COMPONENT_CATEGORY_WIND_TURBINE
109
+ """A wind turbine."""
@@ -60,6 +60,7 @@ from ._problematic import (
60
60
  from ._relay import Relay
61
61
  from ._types import ComponentTypes
62
62
  from ._voltage_transformer import VoltageTransformer
63
+ from ._wind_turbine import WindTurbine
63
64
 
64
65
  _logger = logging.getLogger(__name__)
65
66
 
@@ -255,6 +256,7 @@ def component_from_proto_with_issues(
255
256
  | ComponentCategory.METER
256
257
  | ComponentCategory.PRECHARGER
257
258
  | ComponentCategory.RELAY
259
+ | ComponentCategory.WIND_TURBINE
258
260
  ):
259
261
  return _trivial_category_to_class(base_data.category)(
260
262
  id=base_data.component_id,
@@ -449,6 +451,7 @@ def _trivial_category_to_class(
449
451
  | Meter
450
452
  | Precharger
451
453
  | Relay
454
+ | WindTurbine
452
455
  ]:
453
456
  """Return the class corresponding to a trivial component category."""
454
457
  return {
@@ -461,6 +464,7 @@ def _trivial_category_to_class(
461
464
  ComponentCategory.METER: Meter,
462
465
  ComponentCategory.PRECHARGER: Precharger,
463
466
  ComponentCategory.RELAY: Relay,
467
+ ComponentCategory.WIND_TURBINE: WindTurbine,
464
468
  }[category]
465
469
 
466
470
 
@@ -23,6 +23,7 @@ from ._problematic import (
23
23
  )
24
24
  from ._relay import Relay
25
25
  from ._voltage_transformer import VoltageTransformer
26
+ from ._wind_turbine import WindTurbine
26
27
 
27
28
  UnspecifiedComponentTypes: TypeAlias = (
28
29
  UnspecifiedBattery
@@ -59,5 +60,6 @@ ComponentTypes: TypeAlias = (
59
60
  | ProblematicComponentTypes
60
61
  | Relay
61
62
  | VoltageTransformer
63
+ | WindTurbine
62
64
  )
63
65
  """All possible component types."""
@@ -0,0 +1,18 @@
1
+ # License: MIT
2
+ # Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3
+
4
+ """Wind turbine 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 WindTurbine(Component):
15
+ """A wind turbine component."""
16
+
17
+ category: Literal[ComponentCategory.WIND_TURBINE] = ComponentCategory.WIND_TURBINE
18
+ """The category of this component."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: frequenz-client-microgrid
3
- Version: 0.18.0
3
+ Version: 0.18.1
4
4
  Summary: Microgrid API client for Python
5
5
  Author-email: Frequenz Energy-as-a-Service GmbH <floss@frequenz.com>
6
6
  License: MIT
@@ -33,40 +33,40 @@ Requires-Dist: typing-extensions<5,>=4.13.0
33
33
  Provides-Extra: dev-flake8
34
34
  Requires-Dist: flake8==7.3.0; extra == "dev-flake8"
35
35
  Requires-Dist: flake8-docstrings==1.7.0; extra == "dev-flake8"
36
- Requires-Dist: flake8-pyproject==1.2.3; extra == "dev-flake8"
37
- Requires-Dist: pydoclint==0.7.6; extra == "dev-flake8"
36
+ Requires-Dist: flake8-pyproject==1.2.4; extra == "dev-flake8"
37
+ Requires-Dist: pydoclint==0.8.3; extra == "dev-flake8"
38
38
  Requires-Dist: pydocstyle==6.3.0; extra == "dev-flake8"
39
39
  Provides-Extra: dev-formatting
40
- Requires-Dist: black==25.9.0; extra == "dev-formatting"
41
- Requires-Dist: isort==6.1.0; extra == "dev-formatting"
40
+ Requires-Dist: black==25.12.0; extra == "dev-formatting"
41
+ Requires-Dist: isort==7.0.0; extra == "dev-formatting"
42
42
  Provides-Extra: dev-mkdocs
43
- Requires-Dist: black==25.9.0; extra == "dev-mkdocs"
44
- Requires-Dist: Markdown==3.9; extra == "dev-mkdocs"
43
+ Requires-Dist: black==25.12.0; extra == "dev-mkdocs"
44
+ Requires-Dist: Markdown==3.10; extra == "dev-mkdocs"
45
45
  Requires-Dist: mike==2.1.3; extra == "dev-mkdocs"
46
- Requires-Dist: mkdocs-gen-files==0.5.0; extra == "dev-mkdocs"
46
+ Requires-Dist: mkdocs-gen-files==0.6.0; extra == "dev-mkdocs"
47
47
  Requires-Dist: mkdocs-literate-nav==0.6.2; extra == "dev-mkdocs"
48
- Requires-Dist: mkdocs-macros-plugin==1.4.1; extra == "dev-mkdocs"
49
- Requires-Dist: mkdocs-material==9.6.22; extra == "dev-mkdocs"
50
- Requires-Dist: mkdocstrings[python]==0.30.1; extra == "dev-mkdocs"
48
+ Requires-Dist: mkdocs-macros-plugin==1.5.0; extra == "dev-mkdocs"
49
+ Requires-Dist: mkdocs-material==9.7.0; extra == "dev-mkdocs"
50
+ Requires-Dist: mkdocstrings[python]==1.0.0; extra == "dev-mkdocs"
51
51
  Requires-Dist: mkdocstrings-python==1.18.2; extra == "dev-mkdocs"
52
- Requires-Dist: frequenz-repo-config[lib]==0.13.6; extra == "dev-mkdocs"
52
+ Requires-Dist: frequenz-repo-config[lib]==0.13.8; extra == "dev-mkdocs"
53
53
  Provides-Extra: dev-mypy
54
- Requires-Dist: mypy==1.18.2; extra == "dev-mypy"
54
+ Requires-Dist: mypy==1.19.0; extra == "dev-mypy"
55
55
  Requires-Dist: grpc-stubs==1.53.0.6; extra == "dev-mypy"
56
- Requires-Dist: types-Markdown==3.9.0.20250906; extra == "dev-mypy"
57
- Requires-Dist: types-protobuf==6.32.1.20250918; extra == "dev-mypy"
56
+ Requires-Dist: types-Markdown==3.10.0.20251106; extra == "dev-mypy"
57
+ Requires-Dist: types-protobuf==6.32.1.20251105; 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==2025.10.16; extra == "dev-noxfile"
61
- Requires-Dist: frequenz-repo-config[lib]==0.13.6; extra == "dev-noxfile"
60
+ Requires-Dist: nox==2025.11.12; extra == "dev-noxfile"
61
+ Requires-Dist: frequenz-repo-config[lib]==0.13.8; extra == "dev-noxfile"
62
62
  Provides-Extra: dev-pylint
63
- Requires-Dist: pylint==4.0.2; extra == "dev-pylint"
63
+ Requires-Dist: pylint==4.0.4; 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==8.4.2; extra == "dev-pytest"
67
- Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.13.6; extra == "dev-pytest"
66
+ Requires-Dist: pytest==9.0.2; extra == "dev-pytest"
67
+ Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.13.8; extra == "dev-pytest"
68
68
  Requires-Dist: pytest-mock==3.15.1; extra == "dev-pytest"
69
- Requires-Dist: pytest-asyncio==1.2.0; extra == "dev-pytest"
69
+ Requires-Dist: pytest-asyncio==1.3.0; extra == "dev-pytest"
70
70
  Requires-Dist: async-solipsism==0.8; 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"
@@ -42,6 +42,7 @@ src/frequenz/client/microgrid/component/_state_sample.py
42
42
  src/frequenz/client/microgrid/component/_state_sample_proto.py
43
43
  src/frequenz/client/microgrid/component/_types.py
44
44
  src/frequenz/client/microgrid/component/_voltage_transformer.py
45
+ src/frequenz/client/microgrid/component/_wind_turbine.py
45
46
  src/frequenz/client/microgrid/metrics/__init__.py
46
47
  src/frequenz/client/microgrid/metrics/_bounds.py
47
48
  src/frequenz/client/microgrid/metrics/_bounds_proto.py
@@ -14,44 +14,44 @@ frequenz-client-microgrid[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxf
14
14
  [dev-flake8]
15
15
  flake8==7.3.0
16
16
  flake8-docstrings==1.7.0
17
- flake8-pyproject==1.2.3
18
- pydoclint==0.7.6
17
+ flake8-pyproject==1.2.4
18
+ pydoclint==0.8.3
19
19
  pydocstyle==6.3.0
20
20
 
21
21
  [dev-formatting]
22
- black==25.9.0
23
- isort==6.1.0
22
+ black==25.12.0
23
+ isort==7.0.0
24
24
 
25
25
  [dev-mkdocs]
26
- black==25.9.0
27
- Markdown==3.9
26
+ black==25.12.0
27
+ Markdown==3.10
28
28
  mike==2.1.3
29
- mkdocs-gen-files==0.5.0
29
+ mkdocs-gen-files==0.6.0
30
30
  mkdocs-literate-nav==0.6.2
31
- mkdocs-macros-plugin==1.4.1
32
- mkdocs-material==9.6.22
33
- mkdocstrings[python]==0.30.1
31
+ mkdocs-macros-plugin==1.5.0
32
+ mkdocs-material==9.7.0
33
+ mkdocstrings[python]==1.0.0
34
34
  mkdocstrings-python==1.18.2
35
- frequenz-repo-config[lib]==0.13.6
35
+ frequenz-repo-config[lib]==0.13.8
36
36
 
37
37
  [dev-mypy]
38
- mypy==1.18.2
38
+ mypy==1.19.0
39
39
  grpc-stubs==1.53.0.6
40
- types-Markdown==3.9.0.20250906
41
- types-protobuf==6.32.1.20250918
40
+ types-Markdown==3.10.0.20251106
41
+ types-protobuf==6.32.1.20251105
42
42
  frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]
43
43
 
44
44
  [dev-noxfile]
45
- nox==2025.10.16
46
- frequenz-repo-config[lib]==0.13.6
45
+ nox==2025.11.12
46
+ frequenz-repo-config[lib]==0.13.8
47
47
 
48
48
  [dev-pylint]
49
- pylint==4.0.2
49
+ pylint==4.0.4
50
50
  frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]
51
51
 
52
52
  [dev-pytest]
53
- pytest==8.4.2
54
- frequenz-repo-config[extra-lint-examples]==0.13.6
53
+ pytest==9.0.2
54
+ frequenz-repo-config[extra-lint-examples]==0.13.8
55
55
  pytest-mock==3.15.1
56
- pytest-asyncio==1.2.0
56
+ pytest-asyncio==1.3.0
57
57
  async-solipsism==0.8
@@ -1,215 +0,0 @@
1
- # Frequenz Microgrid API Client Release Notes
2
-
3
- ## Summary
4
-
5
- This release is a major breaking change. The client now targets the Microgrid API specification version `0.18.x` and the `v1` namespace in `frequenz-api-common`. Both upstream projects introduce large structural and naming changes to components, metrics, and telemetry, and this client has been refactored accordingly.
6
-
7
- Existing code written for `frequenz-client-microgrid` `v0.9.1` will not work without changes. Upgrading will typically require:
8
-
9
- - Bumping dependencies to the new API and common libraries.
10
- - Updating imports for components, metrics, and IDs.
11
- - Migrating from the old ad-hoc component and sensor APIs to the new component/metrics model.
12
- - Adapting to the new power-control and bounds APIs.
13
-
14
- For a full overview of upstream changes, consult the [Microgrid API releases](https://github.com/frequenz-floss/frequenz-api-microgrid/releases) and [Common API releases](https://github.com/frequenz-floss/frequenz-api-common/releases).
15
-
16
- ## Upgrading
17
-
18
- The following notes are aimed at users upgrading from `frequenz-client-microgrid` `v0.9.1`.
19
-
20
- ### Dependencies and imports
21
-
22
- - **Dependencies**:
23
-
24
- - `frequenz-api-microgrid` is now required at `>= 0.18.0, < 0.19.0`.
25
- - `frequenz-api-common` is now required at `>= 0.8.0, < 1.0.0` and uses the `v1` namespace.
26
- - `frequenz-client-common` is now required at `>= 0.3.6, < 0.4.0` and provides ID and helper types used throughout the client.
27
-
28
- Make sure you pin compatible versions in your own project when upgrading.
29
-
30
- - **IDs and common types**:
31
-
32
- IDs come from `frequenz.client.common` (this was already true in `v0.9.1`, but they are now used more consistently):
33
-
34
- ```python
35
- from frequenz.client.common.microgrid import MicrogridId
36
- from frequenz.client.common.microgrid.components import ComponentId
37
- ```
38
-
39
- - **Components and metrics**:
40
-
41
- The old component and data types (`Component`, `ComponentCategory`, `BatteryData`, `InverterData`, `ComponentState*`, etc.) that used to live directly under `frequenz.client.microgrid` have been replaced with a richer component and metrics model:
42
-
43
- ```python
44
- from frequenz.client.microgrid import MicrogridApiClient
45
- from frequenz.client.microgrid import component, metrics
46
-
47
- # Example component types
48
- from frequenz.client.microgrid.component import (
49
- Component,
50
- ComponentCategory,
51
- ComponentConnection,
52
- ComponentDataSamples,
53
- ComponentStateSample,
54
- GridConnectionPoint,
55
- Inverter,
56
- Battery,
57
- )
58
-
59
- # Metrics and bounds
60
- from frequenz.client.microgrid.metrics import Metric, Bounds, MetricSample
61
- ```
62
-
63
- Update your imports to use these new modules instead of the removed legacy types.
64
-
65
- ### Metadata: `metadata()` → `get_microgrid_info()`
66
-
67
- The old `metadata()` method has been replaced by `get_microgrid_info()` which returns a richer `MicrogridInfo` object.
68
-
69
- ### Listing components and connections
70
-
71
- In `v0.9.1` you would often use:
72
-
73
- ```python
74
- components = await client.components()
75
- connections = await client.connections(starts={component_id}, ends=set())
76
- ```
77
-
78
- Now:
79
-
80
- - **List components**:
81
-
82
- ```python
83
- components = await client.list_components(
84
- components=[ComponentId(1), ComponentId(2)],
85
- categories=[ComponentCategory.INVERTER, ComponentCategory.BATTERY],
86
- )
87
- ```
88
-
89
- Notes:
90
-
91
- - `components` may contain `ComponentId` instances or `Component` objects.
92
- - `categories` may contain `ComponentCategory` enum values or raw integer category IDs.
93
- - Filters across `components` and `categories` are combined with `AND`; values inside each list are combined with `OR`.
94
-
95
- - **List connections**:
96
-
97
- ```python
98
- connections = await client.list_connections(
99
- sources=[ComponentId(1)],
100
- destinations=[ComponentId(2)],
101
- )
102
- ```
103
-
104
- Notes:
105
-
106
- - `sources` and `destinations` accept `ComponentId` or `Component` instances.
107
- - Filters across `sources` and `destinations` are combined with `AND`; values inside each list are combined with `OR`.
108
- - Connections now also use `.source` and `.destination` terminology instead of `.start` and `.end`.
109
-
110
-
111
- ### Sensors: `list_sensors()`, `stream_sensor_data()` → *removed* (temporary)
112
-
113
- The old `list_sensors()` and `stream_sensor_data()` method has no direct equivalent. It will be reintroduced in a future release once sensor abstractions are reworked to fit the new component and metrics model.
114
-
115
- ### Power control: `set_power()` / `set_reactive_power()` → `set_component_power_active()` / `set_component_power_reactive()`
116
-
117
- In `v0.9.1` you would typically set power using methods like:
118
-
119
- ```python
120
- await client.set_power(component_id, power_w)
121
- await client.set_reactive_power(component_id, reactive_power_var)
122
- ```
123
-
124
- These methods have been replaced with lifetime-aware, metric-aligned calls:
125
-
126
- ```python
127
- # Active power in watts
128
- expiry = await client.set_component_power_active(
129
- component=ComponentId(1),
130
- power_w=1_000.0,
131
- request_lifetime=timedelta(seconds=30),
132
- )
133
-
134
- # Reactive power in volt-ampere reactive (var)
135
- expiry = await client.set_component_power_reactive(
136
- component=ComponentId(1),
137
- power_var=500.0,
138
- request_lifetime=timedelta(seconds=30),
139
- )
140
- ```
141
-
142
- - Both methods accept either `ComponentId` or `Component` instances.
143
-
144
- ### Bounds: `set_bounds()` → `add_component_bounds()`
145
-
146
- In `v0.9.1`, power bounds were earlier set using methods like `set_bounds(component_id, lower, upper)`.
147
-
148
- Now the new API reflects the `v0.18` metrics semantics: bounds are attached to metrics and transported as part of telemetry samples. Use `add_component_bounds()` together with `Metric` and `Bounds`:
149
-
150
- ```python
151
- await client.add_component_bounds(
152
- component=ComponentId(1),
153
- target=Metric.ACTIVE_POWER,
154
- bounds=[Bounds(lower=-1_000.0, upper=1_000.0)],
155
- )
156
- ```
157
-
158
- Notes:
159
-
160
- - Bounds are now metric-specific: you must specify a `Metric` when adding bounds.
161
- - Bounds are represented as at most two ranges, matching `frequenz-api-common` `v1` (`Bounds` may contain up to two inclusive ranges).
162
-
163
- ### Streaming telemetry: `*_data()` → `receive_component_data_samples_stream()`
164
-
165
- The streaming model changed significantly.
166
-
167
- In `v0.9.1`, you would use:
168
-
169
- ```python
170
- receiver = await client.meter_data(component_id)
171
- async for sample in receiver:
172
- # sample is a MeterData instance
173
- ...
174
- ```
175
-
176
- Now, telemetry is integrated around components and metrics using `receive_component_data_samples_stream()` and `ComponentDataSamples`:
177
-
178
- ```python
179
- receiver: Receiver[ComponentDataSamples] = (
180
- await client.receive_component_data_samples_stream(
181
- component=ComponentId(1),
182
- metrics=[Metric.ACTIVE_POWER, Metric.REACTIVE_POWER],
183
- )
184
- )
185
-
186
- async for samples in receiver:
187
- # Each `samples` corresponds to a single component at a single timestamp.
188
- # Metric values and bounds are attached per metric.
189
- ```
190
-
191
- The upstream Microgrid API `v0.18` changes how samples are structured; important points from the upstream migration notes (see `frequenz-api-microgrid` discussion #278):
192
-
193
- - Rated bounds moved into component metadata; telemetry samples now carry operational bounds per metric.
194
- - Old `component_bounds` and `system_{inclusion,exclusion}_bounds` are unified under `samples.metric[x].bounds`.
195
- - Older voltage metrics like `VOLTAGE_PHASE_A` map to `AC_VOLTAGE_PHASE_A_N` and similar; review metric names in `frequenz.client.microgrid.metrics.Metric` when porting code.
196
- - All metrics for a given component at a given time share the same `sampled_at` timestamp.
197
- - At most one `ComponentState` is included per `ComponentData`.
198
-
199
- When migrating:
200
-
201
- - Prefer requesting only the metrics you actually consume.
202
- - Use the new bounds representation instead of any previously maintained client-side bounds fields.
203
- - Replace sensor-centric streams with component-centric streams; each telemetry message now contains all requested metrics for a component.
204
-
205
- ## New Features
206
-
207
- - Add `get_microgrid_info()` returning a rich `MicrogridInfo` dataclass with ID, enterprise, location, delivery area, status, and timestamps.
208
- - Add a metrics model under `frequenz.client.microgrid.metrics` including the `Metric` enum, `Bounds`, and `MetricSample`/`AggregatedMetricValue`.
209
- - Add high-level methods on `MicrogridApiClient` for listing components and connections, adding component bounds, receiving component data samples streams, and controlling active/reactive power with lifetimes.
210
-
211
- ## Bug Fixes
212
-
213
- - Restore missing `Metric` enum members to match the upstream common API definitions.
214
- - Remove an artificial timeout from the gRPC telemetry stream to avoid spurious cancellations under normal operation.
215
- - Align error handling and validation with the updated API behavior (for example, validating lifetimes and power ranges before sending control requests).