FedModelKit 0.7.0__tar.gz → 0.9.3__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.
Files changed (69) hide show
  1. fedmodelkit-0.9.3/.gitlab-ci.yml +47 -0
  2. fedmodelkit-0.9.3/LICENSE +131 -0
  3. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/PKG-INFO +31 -4
  4. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/README.md +29 -2
  5. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/pyproject.toml +2 -2
  6. fedmodelkit-0.9.3/src/FedModelKit/__init__.py +24 -0
  7. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/aggregator.py +15 -0
  8. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/cli.py +16 -0
  9. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/local_learner.py +15 -0
  10. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/mlflow_service/__init__.py +15 -0
  11. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/mlflow_service/client.py +16 -0
  12. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/mlflow_service/messages.py +15 -0
  13. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/mlflow_service/server.py +16 -1
  14. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/client_app.py +16 -4
  15. fedmodelkit-0.9.3/src/FedModelKit/templates/do1.ipynb +290 -0
  16. fedmodelkit-0.9.3/src/FedModelKit/templates/do2.ipynb +289 -0
  17. fedmodelkit-0.9.3/src/FedModelKit/templates/ds.ipynb +596 -0
  18. fedmodelkit-0.9.3/src/FedModelKit/templates/extern_pyproject.toml +27 -0
  19. fedmodelkit-0.9.3/src/FedModelKit/templates/init.py +15 -0
  20. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/pyproject.toml +13 -2
  21. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/server_app.py +15 -2
  22. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/task.py +15 -0
  23. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates.py +15 -0
  24. fedmodelkit-0.9.3/uv.lock +3181 -0
  25. fedmodelkit-0.7.0/LICENSE +0 -23
  26. fedmodelkit-0.7.0/src/FedModelKit/__init__.py +0 -10
  27. fedmodelkit-0.7.0/src/FedModelKit/templates/do1.ipynb +0 -269
  28. fedmodelkit-0.7.0/src/FedModelKit/templates/do2.ipynb +0 -268
  29. fedmodelkit-0.7.0/src/FedModelKit/templates/ds.ipynb +0 -502
  30. fedmodelkit-0.7.0/src/FedModelKit/templates/extern_pyproject.toml +0 -16
  31. fedmodelkit-0.7.0/src/FedModelKit/templates/init.py +0 -0
  32. fedmodelkit-0.7.0/uv.lock +0 -2923
  33. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/.gitignore +0 -0
  34. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/.python-version +0 -0
  35. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/images/aggregator.png +0 -0
  36. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/images/federated_learning_model.png +0 -0
  37. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/images/local_learner.png +0 -0
  38. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/README.md +0 -0
  39. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/py.typed +0 -0
  40. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/datasetPartition0.png +0 -0
  41. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/datasetPartition1.png +0 -0
  42. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/do1CreatesSyftDataset.png +0 -0
  43. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/do1LogsInDatasite.png +0 -0
  44. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/do1LogsInSyftBoxDatasite.png +0 -0
  45. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/do1ReviewsJob.png +0 -0
  46. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/do2CreatesSyftADataset.png +0 -0
  47. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/do2LogsInDatasite.png +0 -0
  48. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/do2LogsInSyftBoxDatasite.png +0 -0
  49. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/do2ReviewsJob.png +0 -0
  50. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/doSendModels.png +0 -0
  51. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/doWaitsForJobs.png +0 -0
  52. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsAggregateModels.png +0 -0
  53. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsAggregatedWeights.png +0 -0
  54. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsBootstrapping.png +0 -0
  55. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsDoneSubmittingJobs.png +0 -0
  56. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsExploresDOsDatasets.png +0 -0
  57. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsLogsInAsGuests.png +0 -0
  58. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsPreparesSyftFlwrProject.png +0 -0
  59. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsRunsSyftFLWRSimulation.png +0 -0
  60. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsSendsJobs.png +0 -0
  61. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsSimulationLogs.png +0 -0
  62. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsSubmitsJobs.png +0 -0
  63. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsSyftFlwrProjectArch.png +0 -0
  64. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/dsWaitsForJobsToBeApproved.png +0 -0
  65. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/fltraining.gif +0 -0
  66. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/fltraining.mp4 +0 -0
  67. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/localSyftBoxNetwork.png +0 -0
  68. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/images/overview.png +0 -0
  69. {fedmodelkit-0.7.0 → fedmodelkit-0.9.3}/src/FedModelKit/templates/readme.md +0 -0
