flwr-nightly 1.5.0.dev20230725__tar.gz → 1.5.0.dev20230730__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/PKG-INFO +4 -5
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/pyproject.toml +5 -6
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/app.py +2 -4
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/rest_rere/rest_api.py +17 -7
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/LICENSE +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/README.md +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/app.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/client.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/dpfedavg_numpy_client.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/grpc_client/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/grpc_client/connection.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/grpc_rere_client/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/grpc_rere_client/connection.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/message_handler/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/message_handler/message_handler.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/message_handler/task_handler.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/numpy_client.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/rest_client/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/rest_client/connection.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/address.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/constant.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/date.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/dp.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/grpc.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/logger.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/parameter.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/serde.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/telemetry.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/typing.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/version.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/driver/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/driver/app.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/driver/driver.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/driver/driver_client_manager.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/driver/driver_client_proxy.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/driver_pb2.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/driver_pb2.pyi +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/driver_pb2_grpc.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/driver_pb2_grpc.pyi +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/fleet_pb2.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/fleet_pb2.pyi +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/fleet_pb2_grpc.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/fleet_pb2_grpc.pyi +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/node_pb2.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/node_pb2.pyi +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/node_pb2_grpc.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/node_pb2_grpc.pyi +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/task_pb2.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/task_pb2.pyi +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/task_pb2_grpc.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/task_pb2_grpc.pyi +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/transport_pb2.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/transport_pb2.pyi +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/transport_pb2_grpc.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/transport_pb2_grpc.pyi +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/py.typed +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/client_manager.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/client_proxy.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/criterion.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/driver/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/driver/driver_servicer.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/grpc_bidi/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/grpc_bidi/driver_client_manager.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/grpc_bidi/flower_service_servicer.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/grpc_bidi/grpc_bridge.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/grpc_bidi/grpc_client_proxy.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/grpc_bidi/grpc_server.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/grpc_bidi/ins_scheduler.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/grpc_rere/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/grpc_rere/fleet_servicer.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/message_handler/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/message_handler/message_handler.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/fleet/rest_rere/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/history.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/server.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/state/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/state/in_memory_state.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/state/sqlite_state.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/state/state.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/state/state_factory.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/aggregate.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/dpfedavg_adaptive.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/dpfedavg_fixed.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fault_tolerant_fedavg.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fedadagrad.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fedadam.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fedavg.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fedavg_android.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fedavgm.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fedmedian.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fedopt.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fedprox.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fedtrimmedavg.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fedxgb_nn_avg.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/fedyogi.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/krum.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/qfedavg.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/strategy/strategy.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/utils/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/utils/tensorboard.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/utils/validator.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/simulation/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/simulation/app.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/simulation/ray_transport/__init__.py +0 -0
- {flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/simulation/ray_transport/ray_client_proxy.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: flwr-nightly
|
3
|
-
Version: 1.5.0.
|
3
|
+
Version: 1.5.0.dev20230730
|
4
4
|
Summary: Flower: A Friendly Federated Learning Framework
|
5
5
|
Home-page: https://flower.dev
|
6
6
|
License: Apache-2.0
|
@@ -33,7 +33,6 @@ Classifier: Typing :: Typed
|
|
33
33
|
Provides-Extra: rest
|
34
34
|
Provides-Extra: simulation
|
35
35
|
Requires-Dist: cryptography (>=41.0.2,<42.0.0)
|
36
|
-
Requires-Dist: fastapi (>=0.95.0,<0.96.0) ; extra == "rest"
|
37
36
|
Requires-Dist: grpcio (>=1.48.2,<2.0.0,!=1.52.0)
|
38
37
|
Requires-Dist: importlib-metadata (>=4.0.0,<5.0.0) ; python_version < "3.8"
|
39
38
|
Requires-Dist: iterators (>=0.0.2,<0.0.3)
|
@@ -42,9 +41,9 @@ Requires-Dist: protobuf (>=3.19.0,<4.0.0)
|
|
42
41
|
Requires-Dist: pycryptodome (>=3.18.0,<4.0.0)
|
43
42
|
Requires-Dist: pydantic (<2.0.0) ; extra == "simulation"
|
44
43
|
Requires-Dist: ray[default] (==2.5.1) ; extra == "simulation"
|
45
|
-
Requires-Dist: requests (>=2.
|
46
|
-
Requires-Dist: starlette (>=0.
|
47
|
-
Requires-Dist: uvicorn[standard] (>=0.
|
44
|
+
Requires-Dist: requests (>=2.31.0,<3.0.0) ; extra == "rest"
|
45
|
+
Requires-Dist: starlette (>=0.29.0,<0.30.0) ; extra == "rest"
|
46
|
+
Requires-Dist: uvicorn[standard] (>=0.22.0,<0.23.0) ; extra == "rest"
|
48
47
|
Project-URL: Documentation, https://flower.dev
|
49
48
|
Project-URL: Repository, https://github.com/adap/flower
|
50
49
|
Description-Content-Type: text/markdown
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
4
4
|
|
5
5
|
[tool.poetry]
|
6
6
|
name = "flwr-nightly"
|
7
|
-
version = "1.5.0-
|
7
|
+
version = "1.5.0-dev20230730"
|
8
8
|
description = "Flower: A Friendly Federated Learning Framework"
|
9
9
|
license = "Apache-2.0"
|
10
10
|
authors = ["The Flower Authors <hello@flower.dev>"]
|
@@ -71,14 +71,13 @@ iterators = "^0.0.2"
|
|
71
71
|
ray = { version = "==2.5.1", extras = ["default"], optional = true }
|
72
72
|
pydantic = { version = "<2.0.0", optional = true }
|
73
73
|
# Optional dependencies (REST transport layer)
|
74
|
-
requests = { version = "^2.
|
75
|
-
|
76
|
-
|
77
|
-
uvicorn = { version = "^0.21.1", extras = ["standard"], optional = true }
|
74
|
+
requests = { version = "^2.31.0", optional = true }
|
75
|
+
starlette = { version = "^0.29.0", optional = true }
|
76
|
+
uvicorn = { version = "^0.22.0", extras = ["standard"], optional = true }
|
78
77
|
|
79
78
|
[tool.poetry.extras]
|
80
79
|
simulation = ["ray", "pydantic"]
|
81
|
-
rest = ["
|
80
|
+
rest = ["requests", "starlette", "uvicorn"]
|
82
81
|
|
83
82
|
[tool.poetry.group.dev.dependencies]
|
84
83
|
types-dataclasses = "==0.6.6"
|
@@ -282,8 +282,7 @@ def run_fleet_api() -> None:
|
|
282
282
|
# Start Fleet API
|
283
283
|
if args.fleet_api_type == TRANSPORT_TYPE_REST:
|
284
284
|
if (
|
285
|
-
importlib.util.find_spec("
|
286
|
-
and importlib.util.find_spec("requests")
|
285
|
+
importlib.util.find_spec("requests")
|
287
286
|
and importlib.util.find_spec("starlette")
|
288
287
|
and importlib.util.find_spec("uvicorn")
|
289
288
|
) is None:
|
@@ -376,8 +375,7 @@ def run_server() -> None:
|
|
376
375
|
# Start Fleet API
|
377
376
|
if args.fleet_api_type == TRANSPORT_TYPE_REST:
|
378
377
|
if (
|
379
|
-
importlib.util.find_spec("
|
380
|
-
and importlib.util.find_spec("requests")
|
378
|
+
importlib.util.find_spec("requests")
|
381
379
|
and importlib.util.find_spec("starlette")
|
382
380
|
and importlib.util.find_spec("uvicorn")
|
383
381
|
) is None:
|
@@ -12,7 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
# ==============================================================================
|
15
|
-
"""REST API server."""
|
15
|
+
"""Experimental REST API server."""
|
16
16
|
|
17
17
|
|
18
18
|
import sys
|
@@ -23,16 +23,16 @@ from flwr.server.fleet.message_handler import message_handler
|
|
23
23
|
from flwr.server.state import State
|
24
24
|
|
25
25
|
try:
|
26
|
-
from
|
26
|
+
from starlette.applications import Starlette
|
27
27
|
from starlette.datastructures import Headers
|
28
|
+
from starlette.exceptions import HTTPException
|
29
|
+
from starlette.requests import Request
|
30
|
+
from starlette.responses import Response
|
31
|
+
from starlette.routing import Route
|
28
32
|
except ModuleNotFoundError:
|
29
33
|
sys.exit(MISSING_EXTRA_REST)
|
30
34
|
|
31
35
|
|
32
|
-
app: FastAPI = FastAPI()
|
33
|
-
|
34
|
-
|
35
|
-
@app.post("/api/v0/fleet/pull-task-ins", response_class=Response)
|
36
36
|
async def pull_task_ins(request: Request) -> Response:
|
37
37
|
"""Pull TaskIns."""
|
38
38
|
_check_headers(request.headers)
|
@@ -62,7 +62,6 @@ async def pull_task_ins(request: Request) -> Response:
|
|
62
62
|
)
|
63
63
|
|
64
64
|
|
65
|
-
@app.post("/api/v0/fleet/push-task-res", response_class=Response)
|
66
65
|
async def push_task_res(request: Request) -> Response: # Check if token is needed here
|
67
66
|
"""Push TaskRes."""
|
68
67
|
_check_headers(request.headers)
|
@@ -92,6 +91,17 @@ async def push_task_res(request: Request) -> Response: # Check if token is need
|
|
92
91
|
)
|
93
92
|
|
94
93
|
|
94
|
+
routes = [
|
95
|
+
Route("/api/v0/fleet/pull-task-ins", pull_task_ins, methods=["POST"]),
|
96
|
+
Route("/api/v0/fleet/push-task-res", push_task_res, methods=["POST"]),
|
97
|
+
]
|
98
|
+
|
99
|
+
app: Starlette = Starlette(
|
100
|
+
debug=False,
|
101
|
+
routes=routes,
|
102
|
+
)
|
103
|
+
|
104
|
+
|
95
105
|
def _check_headers(headers: Headers) -> None:
|
96
106
|
"""Check if expected headers are set."""
|
97
107
|
if "content-type" not in headers:
|
File without changes
|
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/__init__.py
RENAMED
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/client.py
RENAMED
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
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/client/numpy_client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/__init__.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/address.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/constant.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/date.py
RENAMED
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/grpc.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/logger.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/parameter.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/serde.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/telemetry.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/typing.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/common/version.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/driver/__init__.py
RENAMED
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/driver/driver.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/__init__.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/driver_pb2.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/driver_pb2.pyi
RENAMED
File without changes
|
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/fleet_pb2.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/fleet_pb2.pyi
RENAMED
File without changes
|
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/node_pb2.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/node_pb2.pyi
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/node_pb2_grpc.py
RENAMED
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/task_pb2.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/task_pb2.pyi
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/task_pb2_grpc.py
RENAMED
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/proto/transport_pb2.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/__init__.py
RENAMED
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/client_proxy.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/criterion.py
RENAMED
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
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/history.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/server.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/server/state/state.py
RENAMED
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
|
File without changes
|
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/simulation/__init__.py
RENAMED
File without changes
|
{flwr_nightly-1.5.0.dev20230725 → flwr_nightly-1.5.0.dev20230730}/src/py/flwr/simulation/app.py
RENAMED
File without changes
|
File without changes
|