frequenz-client-microgrid 0.6.0__tar.gz → 0.6.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 (25) hide show
  1. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/PKG-INFO +42 -3
  2. frequenz_client_microgrid-0.6.1/RELEASE_NOTES.md +5 -0
  3. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/pyproject.toml +23 -20
  4. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz_client_microgrid.egg-info/PKG-INFO +42 -3
  5. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz_client_microgrid.egg-info/requires.txt +17 -17
  6. frequenz-client-microgrid-0.6.0/RELEASE_NOTES.md +0 -17
  7. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/LICENSE +0 -0
  8. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/MANIFEST.in +0 -0
  9. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/README.md +0 -0
  10. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/setup.cfg +0 -0
  11. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/__init__.py +0 -0
  12. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/_client.py +0 -0
  13. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/_component.py +0 -0
  14. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/_component_data.py +0 -0
  15. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/_component_error.py +0 -0
  16. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/_component_states.py +0 -0
  17. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/_connection.py +0 -0
  18. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/_constants.py +0 -0
  19. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/_exception.py +0 -0
  20. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/_metadata.py +0 -0
  21. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/conftest.py +0 -0
  22. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz/client/microgrid/py.typed +0 -0
  23. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz_client_microgrid.egg-info/SOURCES.txt +0 -0
  24. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz_client_microgrid.egg-info/dependency_links.txt +0 -0
  25. {frequenz-client-microgrid-0.6.0 → frequenz_client_microgrid-0.6.1}/src/frequenz_client_microgrid.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: frequenz-client-microgrid
3
- Version: 0.6.0
3
+ Version: 0.6.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
@@ -20,15 +20,54 @@ Classifier: Topic :: Software Development :: Libraries
20
20
  Classifier: Typing :: Typed
21
21
  Requires-Python: <4,>=3.11
22
22
  Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: frequenz-api-microgrid<0.16.0,>=0.15.3
25
+ Requires-Dist: frequenz-channels<2.0.0,>=1.0.0-rc1
26
+ Requires-Dist: frequenz-client-base<0.10.0,>=0.8.0
27
+ Requires-Dist: grpcio<2,>=1.54.2
28
+ Requires-Dist: protobuf<6,>=4.21.6
29
+ Requires-Dist: timezonefinder<7,>=6.2.0
30
+ Requires-Dist: typing-extensions<5,>=4.5.0
23
31
  Provides-Extra: dev-flake8
32
+ Requires-Dist: flake8==7.1.1; extra == "dev-flake8"
33
+ Requires-Dist: flake8-docstrings==1.7.0; extra == "dev-flake8"
34
+ Requires-Dist: flake8-pyproject==1.2.3; extra == "dev-flake8"
35
+ Requires-Dist: pydoclint==0.6.0; extra == "dev-flake8"
36
+ Requires-Dist: pydocstyle==6.3.0; extra == "dev-flake8"
24
37
  Provides-Extra: dev-formatting
38
+ Requires-Dist: black==25.1.0; extra == "dev-formatting"
39
+ Requires-Dist: isort==6.0.0; extra == "dev-formatting"
25
40
  Provides-Extra: dev-mkdocs
41
+ Requires-Dist: black==25.1.0; extra == "dev-mkdocs"
42
+ Requires-Dist: Markdown==3.7; extra == "dev-mkdocs"
43
+ Requires-Dist: mike==2.1.3; extra == "dev-mkdocs"
44
+ Requires-Dist: mkdocs-gen-files==0.5.0; extra == "dev-mkdocs"
45
+ Requires-Dist: mkdocs-literate-nav==0.6.1; extra == "dev-mkdocs"
46
+ Requires-Dist: mkdocs-macros-plugin==1.3.7; extra == "dev-mkdocs"
47
+ Requires-Dist: mkdocs-material==9.6.2; extra == "dev-mkdocs"
48
+ Requires-Dist: mkdocstrings[python]==0.28.0; extra == "dev-mkdocs"
49
+ Requires-Dist: mkdocstrings-python==1.14.6; extra == "dev-mkdocs"
50
+ Requires-Dist: frequenz-repo-config[lib]==0.12.2; extra == "dev-mkdocs"
26
51
  Provides-Extra: dev-mypy