@@ -0,0 +1,47 @@
1
+ image: python:3.12-slim
2
+
3
+ stages:
4
+ - check
5
+ - build
6
+ - publish
7
+
8
+ variables:
9
+ UV_VERSION: "0.5.18"
10
+
11
+ # Install uv once and reuse across jobs
12
+ .uv-base:
13
+ before_script:
14
+ - pip install uv==$UV_VERSION
15
+
16
+ check_project:
17
+ stage: check
18
+ extends: .uv-base
19
+ script:
20
+ - uv lock --check
21
+ - uv build --sdist
22
+
23
+ build_package:
24
+ stage: build
25
+ extends: .uv-base
26
+ script:
27
+ - uv build
28
+ artifacts:
29
+ paths:
30
+ - dist/
31
+ rules:
32
+ - if: $CI_COMMIT_TAG
33
+
34
+ publish_to_pypi:
35
+ stage: publish
36
+ extends: .uv-base
37
+ id_tokens:
38
+ PYPI_ID_TOKEN:
39
+ aud: https://pypi.org
40
+ script:
41
+ - uv pip install --system twine
42
+ - TWINE_USERNAME=__token__ TWINE_PASSWORD=$PYPI_ID_TOKEN twine upload
43
+ --verbose dist/*
44
+ rules:
45
+ - if: $CI_COMMIT_TAG
46
+ dependencies:
47
+ - build_package
@@ -0,0 +1,131 @@
1
+ # PolyForm Noncommercial License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
4
+
5
+ ## Acceptance
6
+
7
+ In order to get any license under these terms, you must agree
8
+ to them as both strict obligations and conditions to all
9
+ your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the
14
+ software to do everything you might do with the software
15
+ that would otherwise infringe the licensor's copyright
16
+ in it for any permitted purpose. However, you may
17
+ only distribute the software according to [Distribution
18
+ License](#distribution-license) and make changes or new works
19
+ based on the software according to [Changes and New Works
20
+ License](#changes-and-new-works-license).
21
+
22
+ ## Distribution License
23
+
24
+ The licensor grants you an additional copyright license
25
+ to distribute copies of the software. Your license
26
+ to distribute covers distributing the software with
27
+ changes and new works permitted by [Changes and New Works
28
+ License](#changes-and-new-works-license).
29
+
30
+ ## Notices
31
+
32
+ You must ensure that anyone who gets a copy of any part of
33
+ the software from you also gets a copy of these terms or the
34
+ URL for them above, as well as copies of any plain-text lines
35
+ beginning with `Required Notice:` that the licensor provided
36
+ with the software. For example:
37
+
38
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
39
+
40
+ ## Changes and New Works License
41
+
42
+ The licensor grants you an additional copyright license to
43
+ make changes and new works based on the software for any
44
+ permitted purpose.
45
+
46
+ ## Patent License
47
+
48
+ The licensor grants you a patent license for the software that
49
+ covers patent claims the licensor can license, or becomes able
50
+ to license, that you would infringe by using the software.
51
+
52
+ ## Noncommercial Purposes
53
+
54
+ Any noncommercial purpose is a permitted purpose.
55
+
56
+ ## Personal Uses
57
+
58
+ Personal use for research, experiment, and testing for
59
+ the benefit of public knowledge, personal study, private
60
+ entertainment, hobby projects, amateur pursuits, or religious
61
+ observance, without any anticipated commercial application,
62
+ is use for a permitted purpose.
63
+
64
+ ## Noncommercial Organizations
65
+
66
+ Use by any charitable organization, educational institution,
67
+ public research organization, public safety or health
68
+ organization, environmental protection organization,
69
+ or government institution is use for a permitted purpose
70
+ regardless of the source of funding or obligations resulting
71
+ from the funding.
72
+
73
+ ## Fair Use
74
+
75
+ You may have "fair use" rights for the software under the
76
+ law. These terms do not limit them.
77
+
78
+ ## No Other Rights
79
+
80
+ These terms do not allow you to sublicense or transfer any of
81
+ your licenses to anyone else, or prevent the licensor from
82
+ granting licenses to anyone else. These terms do not imply
83
+ any other licenses.
84
+
85
+ ## Patent Defense
86
+
87
+ If you make any written claim that the software infringes or
88
+ contributes to infringement of any patent, your patent license
89
+ for the software granted under these terms ends immediately. If
90
+ your company makes such a claim, your patent license ends
91
+ immediately for work on behalf of your company.
92
+
93
+ ## Violations
94
+
95
+ The first time you are notified in writing that you have
96
+ violated any of these terms, or done anything with the software
97
+ not covered by your licenses, your licenses can nonetheless
98
+ continue if you come into full compliance with these terms,
99
+ and take practical steps to correct past violations, within
100
+ 32 days of receiving notice. Otherwise, all your licenses
101
+ end immediately.
102
+
103
+ ## No Liability
104
+
105
+ ***As far as the law allows, the software comes as is, without
106
+ any warranty or condition, and the licensor will not be liable
107
+ to you for any damages arising out of these terms or the use
108
+ or nature of the software, under any kind of legal claim.***
109
+
110
+ ## Definitions
111
+
112
+ The **licensor** is the individual or entity offering these
113
+ terms, and the **software** is the software the licensor makes
114
+ available under these terms.
115
+
116
+ **You** refers to the individual or entity agreeing to these
117
+ terms.
118
+
119
+ **Your company** is any legal entity, sole proprietorship,
120
+ or other kind of organization that you work for, plus all
121
+ organizations that have control over, are under the control of,
122
+ or are under common control with that organization. **Control**
123
+ means ownership of substantially all the assets of an entity,
124
+ or the power to direct its management and policies by vote,
125
+ contract, or otherwise. Control can be direct or indirect.
126
+
127
+ **Your licenses** are all the licenses granted to you for the
128
+ software under these terms.
129
+
130
+ **Use** means anything you do with the software requiring one
131
+ of your licenses.
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: FedModelKit
3
- Version: 0.7.0
3
+ Version: 0.9.3
4
4
  Summary: Tools to scaffold and run privacy-preserving federated learning experiments across distributed data sites.
5
5
  Author-email: ceresale <alessandro.ceresi@upm.es>
6
6
  License-File: LICENSE
7
7
  Requires-Python: >=3.12
8
8
  Requires-Dist: flwr-datasets>=0.5.0
9
9
  Requires-Dist: flwr[simulation]>=1.17.0
10
- Requires-Dist: mlflow>=3.1.1
10
+ Requires-Dist: mlflow>=3.10.1
11
11
  Requires-Dist: pandas>=2.3.0
12
12
  Provides-Extra: edge
13
13
  Description-Content-Type: text/markdown
@@ -26,6 +26,7 @@ It provides a guided workflow that helps users quickly set up experiments, manag
26
26
  - [Installation](#-installation)
27
27
  - [Quick Start](#-quick-start)
28
28
  - [Next Steps](#-next-steps)
29
+ - [License & Commercial Use](#-license--commercial-use)
29
30
 
30
31
  ---
31
32
 
@@ -46,7 +47,7 @@ These are the dependencies of the packages, including the required Python versio
46
47
 
47
48
  | Dependency | Version | Description |
48
49
  |-------------------|------------|--------------------------------------------------|
49
- | **Python** | >=3.13 | Required Python interpreter version |
50
+ | **Python** | >=3.12 | Required Python interpreter version |
50
51
  | `flwr[simulations]` | ==1.17.0 | Federated learning framework and simulations with Flower |
51
52
  | `flwr_datasets` | >=0.5.0 | Datasets compatible with Flower |
52
53
  | `mlflow` | >=3.1.1 | For experiment tracking and logging |
@@ -90,4 +91,30 @@ This will generate in the present directory the project for a new FL experiment.
90
91
 
91
92
  ## 📖 Next Steps
92
93
 
93
- 👉 Once the experiment directory has been created, open the file `README.md` that has been generated in your directory and follow the guided workflow to set up and run your federated learning tasks.
94
+ 👉 Once the experiment directory has been created, open the file `README.md` that has been generated in your directory and follow the guided workflow to set up and run your federated learning tasks.
95
+
96
+ ---
97
+ ---
98
+
99
+ ## ⚖️ License & Commercial Use
100
+
101
+ This software is **Source Available** and distributed under a **Dual Licensing** model.
102
+
103
+ ### 🎓 Non-Commercial Use (Community)
104
+ This project is free for personal use, education, non-profit organizations, and academic research under the **PolyForm Noncommercial License 1.0.0**.
105
+
106
+ * ✅ You can read, modify, and execute the code.
107
+ * ✅ You can use it for personal and research projects.
108
+ * ❌ You may **NOT** use it for commercial purposes or in business environments without a commercial license.
109
+
110
+ Check the [LICENSE](LICENSE) file for full terms.
111
+
112
+ ### 💼 Commercial Use (Businesses)
113
+ If you wish to use this software in a commercial product, a business, or any revenue-generating environment, **you must purchase a Commercial License**.
114
+
115
+ The Commercial License grants you:
116
+ * The right to use the software in commercial production environments.
117
+ * Exemption from the PolyForm license restrictions.
118
+ * Priority support (optional).
119
+
120
+ 📩 **To purchase a license, please contact us at:** federico.alvarez@upm.es
@@ -12,6 +12,7 @@ It provides a guided workflow that helps users quickly set up experiments, manag
12
12
  - [Installation](#-installation)
13
13
  - [Quick Start](#-quick-start)
14
14
  - [Next Steps](#-next-steps)
15
+ - [License & Commercial Use](#-license--commercial-use)
15
16
 
16
17
  ---
17
18
 
@@ -32,7 +33,7 @@ These are the dependencies of the packages, including the required Python versio
32
33
 
33
34
  | Dependency | Version | Description |
34
35
  |-------------------|------------|--------------------------------------------------|
35
- | **Python** | >=3.13 | Required Python interpreter version |
36
+ | **Python** | >=3.12 | Required Python interpreter version |
36
37
  | `flwr[simulations]` | ==1.17.0 | Federated learning framework and simulations with Flower |
37
38
  | `flwr_datasets` | >=0.5.0 | Datasets compatible with Flower |
38
39
  | `mlflow` | >=3.1.1 | For experiment tracking and logging |
@@ -76,4 +77,30 @@ This will generate in the present directory the project for a new FL experiment.
76
77
 
77
78
  ## 📖 Next Steps
78
79
 
79
- 👉 Once the experiment directory has been created, open the file `README.md` that has been generated in your directory and follow the guided workflow to set up and run your federated learning tasks.
80
+ 👉 Once the experiment directory has been created, open the file `README.md` that has been generated in your directory and follow the guided workflow to set up and run your federated learning tasks.
81
+
82
+ ---
83
+ ---
84
+
85
+ ## ⚖️ License & Commercial Use
86
+
87
+ This software is **Source Available** and distributed under a **Dual Licensing** model.
88
+
89
+ ### 🎓 Non-Commercial Use (Community)
90
+ This project is free for personal use, education, non-profit organizations, and academic research under the **PolyForm Noncommercial License 1.0.0**.
91
+
92
+ * ✅ You can read, modify, and execute the code.
93
+ * ✅ You can use it for personal and research projects.
94
+ * ❌ You may **NOT** use it for commercial purposes or in business environments without a commercial license.
95
+
96
+ Check the [LICENSE](LICENSE) file for full terms.
97
+
98
+ ### 💼 Commercial Use (Businesses)
99
+ If you wish to use this software in a commercial product, a business, or any revenue-generating environment, **you must purchase a Commercial License**.
100
+
101
+ The Commercial License grants you:
102
+ * The right to use the software in commercial production environments.
103
+ * Exemption from the PolyForm license restrictions.
104
+ * Priority support (optional).
105
+
106
+ 📩 **To purchase a license, please contact us at:** federico.alvarez@upm.es
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "FedModelKit"
3
- version = "0.7.0"
3
+ version = "0.9.3"
4
4
  description = "Tools to scaffold and run privacy-preserving federated learning experiments across distributed data sites."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -11,7 +11,7 @@ dependencies = [
11
11
  "flwr-datasets>=0.5.0",
12
12
  "flwr[simulation]>=1.17.0",
13
13
  "pandas>=2.3.0",
14
- "mlflow>=3.1.1",
14
+ "mlflow>=3.10.1",
15
15
  ]
16
16
 
17
17
  [build-system]
@@ -0,0 +1,24 @@
1
+ #
2
+ # Copyright (c) 2026 Grupo de Aplicación de Telecomunicaciones Visuales (GATV), Escuela Técnica Superior de Ingenieros de Telecomunicación, Universidad Politécnica de Madrid
3
+ #
4
+ # This file is part of Federated Data Fabric.
5
+ #
6
+ # Federated Data Fabric is licensed under the PolyForm Noncommercial License 1.0.0.
7
+ #
8
+ # Use of this software is permitted exclusively for NON-COMMERCIAL purposes.
9
+ # For commercial use, please contact federico.alvarez@upm.es to obtain a commercial license.
10
+ #
11
+ # SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
12
+ #
13
+ # You can view the full license text at:
14
+ # https://polyformproject.org/licenses/noncommercial/1.0.0/
15
+ #
16
+ from .local_learner import LLProtocol
17
+ from .aggregator import AggProtocol
18
+ from .cli import create_structure
19
+ import flwr
20
+
21
+ __all__ = ["LLProtocol",
22
+ "AggProtocol",
23
+ "create_structure",
24
+ "flwr"]
@@ -1,3 +1,18 @@
1
+ #
2
+ # Copyright (c) 2026 Grupo de Aplicación de Telecomunicaciones Visuales (GATV), Escuela Técnica Superior de Ingenieros de Telecomunicación, Universidad Politécnica de Madrid
3
+ #
4
+ # This file is part of Federated Data Fabric.
5
+ #
6
+ # Federated Data Fabric is licensed under the PolyForm Noncommercial License 1.0.0.
7
+ #
8
+ # Use of this software is permitted exclusively for NON-COMMERCIAL purposes.
9
+ # For commercial use, please contact federico.alvarez@upm.es to obtain a commercial license.
10
+ #
11
+ # SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
12
+ #
13
+ # You can view the full license text at:
14
+ # https://polyformproject.org/licenses/noncommercial/1.0.0/
15
+ #
1
16
  import flwr
2
17
  from typing import Protocol, runtime_checkable
3
18
  from typing import Protocol, Optional
@@ -1,3 +1,18 @@
1
+ #
2
+ # Copyright (c) 2026 Grupo de Aplicación de Telecomunicaciones Visuales (GATV), Escuela Técnica Superior de Ingenieros de Telecomunicación, Universidad Politécnica de Madrid
3
+ #
4
+ # This file is part of Federated Data Fabric.
5
+ #
6
+ # Federated Data Fabric is licensed under the PolyForm Noncommercial License 1.0.0.
7
+ #
8
+ # Use of this software is permitted exclusively for NON-COMMERCIAL purposes.
9
+ # For commercial use, please contact federico.alvarez@upm.es to obtain a commercial license.
10
+ #
11
+ # SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
12
+ #
13
+ # You can view the full license text at:
14
+ # https://polyformproject.org/licenses/noncommercial/1.0.0/
15
+ #
1
16
  import os
2
17
  import sys
3
18
  import argparse
@@ -21,6 +36,7 @@ def create_structure(exp_name: str = "new_experiment") -> None:
21
36
  structure = {
22
37
  f"{exp_name}": {
23
38
  "pyproject.toml": get_pyproject(exp_name),
39
+ ".python-version": "3.12",
24
40
  f"{exp_name}": {
25
41
  "__init__.py": get_init(),
26
42
  "task.py": get_task(),
@@ -1,3 +1,18 @@
1
+ #
2
+ # Copyright (c) 2026 Grupo de Aplicación de Telecomunicaciones Visuales (GATV), Escuela Técnica Superior de Ingenieros de Telecomunicación, Universidad Politécnica de Madrid
3
+ #
4
+ # This file is part of Federated Data Fabric.
5
+ #
6
+ # Federated Data Fabric is licensed under the PolyForm Noncommercial License 1.0.0.
7
+ #
8
+ # Use of this software is permitted exclusively for NON-COMMERCIAL purposes.
9
+ # For commercial use, please contact federico.alvarez@upm.es to obtain a commercial license.
10
+ #
11
+ # SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
12
+ #
13
+ # You can view the full license text at:
14
+ # https://polyformproject.org/licenses/noncommercial/1.0.0/
15
+ #
1
16
  from typing import Protocol, runtime_checkable
2
17
 
3
18
  import pandas as pd
@@ -1,3 +1,18 @@
1
+ #
2
+ # Copyright (c) 2026 Grupo de Aplicación de Telecomunicaciones Visuales (GATV), Escuela Técnica Superior de Ingenieros de Telecomunicación, Universidad Politécnica de Madrid
3
+ #
4
+ # This file is part of Federated Data Fabric.
5
+ #
6
+ # Federated Data Fabric is licensed under the PolyForm Noncommercial License 1.0.0.
7
+ #
8
+ # Use of this software is permitted exclusively for NON-COMMERCIAL purposes.
9
+ # For commercial use, please contact federico.alvarez@upm.es to obtain a commercial license.
10
+ #
11
+ # SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
12
+ #
13
+ # You can view the full license text at:
14
+ # https://polyformproject.org/licenses/noncommercial/1.0.0/
15
+ #
1
16
  """
2
17
  MLflow Coordination Utilities for Federated Learning
3
18
 
@@ -1,3 +1,18 @@
1
+ #
2
+ # Copyright (c) 2026 Grupo de Aplicación de Telecomunicaciones Visuales (GATV), Escuela Técnica Superior de Ingenieros de Telecomunicación, Universidad Politécnica de Madrid
3
+ #
4
+ # This file is part of Federated Data Fabric.
5
+ #
6
+ # Federated Data Fabric is licensed under the PolyForm Noncommercial License 1.0.0.
7
+ #
8
+ # Use of this software is permitted exclusively for NON-COMMERCIAL purposes.
9
+ # For commercial use, please contact federico.alvarez@upm.es to obtain a commercial license.
10
+ #
11
+ # SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
12
+ #
13
+ # You can view the full license text at:
14
+ # https://polyformproject.org/licenses/noncommercial/1.0.0/
15
+ #
1
16
  """
2
17
  MLflow Client-side Logging for Federated Learning.
3
18
 
@@ -558,6 +573,7 @@ def handle_mlflow_coordination_query(msg: Message, ctx: Context, integration: ML
558
573
 
559
574
  # Handle MLflow coordination
560
575
  if integration.handle_mlflow_coordination(msg):
576
+ print("📡 Handled MLflow coordination message")
561
577
  logger.info("MLflow coordination handled successfully")
562
578
  return Message(RecordDict(), reply_to=msg)
563
579
  else:
@@ -1,3 +1,18 @@
1
+ #
2
+ # Copyright (c) 2026 Grupo de Aplicación de Telecomunicaciones Visuales (GATV), Escuela Técnica Superior de Ingenieros de Telecomunicación, Universidad Politécnica de Madrid
3
+ #
4
+ # This file is part of Federated Data Fabric.
5
+ #
6
+ # Federated Data Fabric is licensed under the PolyForm Noncommercial License 1.0.0.
7
+ #
8
+ # Use of this software is permitted exclusively for NON-COMMERCIAL purposes.
9
+ # For commercial use, please contact federico.alvarez@upm.es to obtain a commercial license.
10
+ #
11
+ # SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
12
+ #
13
+ # You can view the full license text at:
14
+ # https://polyformproject.org/licenses/noncommercial/1.0.0/
15
+ #
1
16
  """
2
17
  Custom Flower messages for MLflow coordination in federated learning.
3
18
 
@@ -1,3 +1,18 @@
1
+ #
2
+ # Copyright (c) 2026 Grupo de Aplicación de Telecomunicaciones Visuales (GATV), Escuela Técnica Superior de Ingenieros de Telecomunicación, Universidad Politécnica de Madrid
3
+ #
4
+ # This file is part of Federated Data Fabric.
5
+ #
6
+ # Federated Data Fabric is licensed under the PolyForm Noncommercial License 1.0.0.
7
+ #
8
+ # Use of this software is permitted exclusively for NON-COMMERCIAL purposes.
9
+ # For commercial use, please contact federico.alvarez@upm.es to obtain a commercial license.
10
+ #
11
+ # SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
12
+ #
13
+ # You can view the full license text at:
14
+ # https://polyformproject.org/licenses/noncommercial/1.0.0/
15
+ #
1
16
  """
2
17
  MLflow Server-side Coordination for Federated Learning.
3
18
 
@@ -261,7 +276,7 @@ class MLflowServerCoordinator:
261
276
 
262
277
  coordination_message = Message(
263
278
  content=recordset,
264
- message_type=MessageType.QUERY,
279
+ message_type="query.mlflow_coordination",
265
280
  dst_node_id=node_id,
266
281
  group_id="mlflow_coordination",
267
282
  ttl=DEFAULT_TTL,
@@ -1,3 +1,18 @@
1
+ #
2
+ # Copyright (c) 2026 Grupo de Aplicación de Telecomunicaciones Visuales (GATV), Escuela Técnica Superior de Ingenieros de Telecomunicación, Universidad Politécnica de Madrid
3
+ #
4
+ # This file is part of Federated Data Fabric.
5
+ #
6
+ # Federated Data Fabric is licensed under the PolyForm Noncommercial License 1.0.0.
7
+ #
8
+ # Use of this software is permitted exclusively for NON-COMMERCIAL purposes.
9
+ # For commercial use, please contact federico.alvarez@upm.es to obtain a commercial license.
10
+ #
11
+ # SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
12
+ #
13
+ # You can view the full license text at:
14
+ # https://polyformproject.org/licenses/noncommercial/1.0.0/
15
+ #
1
16
  from typing import Iterator
2
17
  import numpy as np
3
18
  import pandas as pd
@@ -28,6 +43,7 @@ def mlflow_coordination_query(msg: Message, ctx: Context) -> Message:
28
43
  Named query function specifically for MLflow coordination.
29
44
  This function uses the reusable integration component.
30
45
  """
46
+
31
47
  return handle_mlflow_coordination_query(msg, ctx, mlflow_integration)
32
48
 
33
49
  @app.query()
@@ -37,10 +53,6 @@ def query(msg: Message, ctx: Context) -> Message:
37
53
  initial configuration sent by the server.
38
54
  """
39
55
 
40
- if mlflow_integration.handle_mlflow_coordination(msg):
41
- print("📡 Handled MLflow coordination message")
42
- return Message(RecordDict(), reply_to=msg)
43
-
44
56
  # Check if this message contains regular configuration data
45
57
  if (hasattr(msg.content, 'config_records') and
46
58
  'fancy_config' in msg.content.config_records):