frequenz-client-common 0.1.0__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/PKG-INFO +1 -1
- frequenz-client-common-0.2.0/RELEASE_NOTES.md +5 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/pyproject.toml +13 -13
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz/client/common/metric/__init__.py +22 -11
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz_client_common.egg-info/PKG-INFO +1 -1
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz_client_common.egg-info/requires.txt +13 -13
- frequenz-client-common-0.1.0/RELEASE_NOTES.md +0 -22
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/LICENSE +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/MANIFEST.in +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/README.md +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/setup.cfg +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz/client/common/__init__.py +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz/client/common/conftest.py +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz/client/common/microgrid/__init__.py +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz/client/common/microgrid/components/__init__.py +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz/client/common/pagination/__init__.py +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz/client/common/py.typed +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz_client_common.egg-info/SOURCES.txt +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz_client_common.egg-info/dependency_links.txt +0 -0
- {frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz_client_common.egg-info/top_level.txt +0 -0
|
@@ -27,7 +27,7 @@ classifiers = [
|
|
|
27
27
|
requires-python = ">= 3.11, < 4"
|
|
28
28
|
dependencies = [
|
|
29
29
|
"typing-extensions >= 4.5.0, < 5",
|
|
30
|
-
"frequenz-api-common >= 0.
|
|
30
|
+
"frequenz-api-common >= 0.6.0, < 7",
|
|
31
31
|
]
|
|
32
32
|
dynamic = ["version"]
|
|
33
33
|
|
|
@@ -43,26 +43,26 @@ dev-flake8 = [
|
|
|
43
43
|
"pydoclint == 0.4.1",
|
|
44
44
|
"pydocstyle == 6.3.0",
|
|
45
45
|
]
|
|
46
|
-
dev-formatting = ["black == 24.2
|
|
46
|
+
dev-formatting = ["black == 24.4.2", "isort == 5.13.2"]
|
|
47
47
|
dev-mkdocs = [
|
|
48
|
-
"black == 24.2
|
|
49
|
-
"Markdown==3.
|
|
48
|
+
"black == 24.4.2",
|
|
49
|
+
"Markdown==3.6",
|
|
50
50
|
"mike == 2.0.0",
|
|
51
51
|
"mkdocs-gen-files == 0.5.0",
|
|
52
52
|
"mkdocs-literate-nav == 0.6.1",
|
|
53
53
|
"mkdocs-macros-plugin == 1.0.5",
|
|
54
|
-
"mkdocs-material == 9.5.
|
|
55
|
-
"mkdocstrings[python] == 0.
|
|
54
|
+
"mkdocs-material == 9.5.20",
|
|
55
|
+
"mkdocstrings[python] == 0.25.0",
|
|
56
56
|
"frequenz-repo-config[lib] == 0.9.1",
|
|
57
57
|
]
|
|
58
58
|
dev-mypy = [
|
|
59
|
-
"mypy == 1.
|
|
60
|
-
"types-Markdown == 3.
|
|
59
|
+
"mypy == 1.10.0",
|
|
60
|
+
"types-Markdown == 3.6.0.20240316",
|
|
61
61
|
# For checking the noxfile, docs/ script, and tests
|
|
62
62
|
"frequenz-client-common[dev-mkdocs,dev-noxfile,dev-pytest]",
|
|
63
63
|
]
|
|
64
64
|
dev-noxfile = [
|
|
65
|
-
"nox ==
|
|
65
|
+
"nox == 2024.4.15",
|
|
66
66
|
"frequenz-repo-config[lib] == 0.9.1",
|
|
67
67
|
]
|
|
68
68
|
dev-pylint = [
|
|
@@ -71,11 +71,11 @@ dev-pylint = [
|
|
|
71
71
|
"frequenz-client-common[dev-mkdocs,dev-noxfile,dev-pytest]",
|
|
72
72
|
]
|
|
73
73
|
dev-pytest = [
|
|
74
|
-
"pytest == 8.
|
|
74
|
+
"pytest == 8.2.0",
|
|
75
75
|
"frequenz-repo-config[extra-lint-examples] == 0.9.1",
|
|
76
|
-
"pytest-mock == 3.
|
|
77
|
-
"pytest-asyncio == 0.23.
|
|
78
|
-
"async-solipsism == 0.
|
|
76
|
+
"pytest-mock == 3.14.0",
|
|
77
|
+
"pytest-asyncio == 0.23.6",
|
|
78
|
+
"async-solipsism == 0.6",
|
|
79
79
|
]
|
|
80
80
|
dev = [
|
|
81
81
|
"frequenz-client-common[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",
|
|
@@ -26,13 +26,16 @@ class Metric(Enum):
|
|
|
26
26
|
# General AC electricity metrics
|
|
27
27
|
AC_FREQUENCY = PBMetric.METRIC_AC_FREQUENCY
|
|
28
28
|
AC_VOLTAGE = PBMetric.METRIC_AC_VOLTAGE
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
AC_VOLTAGE_PHASE_1_N = PBMetric.METRIC_AC_VOLTAGE_PHASE_1_N
|
|
30
|
+
AC_VOLTAGE_PHASE_2_N = PBMetric.METRIC_AC_VOLTAGE_PHASE_2_N
|
|
31
|
+
AC_VOLTAGE_PHASE_3_N = PBMetric.METRIC_AC_VOLTAGE_PHASE_3_N
|
|
32
|
+
AC_VOLTAGE_PHASE_1_PHASE_2 = PBMetric.METRIC_AC_VOLTAGE_PHASE_1_PHASE_2
|
|
33
|
+
AC_VOLTAGE_PHASE_2_PHASE_3 = PBMetric.METRIC_AC_VOLTAGE_PHASE_2_PHASE_3
|
|
34
|
+
AC_VOLTAGE_PHASE_3_PHASE_1 = PBMetric.METRIC_AC_VOLTAGE_PHASE_3_PHASE_1
|
|
35
|
+
AC_CURRENT = PBMetric.METRIC_AC_CURRENT
|
|
36
|
+
AC_CURRENT_PHASE_1 = PBMetric.METRIC_AC_CURRENT_PHASE_1
|
|
37
|
+
AC_CURRENT_PHASE_2 = PBMetric.METRIC_AC_CURRENT_PHASE_2
|
|
38
|
+
AC_CURRENT_PHASE_3 = PBMetric.METRIC_AC_CURRENT_PHASE_3
|
|
36
39
|
|
|
37
40
|
# AC power metrics
|
|
38
41
|
AC_APPARENT_POWER = PBMetric.METRIC_AC_APPARENT_POWER
|
|
@@ -89,10 +92,18 @@ class Metric(Enum):
|
|
|
89
92
|
AC_REACTIVE_ENERGY_PHASE_3 = PBMetric.METRIC_AC_REACTIVE_ENERGY_PHASE_3
|
|
90
93
|
|
|
91
94
|
# AC harmonics
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
AC_TOTAL_HARMONIC_DISTORTION_CURRENT = (
|
|
96
|
+
PBMetric.METRIC_AC_TOTAL_HARMONIC_DISTORTION_CURRENT
|
|
97
|
+
)
|
|
98
|
+
AC_TOTAL_HARMONIC_DISTORTION_CURRENT_PHASE_1 = (
|
|
99
|
+
PBMetric.METRIC_AC_TOTAL_HARMONIC_DISTORTION_CURRENT_PHASE_1
|
|
100
|
+
)
|
|
101
|
+
AC_TOTAL_HARMONIC_DISTORTION_CURRENT_PHASE_2 = (
|
|
102
|
+
PBMetric.METRIC_AC_TOTAL_HARMONIC_DISTORTION_CURRENT_PHASE_2
|
|
103
|
+
)
|
|
104
|
+
AC_TOTAL_HARMONIC_DISTORTION_CURRENT_PHASE_3 = (
|
|
105
|
+
PBMetric.METRIC_AC_TOTAL_HARMONIC_DISTORTION_CURRENT_PHASE_3
|
|
106
|
+
)
|
|
96
107
|
|
|
97
108
|
# General BMS metrics
|
|
98
109
|
BATTERY_CAPACITY = PBMetric.METRIC_BATTERY_CAPACITY
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
typing-extensions<5,>=4.5.0
|
|
2
|
-
frequenz-api-common<
|
|
2
|
+
frequenz-api-common<7,>=0.6.0
|
|
3
3
|
|
|
4
4
|
[dev]
|
|
5
5
|
frequenz-client-common[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]
|
|
@@ -12,27 +12,27 @@ pydoclint==0.4.1
|
|
|
12
12
|
pydocstyle==6.3.0
|
|
13
13
|
|
|
14
14
|
[dev-formatting]
|
|
15
|
-
black==24.2
|
|
15
|
+
black==24.4.2
|
|
16
16
|
isort==5.13.2
|
|
17
17
|
|
|
18
18
|
[dev-mkdocs]
|
|
19
|
-
black==24.2
|
|
20
|
-
Markdown==3.
|
|
19
|
+
black==24.4.2
|
|
20
|
+
Markdown==3.6
|
|
21
21
|
mike==2.0.0
|
|
22
22
|
mkdocs-gen-files==0.5.0
|
|
23
23
|
mkdocs-literate-nav==0.6.1
|
|
24
24
|
mkdocs-macros-plugin==1.0.5
|
|
25
|
-
mkdocs-material==9.5.
|
|
26
|
-
mkdocstrings[python]==0.
|
|
25
|
+
mkdocs-material==9.5.20
|
|
26
|
+
mkdocstrings[python]==0.25.0
|
|
27
27
|
frequenz-repo-config[lib]==0.9.1
|
|
28
28
|
|
|
29
29
|
[dev-mypy]
|
|
30
|
-
mypy==1.
|
|
31
|
-
types-Markdown==3.
|
|
30
|
+
mypy==1.10.0
|
|
31
|
+
types-Markdown==3.6.0.20240316
|
|
32
32
|
frequenz-client-common[dev-mkdocs,dev-noxfile,dev-pytest]
|
|
33
33
|
|
|
34
34
|
[dev-noxfile]
|
|
35
|
-
nox==
|
|
35
|
+
nox==2024.4.15
|
|
36
36
|
frequenz-repo-config[lib]==0.9.1
|
|
37
37
|
|
|
38
38
|
[dev-pylint]
|
|
@@ -40,8 +40,8 @@ pylint==3.1.0
|
|
|
40
40
|
frequenz-client-common[dev-mkdocs,dev-noxfile,dev-pytest]
|
|
41
41
|
|
|
42
42
|
[dev-pytest]
|
|
43
|
-
pytest==8.
|
|
43
|
+
pytest==8.2.0
|
|
44
44
|
frequenz-repo-config[extra-lint-examples]==0.9.1
|
|
45
|
-
pytest-mock==3.
|
|
46
|
-
pytest-asyncio==0.23.
|
|
47
|
-
async-solipsism==0.
|
|
45
|
+
pytest-mock==3.14.0
|
|
46
|
+
pytest-asyncio==0.23.6
|
|
47
|
+
async-solipsism==0.6
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Frequenz Client Common Library Release Notes
|
|
2
|
-
|
|
3
|
-
## Summary
|
|
4
|
-
|
|
5
|
-
This is the initial release of the Frequenz Client Common Library.
|
|
6
|
-
It provides wrappers around the types from Frequenz's common API protobuf definitions.
|
|
7
|
-
This version contains types to support pagination in gRPC requests
|
|
8
|
-
and enum types for components and metrics to be used in a microgrid.
|
|
9
|
-
|
|
10
|
-
<!-- Here goes a general summary of what this release is about -->
|
|
11
|
-
|
|
12
|
-
## Upgrading
|
|
13
|
-
|
|
14
|
-
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
|
|
15
|
-
|
|
16
|
-
## New Features
|
|
17
|
-
|
|
18
|
-
<!-- Here goes the main new features and examples or instructions on how to use them -->
|
|
19
|
-
|
|
20
|
-
## Bug Fixes
|
|
21
|
-
|
|
22
|
-
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz/client/common/__init__.py
RENAMED
|
File without changes
|
{frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz/client/common/conftest.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{frequenz-client-common-0.1.0 → frequenz-client-common-0.2.0}/src/frequenz/client/common/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|