52
+ Requires-Dist: mypy==1.14.1; extra == "dev-mypy"
53
+ Requires-Dist: grpc-stubs==1.53.0.5; extra == "dev-mypy"
54
+ Requires-Dist: types-Markdown==3.7.0.20241204; extra == "dev-mypy"
55
+ Requires-Dist: types-protobuf==5.29.1.20241207; extra == "dev-mypy"
56
+ Requires-Dist: frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-mypy"
27
57
  Provides-Extra: dev-noxfile
58
+ Requires-Dist: nox==2024.10.9; extra == "dev-noxfile"
59
+ Requires-Dist: frequenz-repo-config[lib]==0.12.2; extra == "dev-noxfile"
28
60
  Provides-Extra: dev-pylint
61
+ Requires-Dist: pylint==3.3.4; extra == "dev-pylint"
62
+ Requires-Dist: frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-pylint"
29
63
  Provides-Extra: dev-pytest
64
+ Requires-Dist: pytest==8.3.4; extra == "dev-pytest"
65
+ Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.12.2; extra == "dev-pytest"
66
+ Requires-Dist: pytest-mock==3.14.0; extra == "dev-pytest"
67
+ Requires-Dist: pytest-asyncio==0.25.3; extra == "dev-pytest"
68
+ Requires-Dist: async-solipsism==0.7; extra == "dev-pytest"
30
69
  Provides-Extra: dev
31
- License-File: LICENSE
70
+ Requires-Dist: frequenz-client-microgrid[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]; extra == "dev"
32
71
 
33
72
  # Frequenz Microgrid API Client
34
73
 
@@ -0,0 +1,5 @@
1
+ # Frequenz Microgrid API Client Release Notes
2
+
3
+ ## Upgrading
4
+
5
+ - Widen `frequenz-client-base` dependency to allow `v0.9.0`.
@@ -3,9 +3,9 @@
3
3
 
4
4
  [build-system]
5
5
  requires = [
6
- "setuptools == 68.1.0",
7
- "setuptools_scm[toml] == 7.1.0",
8
- "frequenz-repo-config[lib] == 0.9.1",
6
+ "setuptools == 75.8.0",
7
+ "setuptools_scm[toml] == 8.1.0",
8
+ "frequenz-repo-config[lib] == 0.12.2",
9
9
  ]
10
10
  build-backend = "setuptools.build_meta"
11
11
 
