flwr-nightly 1.16.0.dev20250308__py3-none-any.whl → 1.16.0.dev20250309__py3-none-any.whl
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.
- flwr/common/event_log_plugin/__init__.py +0 -4
- flwr/common/event_log_plugin/event_log_plugin.py +5 -32
- {flwr_nightly-1.16.0.dev20250308.dist-info → flwr_nightly-1.16.0.dev20250309.dist-info}/METADATA +1 -1
- {flwr_nightly-1.16.0.dev20250308.dist-info → flwr_nightly-1.16.0.dev20250309.dist-info}/RECORD +7 -7
- {flwr_nightly-1.16.0.dev20250308.dist-info → flwr_nightly-1.16.0.dev20250309.dist-info}/LICENSE +0 -0
- {flwr_nightly-1.16.0.dev20250308.dist-info → flwr_nightly-1.16.0.dev20250309.dist-info}/WHEEL +0 -0
- {flwr_nightly-1.16.0.dev20250308.dist-info → flwr_nightly-1.16.0.dev20250309.dist-info}/entry_points.txt +0 -0
@@ -15,12 +15,8 @@
|
|
15
15
|
"""Event log plugin components."""
|
16
16
|
|
17
17
|
|
18
|
-
from .event_log_plugin import EventLogRequest as EventLogRequest
|
19
|
-
from .event_log_plugin import EventLogResponse as EventLogResponse
|
20
18
|
from .event_log_plugin import EventLogWriterPlugin as EventLogWriterPlugin
|
21
19
|
|
22
20
|
__all__ = [
|
23
|
-
"EventLogRequest",
|
24
|
-
"EventLogResponse",
|
25
21
|
"EventLogWriterPlugin",
|
26
22
|
]
|
@@ -16,39 +16,12 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
from abc import ABC, abstractmethod
|
19
|
-
from typing import Union
|
19
|
+
from typing import Optional, Union
|
20
20
|
|
21
21
|
import grpc
|
22
|
+
from google.protobuf.message import Message as GrpcMessage
|
22
23
|
|
23
24
|
from flwr.common.typing import LogEntry, UserInfo
|
24
|
-
from flwr.proto.exec_pb2 import ( # pylint: disable=E0611
|
25
|
-
GetLoginDetailsRequest,
|
26
|
-
GetLoginDetailsResponse,
|
27
|
-
ListRunsRequest,
|
28
|
-
ListRunsResponse,
|
29
|
-
StartRunRequest,
|
30
|
-
StartRunResponse,
|
31
|
-
StopRunRequest,
|
32
|
-
StopRunResponse,
|
33
|
-
StreamLogsRequest,
|
34
|
-
StreamLogsResponse,
|
35
|
-
)
|
36
|
-
|
37
|
-
# Type variables for request and response messages
|
38
|
-
EventLogRequest = Union[
|
39
|
-
StartRunRequest,
|
40
|
-
ListRunsRequest,
|
41
|
-
StreamLogsRequest,
|
42
|
-
StopRunRequest,
|
43
|
-
GetLoginDetailsRequest,
|
44
|
-
]
|
45
|
-
EventLogResponse = Union[
|
46
|
-
StartRunResponse,
|
47
|
-
ListRunsResponse,
|
48
|
-
StreamLogsResponse,
|
49
|
-
StopRunResponse,
|
50
|
-
GetLoginDetailsResponse,
|
51
|
-
]
|
52
25
|
|
53
26
|
|
54
27
|
class EventLogWriterPlugin(ABC):
|
@@ -61,7 +34,7 @@ class EventLogWriterPlugin(ABC):
|
|
61
34
|
@abstractmethod
|
62
35
|
def compose_log_before_event( # pylint: disable=too-many-arguments
|
63
36
|
self,
|
64
|
-
request:
|
37
|
+
request: GrpcMessage,
|
65
38
|
context: grpc.ServicerContext,
|
66
39
|
user_info: UserInfo,
|
67
40
|
method_name: str,
|
@@ -71,11 +44,11 @@ class EventLogWriterPlugin(ABC):
|
|
71
44
|
@abstractmethod
|
72
45
|
def compose_log_after_event( # pylint: disable=too-many-arguments,R0917
|
73
46
|
self,
|
74
|
-
request:
|
47
|
+
request: GrpcMessage,
|
75
48
|
context: grpc.ServicerContext,
|
76
49
|
user_info: UserInfo,
|
77
50
|
method_name: str,
|
78
|
-
response:
|
51
|
+
response: Optional[Union[GrpcMessage, Exception]],
|
79
52
|
) -> LogEntry:
|
80
53
|
"""Compose post-event log entry from the provided response and context."""
|
81
54
|
|
{flwr_nightly-1.16.0.dev20250308.dist-info → flwr_nightly-1.16.0.dev20250309.dist-info}/RECORD
RENAMED
@@ -122,8 +122,8 @@ flwr/common/date.py,sha256=NHHpESce5wYqEwoDXf09gp9U9l_5Bmlh2BsOcwS-kDM,1554
|
|
122
122
|
flwr/common/differential_privacy.py,sha256=YA01NqjddKNAEVmf7hXmOVxOjhekgzvJudk3mBGq-2k,6148
|
123
123
|
flwr/common/differential_privacy_constants.py,sha256=c7b7tqgvT7yMK0XN9ndiTBs4mQf6d3qk6K7KBZGlV4Q,1074
|
124
124
|
flwr/common/dp.py,sha256=vddkvyjV2FhRoN4VuU2LeAM1UBn7dQB8_W-Qdiveal8,1978
|
125
|
-
flwr/common/event_log_plugin/__init__.py,sha256=
|
126
|
-
flwr/common/event_log_plugin/event_log_plugin.py,sha256=
|
125
|
+
flwr/common/event_log_plugin/__init__.py,sha256=ts3VAL3Fk6Grp1EK_1Qg_V-BfOof9F86iBx4rbrEkyo,838
|
126
|
+
flwr/common/event_log_plugin/event_log_plugin.py,sha256=PyNdJglG-A2VAH0gTXQO7TMImr24uAHMzNBXwnFmnmE,2022
|
127
127
|
flwr/common/exit/__init__.py,sha256=-ZOJYLaNnR729a7VzZiFsLiqngzKQh3xc27svYStZ_Q,826
|
128
128
|
flwr/common/exit/exit.py,sha256=DmZFyksp-w1sFDQekq5Z-qfnr-ivCAv78aQkqj-TDps,3458
|
129
129
|
flwr/common/exit/exit_code.py,sha256=PNEnCrZfOILjfDAFu5m-2YWEJBrk97xglq4zCUlqV7E,3470
|
@@ -324,8 +324,8 @@ flwr/superexec/exec_servicer.py,sha256=4UpzJqPUHkBG2PZNe2lrX7XFVDOL6yw_HcoBHxuXE
|
|
324
324
|
flwr/superexec/exec_user_auth_interceptor.py,sha256=YtvcjrD2hMVmZ3y9wHuGI6FwmG_Y__q112t4fFnypy0,3793
|
325
325
|
flwr/superexec/executor.py,sha256=_B55WW2TD1fBINpabSSDRenVHXYmvlfhv-k8hJKU4lQ,3115
|
326
326
|
flwr/superexec/simulation.py,sha256=WQDon15oqpMopAZnwRZoTICYCfHqtkvFSqiTQ2hLD_g,4088
|
327
|
-
flwr_nightly-1.16.0.
|
328
|
-
flwr_nightly-1.16.0.
|
329
|
-
flwr_nightly-1.16.0.
|
330
|
-
flwr_nightly-1.16.0.
|
331
|
-
flwr_nightly-1.16.0.
|
327
|
+
flwr_nightly-1.16.0.dev20250309.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
328
|
+
flwr_nightly-1.16.0.dev20250309.dist-info/METADATA,sha256=f5zjA0KfxekmnqS9VgMZFBTGJZrgzB0zzw8ahTOF3w4,15877
|
329
|
+
flwr_nightly-1.16.0.dev20250309.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
330
|
+
flwr_nightly-1.16.0.dev20250309.dist-info/entry_points.txt,sha256=JlNxX3qhaV18_2yj5a3kJW1ESxm31cal9iS_N_pf1Rk,538
|
331
|
+
flwr_nightly-1.16.0.dev20250309.dist-info/RECORD,,
|
{flwr_nightly-1.16.0.dev20250308.dist-info → flwr_nightly-1.16.0.dev20250309.dist-info}/LICENSE
RENAMED
File without changes
|
{flwr_nightly-1.16.0.dev20250308.dist-info → flwr_nightly-1.16.0.dev20250309.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|