MEDfl 0.1.20__py3-none-any.whl → 0.1.22__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Medfl
3
- Version: 0.1.20
3
+ Version: 0.1.22
4
4
  Summary: Python Open-source package for simulating federated learning and differential privacy
5
5
  Home-page: https://github.com/HaithemLamri/MEDfl
6
6
  Author: MEDomics consortium
@@ -19,14 +19,14 @@ Medfl/NetManager/net_helper.py,sha256=VYJPVI65wo34X9GO9t1joNGPr3TutZdxfva-X6P3MS
19
19
  Medfl/NetManager/net_manager_queries.py,sha256=2dfhba0iuh40kVoC7am-vC4Hlrvr-zfJ5ESymsI1Kps,4327
20
20
  Medfl/NetManager/network.py,sha256=m6TOnzVCWOJME6fUUZ25ZpQedDeRn4O-tdE5HPVqOvw,5519
21
21
  Medfl/NetManager/node.py,sha256=Mua63zKs865bSu3QKfLJx7pxYdEXpPxDSCMRhDYNhms,6475
22
- Medfl-0.1.20.data/scripts/setup_mysql.sh,sha256=PXl271yvYBrXwrZ7P0tsYHnGkOubKvRaFee4MnzsSko,560
22
+ Medfl-0.1.22.data/scripts/setup_mysql.sh,sha256=PXl271yvYBrXwrZ7P0tsYHnGkOubKvRaFee4MnzsSko,560
23
23
  alembic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  alembic/env.py,sha256=a4zJAzPNLHnIrUlXCqf_8vuAlFu0pceFJJKM1PQaOI4,1649
25
25
  scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  scripts/base.py,sha256=B0KKbl9Czh4HhExmO41tdbI2-g1OyiW2ArYhLYgKNEw,778
27
27
  scripts/config.ini,sha256=tDQQlpwZbCFQuSS017yjEiLglLihp6wETbWtNrSWeAA,82
28
- scripts/create_db.py,sha256=ZoQeXIPRBxpcMX6wgQSUKCHzxg3kixzBz0ysTGpAejs,4461
29
- Medfl-0.1.20.dist-info/METADATA,sha256=e0jhrYrYjBRjs_cGwlnbE_gjcEkhfPUAqutdXzkKldc,5577
30
- Medfl-0.1.20.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
31
- Medfl-0.1.20.dist-info/top_level.txt,sha256=CmLt1TC7PJj-V55rhffMZ9LSOiuSaaEbz9FJm_zOw_E,22
32
- Medfl-0.1.20.dist-info/RECORD,,
28
+ scripts/create_db.py,sha256=TyOEFTV5pXECAb15NDgn_-jQfIiHx15MpMnscorHl6o,4216
29
+ Medfl-0.1.22.dist-info/METADATA,sha256=l1gbhi4ApKwVZulM6xyc4weG7V0tR6kE7SHnQN8hYHc,5577
30
+ Medfl-0.1.22.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
31
+ Medfl-0.1.22.dist-info/top_level.txt,sha256=CmLt1TC7PJj-V55rhffMZ9LSOiuSaaEbz9FJm_zOw_E,22
32
+ Medfl-0.1.22.dist-info/RECORD,,
scripts/create_db.py CHANGED
@@ -6,17 +6,13 @@ from mysql.connector import Error
6
6
  from configparser import ConfigParser
7
7
  import os
8
8
 
9
+ from Medfl.LearningManager.utils import load_db_config
10
+
9
11
  def main(csv_file_path):
10
12
  try:
11
- # Get the directory of the current script
12
- current_directory = os.path.dirname(os.path.abspath(__file__))
13
-
14
- # Load configuration from the config file
15
- config_file_path = os.path.join(current_directory, 'config.ini')
16
-
17
- config = ConfigParser()
18
- config.read(config_file_path)
19
- mysql_config = config['mysql']
13
+
14
+ mysql_config = load_db_config()
15
+
20
16
 
21
17
  mydb = mysql.connector.connect(host=mysql_config['host'], user=mysql_config['user'], password=mysql_config['password'])
22
18
  mycursor = mydb.cursor()
File without changes