frequenz-client-microgrid 0.9.0__tar.gz → 0.9.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.
- {frequenz_client_microgrid-0.9.0/src/frequenz_client_microgrid.egg-info → frequenz_client_microgrid-0.9.1}/PKG-INFO +15 -16
- frequenz_client_microgrid-0.9.1/RELEASE_NOTES.md +32 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/pyproject.toml +15 -16
- frequenz_client_microgrid-0.9.1/src/frequenz/client/microgrid/_metadata.py +34 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1/src/frequenz_client_microgrid.egg-info}/PKG-INFO +15 -16
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz_client_microgrid.egg-info/requires.txt +14 -15
- frequenz_client_microgrid-0.9.0/RELEASE_NOTES.md +0 -14
- frequenz_client_microgrid-0.9.0/src/frequenz/client/microgrid/_metadata.py +0 -53
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/LICENSE +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/MANIFEST.in +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/README.md +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/setup.cfg +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/__init__.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/_client.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/_component.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/_component_data.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/_component_error.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/_component_states.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/_connection.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/_constants.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/_exception.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/_lifetime.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/_sensor_proto.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/_util.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/conftest.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/metrics.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/py.typed +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz/client/microgrid/sensor.py +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz_client_microgrid.egg-info/SOURCES.txt +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.1}/src/frequenz_client_microgrid.egg-info/dependency_links.txt +0 -0
- {frequenz_client_microgrid-0.9.0 → frequenz_client_microgrid-0.9.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.9.
|
|
3
|
+
Version: 0.9.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
|
|
@@ -27,10 +27,9 @@ Requires-Dist: frequenz-client-base<0.12.0,>=0.8.0
|
|
|
27
27
|
Requires-Dist: frequenz-client-common<0.4.0,>=0.3.2
|
|
28
28
|
Requires-Dist: grpcio<2,>=1.63.0
|
|
29
29
|
Requires-Dist: protobuf<7,>=5.26.1
|
|
30
|
-
Requires-Dist: timezonefinder<7,>=6.2.0
|
|
31
30
|
Requires-Dist: typing-extensions<5,>=4.13.0
|
|
32
31
|
Provides-Extra: dev-flake8
|
|
33
|
-
Requires-Dist: flake8==7.
|
|
32
|
+
Requires-Dist: flake8==7.3.0; extra == "dev-flake8"
|
|
34
33
|
Requires-Dist: flake8-docstrings==1.7.0; extra == "dev-flake8"
|
|
35
34
|
Requires-Dist: flake8-pyproject==1.2.3; extra == "dev-flake8"
|
|
36
35
|
Requires-Dist: pydoclint==0.6.6; extra == "dev-flake8"
|
|
@@ -40,33 +39,33 @@ Requires-Dist: black==25.1.0; extra == "dev-formatting"
|
|
|
40
39
|
Requires-Dist: isort==6.0.1; extra == "dev-formatting"
|
|
41
40
|
Provides-Extra: dev-mkdocs
|
|
42
41
|
Requires-Dist: black==25.1.0; extra == "dev-mkdocs"
|
|
43
|
-
Requires-Dist: Markdown==3.8; extra == "dev-mkdocs"
|
|
42
|
+
Requires-Dist: Markdown==3.8.2; extra == "dev-mkdocs"
|
|
44
43
|
Requires-Dist: mike==2.1.3; extra == "dev-mkdocs"
|
|
45
44
|
Requires-Dist: mkdocs-gen-files==0.5.0; extra == "dev-mkdocs"
|
|
46
45
|
Requires-Dist: mkdocs-literate-nav==0.6.2; extra == "dev-mkdocs"
|
|
47
46
|
Requires-Dist: mkdocs-macros-plugin==1.3.7; extra == "dev-mkdocs"
|
|
48
|
-
Requires-Dist: mkdocs-material==9.6.
|
|
49
|
-
Requires-Dist: mkdocstrings[python]==0.
|
|
50
|
-
Requires-Dist: mkdocstrings-python==1.16.
|
|
51
|
-
Requires-Dist: frequenz-repo-config[lib]==0.13.
|
|
47
|
+
Requires-Dist: mkdocs-material==9.6.16; extra == "dev-mkdocs"
|
|
48
|
+
Requires-Dist: mkdocstrings[python]==0.30.0; extra == "dev-mkdocs"
|
|
49
|
+
Requires-Dist: mkdocstrings-python==1.16.12; extra == "dev-mkdocs"
|
|
50
|
+
Requires-Dist: frequenz-repo-config[lib]==0.13.5; extra == "dev-mkdocs"
|
|
52
51
|
Provides-Extra: dev-mypy
|
|
53
|
-
Requires-Dist: mypy==1.
|
|
52
|
+
Requires-Dist: mypy==1.17.1; extra == "dev-mypy"
|
|
54
53
|
Requires-Dist: grpc-stubs==1.53.0.6; extra == "dev-mypy"
|
|
55
|
-
Requires-Dist: types-Markdown==3.8.0.
|
|
56
|
-
Requires-Dist: types-protobuf==6.30.2.
|
|
54
|
+
Requires-Dist: types-Markdown==3.8.0.20250708; extra == "dev-mypy"
|
|
55
|
+
Requires-Dist: types-protobuf==6.30.2.20250703; extra == "dev-mypy"
|
|
57
56
|
Requires-Dist: frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-mypy"
|
|
58
57
|
Provides-Extra: dev-noxfile
|
|
59
58
|
Requires-Dist: nox==2025.5.1; extra == "dev-noxfile"
|
|
60
|
-
Requires-Dist: frequenz-repo-config[lib]==0.13.
|
|
59
|
+
Requires-Dist: frequenz-repo-config[lib]==0.13.5; extra == "dev-noxfile"
|
|
61
60
|
Provides-Extra: dev-pylint
|
|
62
61
|
Requires-Dist: pylint==3.3.7; extra == "dev-pylint"
|
|
63
62
|
Requires-Dist: frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-pylint"
|
|
64
63
|
Provides-Extra: dev-pytest
|
|
65
|
-
Requires-Dist: pytest==8.
|
|
66
|
-
Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.13.
|
|
64
|
+
Requires-Dist: pytest==8.4.1; extra == "dev-pytest"
|
|
65
|
+
Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.13.5; extra == "dev-pytest"
|
|
67
66
|
Requires-Dist: pytest-mock==3.14.1; extra == "dev-pytest"
|
|
68
|
-
Requires-Dist: pytest-asyncio==
|
|
69
|
-
Requires-Dist: async-solipsism==0.
|
|
67
|
+
Requires-Dist: pytest-asyncio==1.1.0; extra == "dev-pytest"
|
|
68
|
+
Requires-Dist: async-solipsism==0.8; extra == "dev-pytest"
|
|
70
69
|
Provides-Extra: dev
|
|
71
70
|
Requires-Dist: frequenz-client-microgrid[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]; extra == "dev"
|
|
72
71
|
Dynamic: license-file
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Frequenz Microgrid API Client Release Notes
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
|
|
5
|
+
This release removes the `timezonefinder` dependency to significantly reduce package size by 66M+ and enable ARM platform support.
|
|
6
|
+
|
|
7
|
+
> [!WARNING]
|
|
8
|
+
> This is a **breaking change** shipped in a patch release because this feature has no known users.
|
|
9
|
+
|
|
10
|
+
## Upgrading
|
|
11
|
+
|
|
12
|
+
The `Location.timezone` field no longer performs automatic timezone lookup from latitude/longitude coordinates.
|
|
13
|
+
|
|
14
|
+
```python
|
|
15
|
+
# Automatic timezone lookup (no longer works)
|
|
16
|
+
location = Location(latitude=52.52, longitude=13.405)
|
|
17
|
+
print(location.timezone) # Previously: ZoneInfo('Europe/Berlin'), now None
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
If you need timezone lookup from coordinates, install [`timezonefinder`](https://pypi.org/project/timezonefinder/) separately and implement manual lookup:
|
|
21
|
+
|
|
22
|
+
```python
|
|
23
|
+
# Install: pip install timezonefinder
|
|
24
|
+
from timezonefinder import TimezoneFinder
|
|
25
|
+
from zoneinfo import ZoneInfo
|
|
26
|
+
from frequenz.client.microgrid import Location
|
|
27
|
+
|
|
28
|
+
tf = TimezoneFinder()
|
|
29
|
+
tz_name = tf.timezone_at(lat=52.52, lng=13.405)
|
|
30
|
+
timezone = ZoneInfo(tz_name) if tz_name else None
|
|
31
|
+
location = Location(latitude=52.52, longitude=13.405, timezone=timezone)
|
|
32
|
+
```
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
requires = [
|
|
6
6
|
"setuptools == 80.9.0",
|
|
7
7
|
"setuptools_scm[toml] == 8.3.1",
|
|
8
|
-
"frequenz-repo-config[lib] == 0.13.
|
|
8
|
+
"frequenz-repo-config[lib] == 0.13.5",
|
|
9
9
|
]
|
|
10
10
|
build-backend = "setuptools.build_meta"
|
|
11
11
|
|
|
@@ -42,7 +42,6 @@ dependencies = [
|
|
|
42
42
|
"frequenz-client-common >= 0.3.2, < 0.4.0",
|
|
43
43
|
"grpcio >= 1.63.0, < 2",
|
|
44
44
|
"protobuf >= 5.26.1, < 7",
|
|
45
|
-
"timezonefinder >= 6.2.0, < 7",
|
|
46
45
|
"typing-extensions >= 4.13.0, < 5",
|
|
47
46
|
]
|
|
48
47
|
dynamic = ["version"]
|
|
@@ -53,7 +52,7 @@ email = "floss@frequenz.com"
|
|
|
53
52
|
|
|
54
53
|
[project.optional-dependencies]
|
|
55
54
|
dev-flake8 = [
|
|
56
|
-
"flake8 == 7.
|
|
55
|
+
"flake8 == 7.3.0",
|
|
57
56
|
"flake8-docstrings == 1.7.0",
|
|
58
57
|
"flake8-pyproject == 1.2.3", # For reading the flake8 config from pyproject.toml
|
|
59
58
|
"pydoclint == 0.6.6",
|
|
@@ -62,36 +61,36 @@ dev-flake8 = [
|
|
|
62
61
|
dev-formatting = ["black == 25.1.0", "isort == 6.0.1"]
|
|
63
62
|
dev-mkdocs = [
|
|
64
63
|
"black == 25.1.0",
|
|
65
|
-
"Markdown==3.8",
|
|
64
|
+
"Markdown==3.8.2",
|
|
66
65
|
"mike == 2.1.3",
|
|
67
66
|
"mkdocs-gen-files == 0.5.0",
|
|
68
67
|
"mkdocs-literate-nav == 0.6.2",
|
|
69
68
|
"mkdocs-macros-plugin == 1.3.7",
|
|
70
|
-
"mkdocs-material == 9.6.
|
|
71
|
-
"mkdocstrings[python] == 0.
|
|
72
|
-
"mkdocstrings-python == 1.16.
|
|
73
|
-
"frequenz-repo-config[lib] == 0.13.
|
|
69
|
+
"mkdocs-material == 9.6.16",
|
|
70
|
+
"mkdocstrings[python] == 0.30.0",
|
|
71
|
+
"mkdocstrings-python == 1.16.12",
|
|
72
|
+
"frequenz-repo-config[lib] == 0.13.5",
|
|
74
73
|
]
|
|
75
74
|
dev-mypy = [
|
|
76
|
-
"mypy == 1.
|
|
75
|
+
"mypy == 1.17.1",
|
|
77
76
|
"grpc-stubs == 1.53.0.6",
|
|
78
|
-
"types-Markdown == 3.8.0.
|
|
79
|
-
"types-protobuf == 6.30.2.
|
|
77
|
+
"types-Markdown == 3.8.0.20250708",
|
|
78
|
+
"types-protobuf == 6.30.2.20250703",
|
|
80
79
|
# For checking the noxfile, docs/ script, and tests
|
|
81
80
|
"frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]",
|
|
82
81
|
]
|
|
83
|
-
dev-noxfile = ["nox == 2025.5.1", "frequenz-repo-config[lib] == 0.13.
|
|
82
|
+
dev-noxfile = ["nox == 2025.5.1", "frequenz-repo-config[lib] == 0.13.5"]
|
|
84
83
|
dev-pylint = [
|
|
85
84
|
"pylint == 3.3.7",
|
|
86
85
|
# For checking the noxfile, docs/ script, and tests
|
|
87
86
|
"frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]",
|
|
88
87
|
]
|
|
89
88
|
dev-pytest = [
|
|
90
|
-
"pytest == 8.
|
|
91
|
-
"frequenz-repo-config[extra-lint-examples] == 0.13.
|
|
89
|
+
"pytest == 8.4.1",
|
|
90
|
+
"frequenz-repo-config[extra-lint-examples] == 0.13.5",
|
|
92
91
|
"pytest-mock == 3.14.1",
|
|
93
|
-
"pytest-asyncio ==
|
|
94
|
-
"async-solipsism == 0.
|
|
92
|
+
"pytest-asyncio == 1.1.0",
|
|
93
|
+
"async-solipsism == 0.8",
|
|
95
94
|
]
|
|
96
95
|
dev = [
|
|
97
96
|
"frequenz-client-microgrid[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# License: MIT
|
|
2
|
+
# Copyright © 2023 Frequenz Energy-as-a-Service GmbH
|
|
3
|
+
|
|
4
|
+
"""Metadata that describes a microgrid."""
|
|
5
|
+
|
|
6
|
+
from dataclasses import dataclass
|
|
7
|
+
from zoneinfo import ZoneInfo
|
|
8
|
+
|
|
9
|
+
from frequenz.client.common.microgrid import MicrogridId
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@dataclass(frozen=True, kw_only=True)
|
|
13
|
+
class Location:
|
|
14
|
+
"""Metadata for the location of microgrid."""
|
|
15
|
+
|
|
16
|
+
latitude: float | None = None
|
|
17
|
+
"""The latitude of the microgrid in degree."""
|
|
18
|
+
|
|
19
|
+
longitude: float | None = None
|
|
20
|
+
"""The longitude of the microgrid in degree."""
|
|
21
|
+
|
|
22
|
+
timezone: ZoneInfo | None = None
|
|
23
|
+
"""The timezone of the microgrid."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@dataclass(frozen=True, kw_only=True)
|
|
27
|
+
class Metadata:
|
|
28
|
+
"""Metadata for the microgrid."""
|
|
29
|
+
|
|
30
|
+
microgrid_id: MicrogridId | None = None
|
|
31
|
+
"""The ID of the microgrid."""
|
|
32
|
+
|
|
33
|
+
location: Location | None = None
|
|
34
|
+
"""The location of the microgrid."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: frequenz-client-microgrid
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.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
|
|
@@ -27,10 +27,9 @@ Requires-Dist: frequenz-client-base<0.12.0,>=0.8.0
|
|
|
27
27
|
Requires-Dist: frequenz-client-common<0.4.0,>=0.3.2
|
|
28
28
|
Requires-Dist: grpcio<2,>=1.63.0
|
|
29
29
|
Requires-Dist: protobuf<7,>=5.26.1
|
|
30
|
-
Requires-Dist: timezonefinder<7,>=6.2.0
|
|
31
30
|
Requires-Dist: typing-extensions<5,>=4.13.0
|
|
32
31
|
Provides-Extra: dev-flake8
|
|
33
|
-
Requires-Dist: flake8==7.
|
|
32
|
+
Requires-Dist: flake8==7.3.0; extra == "dev-flake8"
|
|
34
33
|
Requires-Dist: flake8-docstrings==1.7.0; extra == "dev-flake8"
|
|
35
34
|
Requires-Dist: flake8-pyproject==1.2.3; extra == "dev-flake8"
|
|
36
35
|
Requires-Dist: pydoclint==0.6.6; extra == "dev-flake8"
|
|
@@ -40,33 +39,33 @@ Requires-Dist: black==25.1.0; extra == "dev-formatting"
|
|
|
40
39
|
Requires-Dist: isort==6.0.1; extra == "dev-formatting"
|
|
41
40
|
Provides-Extra: dev-mkdocs
|
|
42
41
|
Requires-Dist: black==25.1.0; extra == "dev-mkdocs"
|
|
43
|
-
Requires-Dist: Markdown==3.8; extra == "dev-mkdocs"
|
|
42
|
+
Requires-Dist: Markdown==3.8.2; extra == "dev-mkdocs"
|
|
44
43
|
Requires-Dist: mike==2.1.3; extra == "dev-mkdocs"
|
|
45
44
|
Requires-Dist: mkdocs-gen-files==0.5.0; extra == "dev-mkdocs"
|
|
46
45
|
Requires-Dist: mkdocs-literate-nav==0.6.2; extra == "dev-mkdocs"
|
|
47
46
|
Requires-Dist: mkdocs-macros-plugin==1.3.7; extra == "dev-mkdocs"
|
|
48
|
-
Requires-Dist: mkdocs-material==9.6.
|
|
49
|
-
Requires-Dist: mkdocstrings[python]==0.
|
|
50
|
-
Requires-Dist: mkdocstrings-python==1.16.
|
|
51
|
-
Requires-Dist: frequenz-repo-config[lib]==0.13.
|
|
47
|
+
Requires-Dist: mkdocs-material==9.6.16; extra == "dev-mkdocs"
|
|
48
|
+
Requires-Dist: mkdocstrings[python]==0.30.0; extra == "dev-mkdocs"
|
|
49
|
+
Requires-Dist: mkdocstrings-python==1.16.12; extra == "dev-mkdocs"
|
|
50
|
+
Requires-Dist: frequenz-repo-config[lib]==0.13.5; extra == "dev-mkdocs"
|
|
52
51
|
Provides-Extra: dev-mypy
|
|
53
|
-
Requires-Dist: mypy==1.
|
|
52
|
+
Requires-Dist: mypy==1.17.1; extra == "dev-mypy"
|
|
54
53
|
Requires-Dist: grpc-stubs==1.53.0.6; extra == "dev-mypy"
|
|
55
|
-
Requires-Dist: types-Markdown==3.8.0.
|
|
56
|
-
Requires-Dist: types-protobuf==6.30.2.
|
|
54
|
+
Requires-Dist: types-Markdown==3.8.0.20250708; extra == "dev-mypy"
|
|
55
|
+
Requires-Dist: types-protobuf==6.30.2.20250703; extra == "dev-mypy"
|
|
57
56
|
Requires-Dist: frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-mypy"
|
|
58
57
|
Provides-Extra: dev-noxfile
|
|
59
58
|
Requires-Dist: nox==2025.5.1; extra == "dev-noxfile"
|
|
60
|
-
Requires-Dist: frequenz-repo-config[lib]==0.13.
|
|
59
|
+
Requires-Dist: frequenz-repo-config[lib]==0.13.5; extra == "dev-noxfile"
|
|
61
60
|
Provides-Extra: dev-pylint
|
|
62
61
|
Requires-Dist: pylint==3.3.7; extra == "dev-pylint"
|
|
63
62
|
Requires-Dist: frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-pylint"
|
|
64
63
|
Provides-Extra: dev-pytest
|
|
65
|
-
Requires-Dist: pytest==8.
|
|
66
|
-
Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.13.
|
|
64
|
+
Requires-Dist: pytest==8.4.1; extra == "dev-pytest"
|
|
65
|
+
Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.13.5; extra == "dev-pytest"
|
|
67
66
|
Requires-Dist: pytest-mock==3.14.1; extra == "dev-pytest"
|
|
68
|
-
Requires-Dist: pytest-asyncio==
|
|
69
|
-
Requires-Dist: async-solipsism==0.
|
|
67
|
+
Requires-Dist: pytest-asyncio==1.1.0; extra == "dev-pytest"
|
|
68
|
+
Requires-Dist: async-solipsism==0.8; extra == "dev-pytest"
|
|
70
69
|
Provides-Extra: dev
|
|
71
70
|
Requires-Dist: frequenz-client-microgrid[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]; extra == "dev"
|
|
72
71
|
Dynamic: license-file
|
|
@@ -4,14 +4,13 @@ frequenz-client-base<0.12.0,>=0.8.0
|
|
|
4
4
|
frequenz-client-common<0.4.0,>=0.3.2
|
|
5
5
|
grpcio<2,>=1.63.0
|
|
6
6
|
protobuf<7,>=5.26.1
|
|
7
|
-
timezonefinder<7,>=6.2.0
|
|
8
7
|
typing-extensions<5,>=4.13.0
|
|
9
8
|
|
|
10
9
|
[dev]
|
|
11
10
|
frequenz-client-microgrid[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]
|
|
12
11
|
|
|
13
12
|
[dev-flake8]
|
|
14
|
-
flake8==7.
|
|
13
|
+
flake8==7.3.0
|
|
15
14
|
flake8-docstrings==1.7.0
|
|
16
15
|
flake8-pyproject==1.2.3
|
|
17
16
|
pydoclint==0.6.6
|
|
@@ -23,34 +22,34 @@ isort==6.0.1
|
|
|
23
22
|
|
|
24
23
|
[dev-mkdocs]
|
|
25
24
|
black==25.1.0
|
|
26
|
-
Markdown==3.8
|
|
25
|
+
Markdown==3.8.2
|
|
27
26
|
mike==2.1.3
|
|
28
27
|
mkdocs-gen-files==0.5.0
|
|
29
28
|
mkdocs-literate-nav==0.6.2
|
|
30
29
|
mkdocs-macros-plugin==1.3.7
|
|
31
|
-
mkdocs-material==9.6.
|
|
32
|
-
mkdocstrings[python]==0.
|
|
33
|
-
mkdocstrings-python==1.16.
|
|
34
|
-
frequenz-repo-config[lib]==0.13.
|
|
30
|
+
mkdocs-material==9.6.16
|
|
31
|
+
mkdocstrings[python]==0.30.0
|
|
32
|
+
mkdocstrings-python==1.16.12
|
|
33
|
+
frequenz-repo-config[lib]==0.13.5
|
|
35
34
|
|
|
36
35
|
[dev-mypy]
|
|
37
|
-
mypy==1.
|
|
36
|
+
mypy==1.17.1
|
|
38
37
|
grpc-stubs==1.53.0.6
|
|
39
|
-
types-Markdown==3.8.0.
|
|
40
|
-
types-protobuf==6.30.2.
|
|
38
|
+
types-Markdown==3.8.0.20250708
|
|
39
|
+
types-protobuf==6.30.2.20250703
|
|
41
40
|
frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]
|
|
42
41
|
|
|
43
42
|
[dev-noxfile]
|
|
44
43
|
nox==2025.5.1
|
|
45
|
-
frequenz-repo-config[lib]==0.13.
|
|
44
|
+
frequenz-repo-config[lib]==0.13.5
|
|
46
45
|
|
|
47
46
|
[dev-pylint]
|
|
48
47
|
pylint==3.3.7
|
|
49
48
|
frequenz-client-microgrid[dev-mkdocs,dev-noxfile,dev-pytest]
|
|
50
49
|
|
|
51
50
|
[dev-pytest]
|
|
52
|
-
pytest==8.
|
|
53
|
-
frequenz-repo-config[extra-lint-examples]==0.13.
|
|
51
|
+
pytest==8.4.1
|
|
52
|
+
frequenz-repo-config[extra-lint-examples]==0.13.5
|
|
54
53
|
pytest-mock==3.14.1
|
|
55
|
-
pytest-asyncio==
|
|
56
|
-
async-solipsism==0.
|
|
54
|
+
pytest-asyncio==1.1.0
|
|
55
|
+
async-solipsism==0.8
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Frequenz Microgrid API Client Release Notes
|
|
2
|
-
|
|
3
|
-
## Summary
|
|
4
|
-
|
|
5
|
-
This is a small release to allow for easier interoperability between different APIs.
|
|
6
|
-
|
|
7
|
-
## Upgrading
|
|
8
|
-
|
|
9
|
-
- Some minimum dependency versions are bumped, so you might need to update your dependencies as well.
|
|
10
|
-
- The IDs (`MicrogridId`, `ComponentId`, `SensorId`) are now imported from `frequenz-client-common`. Please add it to your dependencies if you haven't already, then you can replace your imports:
|
|
11
|
-
|
|
12
|
-
* `from frequenz.client.microgrid import MicrogridId` -> `from frequenz.client.common.microgrid import MicrogridId`
|
|
13
|
-
* `from frequenz.client.microgrid import ComponentId` -> `from frequenz.client.common.microgrid.components import ComponentId`
|
|
14
|
-
* `from frequenz.client.microgrid import SensorId` -> `from frequenz.client.common.microgrid.sensors import SensorId`
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# License: MIT
|
|
2
|
-
# Copyright © 2023 Frequenz Energy-as-a-Service GmbH
|
|
3
|
-
|
|
4
|
-
"""Metadata that describes a microgrid."""
|
|
5
|
-
|
|
6
|
-
from dataclasses import dataclass
|
|
7
|
-
from zoneinfo import ZoneInfo
|
|
8
|
-
|
|
9
|
-
from frequenz.client.common.microgrid import MicrogridId
|
|
10
|
-
from timezonefinder import TimezoneFinder
|
|
11
|
-
|
|
12
|
-
_timezone_finder = TimezoneFinder()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
@dataclass(frozen=True, kw_only=True)
|
|
16
|
-
class Location:
|
|
17
|
-
"""Metadata for the location of microgrid."""
|
|
18
|
-
|
|
19
|
-
latitude: float | None = None
|
|
20
|
-
"""The latitude of the microgrid in degree."""
|
|
21
|
-
|
|
22
|
-
longitude: float | None = None
|
|
23
|
-
"""The longitude of the microgrid in degree."""
|
|
24
|
-
|
|
25
|
-
timezone: ZoneInfo | None = None
|
|
26
|
-
"""The timezone of the microgrid.
|
|
27
|
-
|
|
28
|
-
If not passed during construction (or `None` is passed), and there is a `longitude`
|
|
29
|
-
and `latitude`, then the timezone wil be looked up in a database based on the
|
|
30
|
-
coordinates. This lookup could fail, in which case the timezone will still be
|
|
31
|
-
`None`.
|
|
32
|
-
"""
|
|
33
|
-
|
|
34
|
-
def __post_init__(self) -> None:
|
|
35
|
-
"""Initialize the timezone of the microgrid."""
|
|
36
|
-
if self.latitude is None or self.longitude is None or self.timezone is not None:
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
timezone = _timezone_finder.timezone_at(lat=self.latitude, lng=self.longitude)
|
|
40
|
-
if timezone:
|
|
41
|
-
# The dataclass is frozen, so it needs to use __setattr__ to set the timezone.
|
|
42
|
-
object.__setattr__(self, "timezone", ZoneInfo(key=timezone))
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
@dataclass(frozen=True, kw_only=True)
|
|
46
|
-
class Metadata:
|
|
47
|
-
"""Metadata for the microgrid."""
|
|
48
|
-
|
|
49
|
-
microgrid_id: MicrogridId | None = None
|
|
50
|
-
"""The ID of the microgrid."""
|
|
51
|
-
|
|
52
|
-
location: Location | None = None
|
|
53
|
-
"""The location of the microgrid."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|