@@ -38,7 +38,7 @@ requires-python = ">= 3.11, < 4"
38
38
  dependencies = [
39
39
  "frequenz-api-microgrid >= 0.15.3, < 0.16.0",
40
40
  "frequenz-channels >= 1.0.0-rc1, < 2.0.0",
41
- "frequenz-client-base >= 0.8.0, < 0.9",
41
+ "frequenz-client-base >= 0.8.0, < 0.10.0",
42
42
  "grpcio >= 1.54.2, < 2",
43
43
  "protobuf >= 4.21.6, < 6",
44
44
  "timezonefinder >= 6.2.0, < 7",
@@ -54,42 +54,42 @@ email = "floss@frequenz.com"
54
54
  dev-flake8 = [
55
55
  "flake8 == 7.1.1",
56
56
  "flake8-docstrings == 1.7.0",
57
- "flake8-pyproject == 1.2.3", # For reading the flake8 config from pyproject.toml
58
- "pydoclint == 0.5.9",
57
+ "flake8-pyproject == 1.2.3", # For reading the flake8 config from pyproject.toml
58
+ "pydoclint == 0.6.0",
59
59
  "pydocstyle == 6.3.0",
60
60
  ]
61
- dev-formatting = ["black == 24.10.0", "isort == 5.13.2"]
61
+ dev-formatting = ["black == 25.1.0", "isort == 6.0.0"]
62
62
  dev-mkdocs = [
63
- "black == 24.10.0",
63
+ "black == 25.1.0",
64
64
  "Markdown==3.7",
65
65
  "mike == 2.1.3",
66
66
  "mkdocs-gen-files == 0.5.0",
67
67
  "mkdocs-literate-nav == 0.6.1",
68
68
  "mkdocs-macros-plugin == 1.3.7",
69
- "mkdocs-material == 9.5.43",
70
- "mkdocstrings[python] == 0.26.2",
71
- "mkdocstrings-python == 1.12.2",
72
- "frequenz-repo-config[lib] == 0.10.0",
69
+ "mkdocs-material == 9.6.2",
70
+ "mkdocstrings[python] == 0.28.0",
71
+ "mkdocstrings-python == 1.14.6",
72
+ "frequenz-repo-config[lib] == 0.12.2",
73
73
  ]
74
74
  dev-mypy = [
75
- "mypy == 1.13.0",
75
+ "mypy == 1.14.1",
76
76
  "grpc-stubs == 1.53.0.5",
77
- "types-Markdown == 3.7.0.20240822",
78
- "types-protobuf == 5.28.3.20241030",
77
+ "types-Markdown == 3.7.0.20241204",
78
+ "types-protobuf == 5.29.1.20241207",
79
79
  # For checking the noxfile, docs/ script, and tests
80
80
  "frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]",
81
81
  ]
82
- dev-noxfile = ["nox == 2024.10.9", "frequenz-repo-config[lib] == 0.10.0"]
82
+ dev-noxfile = ["nox == 2024.10.9", "frequenz-repo-config[lib] == 0.12.2"]
83
83
  dev-pylint = [
84
- "pylint == 3.3.1",
84
+ "pylint == 3.3.4",
85
85
  # For checking the noxfile, docs/ script, and tests
86
86
  "frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]",
87
87
  ]
88
88
  dev-pytest = [
89
- "pytest == 8.3.3",
90
- "frequenz-repo-config[extra-lint-examples] == 0.10.0",
89
+ "pytest == 8.3.4",
90
+ "frequenz-repo-config[extra-lint-examples] == 0.12.2",
91
91
  "pytest-mock == 3.14.0",
92
- "pytest-asyncio == 0.24.0",
92
+ "pytest-asyncio == 0.25.3",
93
93
  "async-solipsism == 0.7",
94
94
  ]
95
95
  dev = [
@@ -148,6 +148,7 @@ disable = [
148
148
  "unsubscriptable-object",
149
149
  # Checked by mypy
150
150
  "no-member",
151
+ "possibly-used-before-assignment",
151
152
  "no-name-in-module",
152
153
  # Checked by flake8
153
154
  "f-string-without-interpolation",
@@ -160,8 +161,10 @@ disable = [
160
161
  ]
161
162
 
162
163
  [tool.pytest.ini_options]
164
+ addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
163
165
  testpaths = ["tests", "src"]
164
166
  asyncio_mode = "auto"
167
+ asyncio_default_fixture_loop_scope = "function"
165
168
  required_plugins = ["pytest-asyncio", "pytest-mock"]
166
169
 
167
170
  [tool.mypy]
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: frequenz-client-microgrid
3
- Version: 0.6.0
3
+ Version: 0.6.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
@@ -20,15 +20,54 @@ Classifier: Topic :: Software Development :: Libraries
20
20
  Classifier: Typing :: Typed
21
21
  Requires-Python: <4,>=3.11
22
22
  Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: frequenz-api-microgrid<0.16.0,>=0.15.3
25
+ Requires-Dist: frequenz-channels<2.0.0,>=1.0.0-rc1
26
+ Requires-Dist: frequenz-client-base<0.10.0,>=0.8.0
27
+ Requires-Dist: grpcio<2,>=1.54.2
28
+ Requires-Dist: protobuf<6,>=4.21.6
29
+ Requires-Dist: timezonefinder<7,>=6.2.0
30
+ Requires-Dist: typing-extensions<5,>=4.5.0
23
31
  Provides-Extra: dev-flake8
32
+ Requires-Dist: flake8==7.1.1; extra == "dev-flake8"
33
+ Requires-Dist: flake8-docstrings==1.7.0; extra == "dev-flake8"
34
+ Requires-Dist: flake8-pyproject==1.2.3; extra == "dev-flake8"
35
+ Requires-Dist: pydoclint==0.6.0; extra == "dev-flake8"
36
+ Requires-Dist: pydocstyle==6.3.0; extra == "dev-flake8"
24
37
  Provides-Extra: dev-formatting
38
+ Requires-Dist: black==25.1.0; extra == "dev-formatting"
39
+ Requires-Dist: isort==6.0.0; extra == "dev-formatting"
25
40
  Provides-Extra: dev-mkdocs
41
+ Requires-Dist: black==25.1.0; extra == "dev-mkdocs"
42
+ Requires-Dist: Markdown==3.7; extra == "dev-mkdocs"
43
+ Requires-Dist: mike==2.1.3; extra == "dev-mkdocs"
44
+ Requires-Dist: mkdocs-gen-files==0.5.0; extra == "dev-mkdocs"
45
+ Requires-Dist: mkdocs-literate-nav==0.6.1; extra == "dev-mkdocs"
46
+ Requires-Dist: mkdocs-macros-plugin==1.3.7; extra == "dev-mkdocs"
47
+ Requires-Dist: mkdocs-material==9.6.2; extra == "dev-mkdocs"
48
+ Requires-Dist: mkdocstrings[python]==0.28.0; extra == "dev-mkdocs"
49
+ Requires-Dist: mkdocstrings-python==1.14.6; extra == "dev-mkdocs"
50
+ Requires-Dist: frequenz-repo-config[lib]==0.12.2; extra == "dev-mkdocs"
26
51
  Provides-Extra: dev-mypy
52
+ Requires-Dist: mypy==1.14.1; extra == "dev-mypy"
53
+ Requires-Dist: grpc-stubs==1.53.0.5; extra == "dev-mypy"
54
+ Requires-Dist: types-Markdown==3.7.0.20241204; extra == "dev-mypy"
55
+ Requires-Dist: types-protobuf==5.29.1.20241207; extra == "dev-mypy"
56
+ Requires-Dist: frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-mypy"
27
57
  Provides-Extra: dev-noxfile
58
+ Requires-Dist: nox==2024.10.9; extra == "dev-noxfile"
59
+ Requires-Dist: frequenz-repo-config[lib]==0.12.2; extra == "dev-noxfile"
28
60
  Provides-Extra: dev-pylint
61
+ Requires-Dist: pylint==3.3.4; extra == "dev-pylint"
62
+ Requires-Dist: frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-pylint"
29
63
  Provides-Extra: dev-pytest
64
+ Requires-Dist: pytest==8.3.4; extra == "dev-pytest"
65
+ Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.12.2; extra == "dev-pytest"
66
+ Requires-Dist: pytest-mock==3.14.0; extra == "dev-pytest"
67
+ Requires-Dist: pytest-asyncio==0.25.3; extra == "dev-pytest"
68
+ Requires-Dist: async-solipsism==0.7; extra == "dev-pytest"
30
69
  Provides-Extra: dev
31
- License-File: LICENSE
70
+ Requires-Dist: frequenz-client-microgrid[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]; extra == "dev"
32
71
 
33
72
  # Frequenz Microgrid API Client
34
73
 
@@ -1,6 +1,6 @@
1
1
  frequenz-api-microgrid<0.16.0,>=0.15.3
2
2
  frequenz-channels<2.0.0,>=1.0.0-rc1
3
- frequenz-client-base<0.9,>=0.8.0
3
+ frequenz-client-base<0.10.0,>=0.8.0
4
4
  grpcio<2,>=1.54.2
5
5
  protobuf<6,>=4.21.6
6
6
  timezonefinder<7,>=6.2.0
@@ -13,43 +13,43 @@ frequenz-client-microgrid[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxf
13
13
  flake8==7.1.1
14
14
  flake8-docstrings==1.7.0
15
15
  flake8-pyproject==1.2.3
16
- pydoclint==0.5.9
16
+ pydoclint==0.6.0
17
17
  pydocstyle==6.3.0
18
18
 
19
19
  [dev-formatting]
20
- black==24.10.0
21
- isort==5.13.2
20
+ black==25.1.0
21
+ isort==6.0.0
22
22
 
23
23
  [dev-mkdocs]
24
- black==24.10.0
24
+ black==25.1.0
25
25
  Markdown==3.7
26
26
  mike==2.1.3
27
27
  mkdocs-gen-files==0.5.0
28
28
  mkdocs-literate-nav==0.6.1
29
29
  mkdocs-macros-plugin==1.3.7
30
- mkdocs-material==9.5.43
31
- mkdocstrings[python]==0.26.2
32
- mkdocstrings-python==1.12.2
33
- frequenz-repo-config[lib]==0.10.0
30
+ mkdocs-material==9.6.2
31
+ mkdocstrings[python]==0.28.0
32
+ mkdocstrings-python==1.14.6
33
+ frequenz-repo-config[lib]==0.12.2
34
34
 
35
35
  [dev-mypy]
36
- mypy==1.13.0
36
+ mypy==1.14.1
37
37
  grpc-stubs==1.53.0.5
38
- types-Markdown==3.7.0.20240822
39
- types-protobuf==5.28.3.20241030
38
+ types-Markdown==3.7.0.20241204
39
+ types-protobuf==5.29.1.20241207
40
40
  frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]
41
41
 
42
42
  [dev-noxfile]
43
43
  nox==2024.10.9
44
- frequenz-repo-config[lib]==0.10.0
44
+ frequenz-repo-config[lib]==0.12.2
45
45
 
46
46
  [dev-pylint]
47
- pylint==3.3.1
47
+ pylint==3.3.4
48
48
  frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]
49
49
 
50
50
  [dev-pytest]
51
- pytest==8.3.3
52
- frequenz-repo-config[extra-lint-examples]==0.10.0
51
+ pytest==8.3.4
52
+ frequenz-repo-config[extra-lint-examples]==0.12.2
53
53
  pytest-mock==3.14.0
54
- pytest-asyncio==0.24.0
54
+ pytest-asyncio==0.25.3
55
55
  async-solipsism==0.7
@@ -1,17 +0,0 @@
1
- # Frequenz Microgrid API Client Release Notes
2
-
3
- ## Upgrading
4
-
5
- - `ApiClient`:
6
-
7
- * The class was renamed to `MicrogridApiClient`.
8
- * The `api` attribute was renamed to `stub`.
9
- * The constructor parameter `channel_options` was renamed to `channels_defaults` to match the name used in `BaseApiClient`.
10
- * The constructor now accepts a `connect` parameter, which is `True` by default. If set to `False`, the client will not connect to the server upon instantiation. You can connect later by calling the `connect()` method.
11
-
12
- * The `frequenz-client-base` dependency was bumped to v0.8.0.
13
-
14
- ## New Features
15
-
16
- - The client now inherits from `frequenz.client.base.BaseApiClient`, so it provides a few new features, like `disconnect()`ing or using it as a context manager. Please refer to the [`BaseApiClient` documentation](https://frequenz-floss.github.io/frequenz-client-base-python/latest/reference/frequenz/client/base/client/#frequenz.client.base.client.BaseApiClient) for more information on these features.
17
- - The client now supports setting reactive power for components through the new `set_reactive_power` method.