syft-flwr 0.2.2__py3-none-any.whl → 0.3.0__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.

Potentially problematic release.


This version of syft-flwr might be problematic. Click here for more details.

syft_flwr/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.2.2"
1
+ __version__ = "0.3.0"
2
2
 
3
3
  from syft_flwr.bootstrap import bootstrap
4
4
  from syft_flwr.run import run
@@ -159,11 +159,20 @@ def syftbox_flwr_client(client_app: ClientApp, context: Context, app_name: str):
159
159
  """Run the Flower ClientApp with SyftBox."""
160
160
  # Setup
161
161
  client, encryption_enabled, syft_flwr_app_name = setup_client(app_name)
162
- box = SyftEvents(app_name=syft_flwr_app_name, client=client)
162
+ box = SyftEvents(
163
+ app_name=syft_flwr_app_name,
164
+ client=client,
165
+ cleanup_expiry="1d", # Keep request/response files for 1 days
166
+ cleanup_interval="1d", # Run cleanup daily
167
+ )
163
168
 
164
169
  logger.info(f"Started SyftBox Flower Client on: {box.client.email}")
165
170
  logger.info(f"syft_flwr app name: {syft_flwr_app_name}")
166
171
 
172
+ # Check if cleanup is running
173
+ if box.is_cleanup_running():
174
+ logger.info("Cleanup service is active")
175
+
167
176
  # Create handlers
168
177
  message_handler = MessageHandler(client_app, context, encryption_enabled)
169
178
  processor = RequestProcessor(message_handler, box, box.client.email)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: syft-flwr
3
- Version: 0.2.2
3
+ Version: 0.3.0
4
4
  Summary: syft_flwr is an open source framework that facilitate federated learning projects using Flower over the SyftBox protocol
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.10
@@ -8,7 +8,7 @@ Requires-Dist: flwr-datasets[vision]>=0.5.0
8
8
  Requires-Dist: flwr[simulation]==1.21.0
9
9
  Requires-Dist: loguru>=0.7.3
10
10
  Requires-Dist: safetensors>=0.6.2
11
- Requires-Dist: syft-rds>=0.2.2
11
+ Requires-Dist: syft-rds>=0.3.1
12
12
  Requires-Dist: tomli-w>=1.2.0
13
13
  Requires-Dist: tomli>=2.2.1
14
14
  Requires-Dist: typing-extensions>=4.13.0
@@ -1,9 +1,9 @@
1
- syft_flwr/__init__.py,sha256=-LMe4eMC2ISKkP20MQg42hRwYTd4FPyG0Og6wGufJyU,426
1
+ syft_flwr/__init__.py,sha256=wfca-7W3xwp7ElM8_L_HSi4_uTU_1uBRxefeYoYfjH4,426
2
2
  syft_flwr/bootstrap.py,sha256=-T6SRh_p6u6uWpbTPZ6-URsAfMQAI2jakpjZAh0UUlw,3690
3
3
  syft_flwr/cli.py,sha256=imctwdQMxQeGQZaiKSX1Mo2nU_-RmA-cGB3H4huuUeA,3274
4
4
  syft_flwr/config.py,sha256=4hwkovGtFOLNULjJwoGYcA0uT4y3vZSrxndXqYXquMY,821
5
5
  syft_flwr/consts.py,sha256=u3QK-Wp8D2Va7iZcp5z4ormVm_FAUDeK4u-w81UL_eY,107
6
- syft_flwr/flower_client.py,sha256=dBM8QPJSyQmeoG41w2m9nXM5451VmqUviQz117z4FM4,7066
6
+ syft_flwr/flower_client.py,sha256=UrbPQ06_iHODzDxJ_KZECID7vQpDYP6ISfEQlkL2foo,7329
7
7
  syft_flwr/flower_server.py,sha256=ZNDUR1U79M0BaG7n39TGUkVHV2NYi-LDsN8FqKJFfFQ,1508
8
8
  syft_flwr/grid.py,sha256=5rbv6ncLKK2S1PAifkavaOG36gih-QexPJHh8nnwLws,20309
9
9
  syft_flwr/mounts.py,sha256=hp0TKVot16SaPYO10Y_mSJGei7aiNteJfK4U4vynWmU,2330
@@ -14,8 +14,8 @@ syft_flwr/utils.py,sha256=KYwijACpHOR7pkvezNBqbCE48y3o4G9OUtnvdm1NkaU,3672
14
14
  syft_flwr/strategy/__init__.py,sha256=mpUmExjjFkqU8gg41XsOBKfO3aqCBe7XPJSU-_P7smU,97
15
15
  syft_flwr/strategy/fedavg.py,sha256=N8jULUkjvuaBIEVINowyQln8W8yFhkO-J8k0-iPcGMA,1562
16
16
  syft_flwr/templates/main.py.tpl,sha256=p0uK97jvLGk3LJdy1_HF1R5BQgIjaTGkYnr-csfh39M,791
17
- syft_flwr-0.2.2.dist-info/METADATA,sha256=d5xYKf8IcgwA6eXcQBlOuAAdTl59UFeGYXrwIheDjqQ,1468
18
- syft_flwr-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
19
- syft_flwr-0.2.2.dist-info/entry_points.txt,sha256=o7oT0dCoHn-3WyIwdDw1lBh2q-GvhB_8s0hWeJU4myc,49
20
- syft_flwr-0.2.2.dist-info/licenses/LICENSE,sha256=0msOUar8uPZTqkAOTBp4rCzd7Jl9eRhfKiNufwrsg7k,11361
21
- syft_flwr-0.2.2.dist-info/RECORD,,
17
+ syft_flwr-0.3.0.dist-info/METADATA,sha256=TC-wW3dIza2yD6Yhz-cbDI1_iZLWNTpHitv7l9iPQew,1468
18
+ syft_flwr-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
19
+ syft_flwr-0.3.0.dist-info/entry_points.txt,sha256=o7oT0dCoHn-3WyIwdDw1lBh2q-GvhB_8s0hWeJU4myc,49
20
+ syft_flwr-0.3.0.dist-info/licenses/LICENSE,sha256=0msOUar8uPZTqkAOTBp4rCzd7Jl9eRhfKiNufwrsg7k,11361
21
+ syft_flwr-0.3.0.dist-info/RECORD,,