frequenz-client-base 0.1.0__tar.gz → 0.2.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-base-0.1.0/src/frequenz_client_base.egg-info → frequenz-client-base-0.2.1}/PKG-INFO +2 -2
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/README.md +1 -1
- frequenz-client-base-0.2.1/RELEASE_NOTES.md +6 -0
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/pyproject.toml +27 -26
- frequenz-client-base-0.2.1/src/frequenz/client/base/conversion.py +70 -0
- frequenz-client-base-0.1.0/src/frequenz/client/base/retry_strategy.py → frequenz-client-base-0.2.1/src/frequenz/client/base/retry.py +11 -12
- frequenz-client-base-0.1.0/src/frequenz/client/base/grpc_streaming_helper.py → frequenz-client-base-0.2.1/src/frequenz/client/base/streaming.py +21 -19
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1/src/frequenz_client_base.egg-info}/PKG-INFO +2 -2
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/src/frequenz_client_base.egg-info/SOURCES.txt +3 -2
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/src/frequenz_client_base.egg-info/requires.txt +24 -22
- frequenz-client-base-0.1.0/RELEASE_NOTES.md +0 -17
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/LICENSE +0 -0
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/MANIFEST.in +0 -0
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/setup.cfg +0 -0
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/src/frequenz/client/base/__init__.py +0 -0
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/src/frequenz/client/base/conftest.py +0 -0
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/src/frequenz/client/base/py.typed +0 -0
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/src/frequenz_client_base.egg-info/dependency_links.txt +0 -0
- {frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/src/frequenz_client_base.egg-info/top_level.txt +0 -0
{frequenz-client-base-0.1.0/src/frequenz_client_base.egg-info → frequenz-client-base-0.2.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: frequenz-client-base
|
|
3
|
-
Version: 0.1
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Utilities for writing Frequenz API clients
|
|
5
5
|
Author-email: Frequenz Energy-as-a-Service GmbH <floss@frequenz.com>
|
|
6
6
|
License: MIT
|
|
@@ -29,7 +29,7 @@ Provides-Extra: dev-pytest
|
|
|
29
29
|
Provides-Extra: dev
|
|
30
30
|
License-File: LICENSE
|
|
31
31
|
|
|
32
|
-
#
|
|
32
|
+
# Frequenz Client Base Library
|
|
33
33
|
|
|
34
34
|
[](https://github.com/frequenz-floss/frequenz-client-base-python/actions/workflows/ci.yaml)
|
|
35
35
|
[](https://pypi.org/project/frequenz-client-base/)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Frequenz Client Base Library
|
|
2
2
|
|
|
3
3
|
[](https://github.com/frequenz-floss/frequenz-client-base-python/actions/workflows/ci.yaml)
|
|
4
4
|
[](https://pypi.org/project/frequenz-client-base/)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Frequenz Client Base Library Release Notes
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
|
|
5
|
+
* The generated docs now show the type of symbol in the table of contents and have cross-linking to the protobuf and channels documentation.
|
|
6
|
+
* The minimum supported version of `protobuf` was downgraded to 4.21.6, so downstream projects having this older version as minimum requirements can still use this release.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
requires = [
|
|
6
6
|
"setuptools == 68.1.0",
|
|
7
7
|
"setuptools_scm[toml] == 7.1.0",
|
|
8
|
-
"frequenz-repo-config[lib] == 0.
|
|
8
|
+
"frequenz-repo-config[lib] == 0.9.1",
|
|
9
9
|
]
|
|
10
10
|
build-backend = "setuptools.build_meta"
|
|
11
11
|
|
|
@@ -28,10 +28,10 @@ classifiers = [
|
|
|
28
28
|
requires-python = ">= 3.11, < 4"
|
|
29
29
|
# TODO(cookiecutter): Remove and add more dependencies if appropriate
|
|
30
30
|
dependencies = [
|
|
31
|
-
"
|
|
31
|
+
"frequenz-channels >= v1.0.0-beta.2, < 2",
|
|
32
32
|
"grpcio >= 1.54.2, < 2",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
33
|
+
"protobuf >= 4.21.6, < 5",
|
|
34
|
+
"typing-extensions >= 4.5.0, < 5",
|
|
35
35
|
]
|
|
36
36
|
dynamic = ["version"]
|
|
37
37
|
|
|
@@ -42,46 +42,45 @@ email = "floss@frequenz.com"
|
|
|
42
42
|
# TODO(cookiecutter): Remove and add more optional dependencies if appropriate
|
|
43
43
|
[project.optional-dependencies]
|
|
44
44
|
dev-flake8 = [
|
|
45
|
-
"flake8 ==
|
|
45
|
+
"flake8 == 7.0.0",
|
|
46
46
|
"flake8-docstrings == 1.7.0",
|
|
47
47
|
"flake8-pyproject == 1.2.3", # For reading the flake8 config from pyproject.toml
|
|
48
|
-
"pydoclint == 0.
|
|
48
|
+
"pydoclint == 0.4.1",
|
|
49
49
|
"pydocstyle == 6.3.0",
|
|
50
50
|
]
|
|
51
|
-
dev-formatting = ["black ==
|
|
51
|
+
dev-formatting = ["black == 24.2.0", "isort == 5.13.2"]
|
|
52
52
|
dev-mkdocs = [
|
|
53
|
-
"black ==
|
|
54
|
-
"Markdown==3.
|
|
53
|
+
"black == 24.2.0",
|
|
54
|
+
"Markdown==3.5.2",
|
|
55
55
|
"mike == 2.0.0",
|
|
56
56
|
"mkdocs-gen-files == 0.5.0",
|
|
57
57
|
"mkdocs-literate-nav == 0.6.1",
|
|
58
|
-
"mkdocs-macros-plugin == 1.0.
|
|
59
|
-
"mkdocs-material == 9.
|
|
60
|
-
"mkdocstrings[python] == 0.
|
|
61
|
-
"frequenz-repo-config[lib] == 0.
|
|
58
|
+
"mkdocs-macros-plugin == 1.0.5",
|
|
59
|
+
"mkdocs-material == 9.5.12",
|
|
60
|
+
"mkdocstrings[python] == 0.24.1",
|
|
61
|
+
"frequenz-repo-config[lib] == 0.9.1",
|
|
62
62
|
]
|
|
63
63
|
dev-mypy = [
|
|
64
|
-
"mypy == 1.
|
|
65
|
-
"types-Markdown == 3.
|
|
66
|
-
"
|
|
64
|
+
"mypy == 1.8.0",
|
|
65
|
+
"types-Markdown == 3.5.0.20240129",
|
|
66
|
+
"types-protobuf == 4.24.0.20240129",
|
|
67
|
+
"grpc-stubs == 1.53.0.5", # This dependency introduces breaking changes in patch releases
|
|
67
68
|
# For checking the noxfile, docs/ script, and tests
|
|
68
69
|
"frequenz-client-base[dev-mkdocs,dev-noxfile,dev-pytest]",
|
|
69
70
|
]
|
|
70
|
-
dev-noxfile = [
|
|
71
|
-
"nox == 2023.4.22",
|
|
72
|
-
"frequenz-repo-config[lib] == 0.7.5",
|
|
73
|
-
]
|
|
71
|
+
dev-noxfile = ["nox == 2023.4.22", "frequenz-repo-config[lib] == 0.9.1"]
|
|
74
72
|
dev-pylint = [
|
|
75
|
-
"pylint == 3.0
|
|
73
|
+
"pylint == 3.1.0",
|
|
76
74
|
# For checking the noxfile, docs/ script, and tests
|
|
77
75
|
"frequenz-client-base[dev-mkdocs,dev-noxfile,dev-pytest]",
|
|
78
76
|
]
|
|
79
77
|
dev-pytest = [
|
|
80
|
-
"pytest ==
|
|
81
|
-
"frequenz-repo-config[extra-lint-examples] == 0.
|
|
82
|
-
"pytest-mock == 3.
|
|
83
|
-
"pytest-asyncio == 0.
|
|
78
|
+
"pytest == 8.0.2",
|
|
79
|
+
"frequenz-repo-config[extra-lint-examples] == 0.9.1",
|
|
80
|
+
"pytest-mock == 3.12.0",
|
|
81
|
+
"pytest-asyncio == 0.23.5",
|
|
84
82
|
"async-solipsism == 0.5",
|
|
83
|
+
"hypothesis == 6.98.15",
|
|
85
84
|
]
|
|
86
85
|
dev = [
|
|
87
86
|
"frequenz-client-base[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",
|
|
@@ -137,6 +136,8 @@ disable = [
|
|
|
137
136
|
# it is a type-check, for which we already have mypy.
|
|
138
137
|
"unsubscriptable-object",
|
|
139
138
|
# Checked by flake8
|
|
139
|
+
"redefined-outer-name",
|
|
140
|
+
"unused-import",
|
|
140
141
|
"line-too-long",
|
|
141
142
|
"unused-variable",
|
|
142
143
|
"unnecessary-lambda-assignment",
|
|
@@ -160,7 +161,7 @@ packages = ["frequenz.client.base"]
|
|
|
160
161
|
strict = true
|
|
161
162
|
|
|
162
163
|
[[tool.mypy.overrides]]
|
|
163
|
-
module = ["mkdocs_macros.*"
|
|
164
|
+
module = ["mkdocs_macros.*"]
|
|
164
165
|
ignore_missing_imports = true
|
|
165
166
|
|
|
166
167
|
[tool.setuptools_scm]
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# License: MIT
|
|
2
|
+
# Copyright © 2024 Frequenz Energy-as-a-Service GmbH
|
|
3
|
+
|
|
4
|
+
"""Helper functions to convert to/from common python types."""
|
|
5
|
+
|
|
6
|
+
from datetime import datetime, timezone
|
|
7
|
+
from typing import overload
|
|
8
|
+
|
|
9
|
+
# pylint: disable=no-name-in-module
|
|
10
|
+
from google.protobuf.timestamp_pb2 import Timestamp
|
|
11
|
+
|
|
12
|
+
# pylint: enable=no-name-in-module
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@overload
|
|
16
|
+
def to_timestamp(dt: datetime) -> Timestamp:
|
|
17
|
+
"""Convert a datetime to a protobuf Timestamp.
|
|
18
|
+
|
|
19
|
+
Args:
|
|
20
|
+
dt: datetime object to convert
|
|
21
|
+
|
|
22
|
+
Returns:
|
|
23
|
+
datetime converted to Timestamp
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@overload
|
|
28
|
+
def to_timestamp(dt: None) -> None:
|
|
29
|
+
"""Overload to handle None values.
|
|
30
|
+
|
|
31
|
+
Args:
|
|
32
|
+
dt: None
|
|
33
|
+
|
|
34
|
+
Returns:
|
|
35
|
+
None
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def to_timestamp(dt: datetime | None) -> Timestamp | None:
|
|
40
|
+
"""Convert a datetime to a protobuf Timestamp.
|
|
41
|
+
|
|
42
|
+
Returns None if dt is None.
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
dt: datetime object to convert
|
|
46
|
+
|
|
47
|
+
Returns:
|
|
48
|
+
datetime converted to Timestamp
|
|
49
|
+
"""
|
|
50
|
+
if dt is None:
|
|
51
|
+
return None
|
|
52
|
+
|
|
53
|
+
ts = Timestamp()
|
|
54
|
+
ts.FromDatetime(dt)
|
|
55
|
+
return ts
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def to_datetime(ts: Timestamp, tz: timezone = timezone.utc) -> datetime:
|
|
59
|
+
"""Convert a protobuf Timestamp to a datetime.
|
|
60
|
+
|
|
61
|
+
Args:
|
|
62
|
+
ts: Timestamp object to convert
|
|
63
|
+
tz: Timezone to use for the datetime
|
|
64
|
+
|
|
65
|
+
Returns:
|
|
66
|
+
Timestamp converted to datetime
|
|
67
|
+
"""
|
|
68
|
+
# Add microseconds and add nanoseconds converted to microseconds
|
|
69
|
+
microseconds = int(ts.nanos / 1000)
|
|
70
|
+
return datetime.fromtimestamp(ts.seconds + microseconds * 1e-6, tz=tz)
|
|
@@ -3,21 +3,20 @@
|
|
|
3
3
|
|
|
4
4
|
"""Implementations for retry strategies."""
|
|
5
5
|
|
|
6
|
-
from __future__ import annotations
|
|
7
|
-
|
|
8
6
|
import random
|
|
9
7
|
from abc import ABC, abstractmethod
|
|
10
8
|
from collections.abc import Iterator
|
|
11
9
|
from copy import deepcopy
|
|
10
|
+
from typing import Self
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
DEFAULT_RETRY_INTERVAL = 3.0
|
|
14
13
|
"""Default retry interval, in seconds."""
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
DEFAULT_RETRY_JITTER = 1.0
|
|
17
16
|
"""Default retry jitter, in seconds."""
|
|
18
17
|
|
|
19
18
|
|
|
20
|
-
class
|
|
19
|
+
class Strategy(ABC):
|
|
21
20
|
"""Interface for implementing retry strategies."""
|
|
22
21
|
|
|
23
22
|
_limit: int | None
|
|
@@ -52,7 +51,7 @@ class RetryStrategy(ABC):
|
|
|
52
51
|
"""
|
|
53
52
|
self._count = 0
|
|
54
53
|
|
|
55
|
-
def copy(self) ->
|
|
54
|
+
def copy(self) -> Self:
|
|
56
55
|
"""Create a new instance of `self`.
|
|
57
56
|
|
|
58
57
|
Returns:
|
|
@@ -75,13 +74,13 @@ class RetryStrategy(ABC):
|
|
|
75
74
|
yield interval
|
|
76
75
|
|
|
77
76
|
|
|
78
|
-
class LinearBackoff(
|
|
77
|
+
class LinearBackoff(Strategy):
|
|
79
78
|
"""Provides methods for calculating the interval between retries."""
|
|
80
79
|
|
|
81
80
|
def __init__(
|
|
82
81
|
self,
|
|
83
|
-
interval: float =
|
|
84
|
-
jitter: float =
|
|
82
|
+
interval: float = DEFAULT_RETRY_INTERVAL,
|
|
83
|
+
jitter: float = DEFAULT_RETRY_JITTER,
|
|
85
84
|
limit: int | None = None,
|
|
86
85
|
) -> None:
|
|
87
86
|
"""Create a `LinearBackoff` instance.
|
|
@@ -113,10 +112,10 @@ class LinearBackoff(RetryStrategy):
|
|
|
113
112
|
return self._interval + random.uniform(0.0, self._jitter)
|
|
114
113
|
|
|
115
114
|
|
|
116
|
-
class ExponentialBackoff(
|
|
115
|
+
class ExponentialBackoff(Strategy):
|
|
117
116
|
"""Provides methods for calculating the exponential interval between retries."""
|
|
118
117
|
|
|
119
|
-
DEFAULT_INTERVAL =
|
|
118
|
+
DEFAULT_INTERVAL = DEFAULT_RETRY_INTERVAL
|
|
120
119
|
"""Default retry interval, in seconds."""
|
|
121
120
|
|
|
122
121
|
DEFAULT_MAX_INTERVAL = 60.0
|
|
@@ -131,7 +130,7 @@ class ExponentialBackoff(RetryStrategy):
|
|
|
131
130
|
initial_interval: float = DEFAULT_INTERVAL,
|
|
132
131
|
max_interval: float = DEFAULT_MAX_INTERVAL,
|
|
133
132
|
multiplier: float = DEFAULT_MULTIPLIER,
|
|
134
|
-
jitter: float =
|
|
133
|
+
jitter: float = DEFAULT_RETRY_JITTER,
|
|
135
134
|
limit: int | None = None,
|
|
136
135
|
) -> None:
|
|
137
136
|
"""Create a `ExponentialBackoff` instance.
|
|
@@ -5,31 +5,33 @@
|
|
|
5
5
|
|
|
6
6
|
import asyncio
|
|
7
7
|
import logging
|
|
8
|
-
import
|
|
8
|
+
from typing import Any, Callable, Generic, TypeVar
|
|
9
9
|
|
|
10
|
-
import grpc
|
|
11
|
-
from grpc.aio import UnaryStreamCall # type: ignore[import]
|
|
10
|
+
import grpc.aio
|
|
12
11
|
|
|
13
12
|
from frequenz import channels
|
|
14
13
|
|
|
15
|
-
from . import
|
|
14
|
+
from . import retry
|
|
16
15
|
|
|
17
16
|
_logger = logging.getLogger(__name__)
|
|
18
17
|
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
InputT = TypeVar("InputT")
|
|
20
|
+
"""The input type of the stream."""
|
|
22
21
|
|
|
22
|
+
OutputT = TypeVar("OutputT")
|
|
23
|
+
"""The output type of the stream."""
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
|
|
26
|
+
class GrpcStreamBroadcaster(Generic[InputT, OutputT]):
|
|
25
27
|
"""Helper class to handle grpc streaming methods."""
|
|
26
28
|
|
|
27
29
|
def __init__(
|
|
28
30
|
self,
|
|
29
31
|
stream_name: str,
|
|
30
|
-
stream_method:
|
|
31
|
-
transform:
|
|
32
|
-
|
|
32
|
+
stream_method: Callable[[], grpc.aio.UnaryStreamCall[Any, InputT]],
|
|
33
|
+
transform: Callable[[InputT], OutputT],
|
|
34
|
+
retry_strategy: retry.Strategy | None = None,
|
|
33
35
|
):
|
|
34
36
|
"""Initialize the streaming helper.
|
|
35
37
|
|
|
@@ -38,22 +40,22 @@ class GrpcStreamingHelper(typing.Generic[_InputT, _OutputT]):
|
|
|
38
40
|
stream_method: A function that returns the grpc stream. This function is
|
|
39
41
|
called everytime the connection is lost and we want to retry.
|
|
40
42
|
transform: A function to transform the input type to the output type.
|
|
41
|
-
|
|
43
|
+
retry_strategy: The retry strategy to use, when the connection is lost. Defaults
|
|
42
44
|
to retries every 3 seconds, with a jitter of 1 second, indefinitely.
|
|
43
45
|
"""
|
|
44
46
|
self._stream_name = stream_name
|
|
45
47
|
self._stream_method = stream_method
|
|
46
48
|
self._transform = transform
|
|
47
|
-
self.
|
|
48
|
-
|
|
49
|
+
self._retry_strategy = (
|
|
50
|
+
retry.LinearBackoff() if retry_strategy is None else retry_strategy.copy()
|
|
49
51
|
)
|
|
50
52
|
|
|
51
|
-
self._channel: channels.Broadcast[
|
|
52
|
-
f"
|
|
53
|
+
self._channel: channels.Broadcast[OutputT] = channels.Broadcast(
|
|
54
|
+
f"GrpcStreamBroadcaster-{stream_name}"
|
|
53
55
|
)
|
|
54
56
|
self._task = asyncio.create_task(self._run())
|
|
55
57
|
|
|
56
|
-
def new_receiver(self, maxsize: int = 50) -> channels.Receiver[
|
|
58
|
+
def new_receiver(self, maxsize: int = 50) -> channels.Receiver[OutputT]:
|
|
57
59
|
"""Create a new receiver for the stream.
|
|
58
60
|
|
|
59
61
|
Args:
|
|
@@ -90,11 +92,11 @@ class GrpcStreamingHelper(typing.Generic[_InputT, _OutputT]):
|
|
|
90
92
|
_logger.exception(
|
|
91
93
|
"Error in grpc streaming method: %s", self._stream_name
|
|
92
94
|
)
|
|
93
|
-
if interval := self.
|
|
95
|
+
if interval := self._retry_strategy.next_interval():
|
|
94
96
|
_logger.warning(
|
|
95
97
|
"`%s`, connection ended, retrying %s in %0.3f seconds.",
|
|
96
98
|
self._stream_name,
|
|
97
|
-
self.
|
|
99
|
+
self._retry_strategy.get_progress(),
|
|
98
100
|
interval,
|
|
99
101
|
)
|
|
100
102
|
await asyncio.sleep(interval)
|
|
@@ -102,7 +104,7 @@ class GrpcStreamingHelper(typing.Generic[_InputT, _OutputT]):
|
|
|
102
104
|
_logger.warning(
|
|
103
105
|
"`%s`, connection ended, retry limit exceeded %s.",
|
|
104
106
|
self._stream_name,
|
|
105
|
-
self.
|
|
107
|
+
self._retry_strategy.get_progress(),
|
|
106
108
|
)
|
|
107
109
|
await self._channel.close()
|
|
108
110
|
break
|
{frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1/src/frequenz_client_base.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: frequenz-client-base
|
|
3
|
-
Version: 0.1
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Utilities for writing Frequenz API clients
|
|
5
5
|
Author-email: Frequenz Energy-as-a-Service GmbH <floss@frequenz.com>
|
|
6
6
|
License: MIT
|
|
@@ -29,7 +29,7 @@ Provides-Extra: dev-pytest
|
|
|
29
29
|
Provides-Extra: dev
|
|
30
30
|
License-File: LICENSE
|
|
31
31
|
|
|
32
|
-
#
|
|
32
|
+
# Frequenz Client Base Library
|
|
33
33
|
|
|
34
34
|
[](https://github.com/frequenz-floss/frequenz-client-base-python/actions/workflows/ci.yaml)
|
|
35
35
|
[](https://pypi.org/project/frequenz-client-base/)
|
|
@@ -5,9 +5,10 @@ RELEASE_NOTES.md
|
|
|
5
5
|
pyproject.toml
|
|
6
6
|
src/frequenz/client/base/__init__.py
|
|
7
7
|
src/frequenz/client/base/conftest.py
|
|
8
|
-
src/frequenz/client/base/
|
|
8
|
+
src/frequenz/client/base/conversion.py
|
|
9
9
|
src/frequenz/client/base/py.typed
|
|
10
|
-
src/frequenz/client/base/
|
|
10
|
+
src/frequenz/client/base/retry.py
|
|
11
|
+
src/frequenz/client/base/streaming.py
|
|
11
12
|
src/frequenz_client_base.egg-info/PKG-INFO
|
|
12
13
|
src/frequenz_client_base.egg-info/SOURCES.txt
|
|
13
14
|
src/frequenz_client_base.egg-info/dependency_links.txt
|
|
@@ -1,50 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
frequenz-channels<2,>=v1.0.0-beta.2
|
|
2
2
|
grpcio<2,>=1.54.2
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
protobuf<5,>=4.21.6
|
|
4
|
+
typing-extensions<5,>=4.5.0
|
|
5
5
|
|
|
6
6
|
[dev]
|
|
7
7
|
frequenz-client-base[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]
|
|
8
8
|
|
|
9
9
|
[dev-flake8]
|
|
10
|
-
flake8==
|
|
10
|
+
flake8==7.0.0
|
|
11
11
|
flake8-docstrings==1.7.0
|
|
12
12
|
flake8-pyproject==1.2.3
|
|
13
|
-
pydoclint==0.
|
|
13
|
+
pydoclint==0.4.1
|
|
14
14
|
pydocstyle==6.3.0
|
|
15
15
|
|
|
16
16
|
[dev-formatting]
|
|
17
|
-
black==
|
|
18
|
-
isort==5.
|
|
17
|
+
black==24.2.0
|
|
18
|
+
isort==5.13.2
|
|
19
19
|
|
|
20
20
|
[dev-mkdocs]
|
|
21
|
-
black==
|
|
22
|
-
Markdown==3.
|
|
21
|
+
black==24.2.0
|
|
22
|
+
Markdown==3.5.2
|
|
23
23
|
mike==2.0.0
|
|
24
24
|
mkdocs-gen-files==0.5.0
|
|
25
25
|
mkdocs-literate-nav==0.6.1
|
|
26
|
-
mkdocs-macros-plugin==1.0.
|
|
27
|
-
mkdocs-material==9.
|
|
28
|
-
mkdocstrings[python]==0.
|
|
29
|
-
frequenz-repo-config[lib]==0.
|
|
26
|
+
mkdocs-macros-plugin==1.0.5
|
|
27
|
+
mkdocs-material==9.5.12
|
|
28
|
+
mkdocstrings[python]==0.24.1
|
|
29
|
+
frequenz-repo-config[lib]==0.9.1
|
|
30
30
|
|
|
31
31
|
[dev-mypy]
|
|
32
|
-
mypy==1.
|
|
33
|
-
types-Markdown==3.
|
|
34
|
-
|
|
32
|
+
mypy==1.8.0
|
|
33
|
+
types-Markdown==3.5.0.20240129
|
|
34
|
+
types-protobuf==4.24.0.20240129
|
|
35
|
+
grpc-stubs==1.53.0.5
|
|
35
36
|
frequenz-client-base[dev-mkdocs,dev-noxfile,dev-pytest]
|
|
36
37
|
|
|
37
38
|
[dev-noxfile]
|
|
38
39
|
nox==2023.4.22
|
|
39
|
-
frequenz-repo-config[lib]==0.
|
|
40
|
+
frequenz-repo-config[lib]==0.9.1
|
|
40
41
|
|
|
41
42
|
[dev-pylint]
|
|
42
|
-
pylint==3.0
|
|
43
|
+
pylint==3.1.0
|
|
43
44
|
frequenz-client-base[dev-mkdocs,dev-noxfile,dev-pytest]
|
|
44
45
|
|
|
45
46
|
[dev-pytest]
|
|
46
|
-
pytest==
|
|
47
|
-
frequenz-repo-config[extra-lint-examples]==0.
|
|
48
|
-
pytest-mock==3.
|
|
49
|
-
pytest-asyncio==0.
|
|
47
|
+
pytest==8.0.2
|
|
48
|
+
frequenz-repo-config[extra-lint-examples]==0.9.1
|
|
49
|
+
pytest-mock==3.12.0
|
|
50
|
+
pytest-asyncio==0.23.5
|
|
50
51
|
async-solipsism==0.5
|
|
52
|
+
hypothesis==6.98.15
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Freqenz Client Base Library Release Notes
|
|
2
|
-
|
|
3
|
-
## Summary
|
|
4
|
-
|
|
5
|
-
First release of the Freqenz Client Base Library, that exposes a retry strategy implementations and a generic grpc streaming helper.
|
|
6
|
-
|
|
7
|
-
## Upgrading
|
|
8
|
-
|
|
9
|
-
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
|
|
10
|
-
|
|
11
|
-
## New Features
|
|
12
|
-
|
|
13
|
-
- Imports retry strategies and the generic grpc streaming helper from the SDK.
|
|
14
|
-
|
|
15
|
-
## Bug Fixes
|
|
16
|
-
|
|
17
|
-
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/src/frequenz/client/base/__init__.py
RENAMED
|
File without changes
|
{frequenz-client-base-0.1.0 → frequenz-client-base-0.2.1}/src/frequenz/client/base/conftest.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|