MEDfl 0.1.21__py3-none-any.whl → 0.1.23__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.21
3
+ Version: 0.1.23
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.21.data/scripts/setup_mysql.sh,sha256=PXl271yvYBrXwrZ7P0tsYHnGkOubKvRaFee4MnzsSko,560
22
+ Medfl-0.1.23.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=8EGOtrqL18kucV4yV4NhzGEET6jGmL7Ba5CTB4rv6qo,4302
29
- Medfl-0.1.21.dist-info/METADATA,sha256=l2_cU9qEOLblEoUtsfNtBFsc5kih19jdT2ECHv1qtZc,5577
30
- Medfl-0.1.21.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
31
- Medfl-0.1.21.dist-info/top_level.txt,sha256=CmLt1TC7PJj-V55rhffMZ9LSOiuSaaEbz9FJm_zOw_E,22
32
- Medfl-0.1.21.dist-info/RECORD,,
28
+ scripts/create_db.py,sha256=vxgpb1FtF8QYbhQGhUxKJPb6cWn3mQ0PHjwfeoaH-dk,4272
29
+ Medfl-0.1.23.dist-info/METADATA,sha256=k76WOAbqZNi05S-LN5iOtKFHzHjzyzj2Ajn_n8Liqe0,5577
30
+ Medfl-0.1.23.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
31
+ Medfl-0.1.23.dist-info/top_level.txt,sha256=CmLt1TC7PJj-V55rhffMZ9LSOiuSaaEbz9FJm_zOw_E,22
32
+ Medfl-0.1.23.dist-info/RECORD,,
scripts/create_db.py CHANGED
@@ -6,18 +6,22 @@ from mysql.connector import Error
6
6
  from configparser import ConfigParser
7
7
  import os
8
8
 
9
- from Medfl.NetManager.database_connector import DatabaseManager
9
+ from Medfl.LearningManager.utils import load_db_config
10
10
 
11
11
  def main(csv_file_path):
12
12
  try:
13
- db_manager = DatabaseManager() ;
14
- db_manager.connect() ;
15
- mysql_config = db_manager.get_connection()
16
13
 
14
+ mysql_config = load_db_config()
15
+
16
+
17
+ print('Step 1')
17
18
 
18
19
  mydb = mysql.connector.connect(host=mysql_config['host'], user=mysql_config['user'], password=mysql_config['password'])
19
20
  mycursor = mydb.cursor()
20
21
 
22
+ print('Step 2')
23
+
24
+
21
25
  # Create the 'MEDfl' database if it doesn't exist
22
26
  mycursor.execute("CREATE DATABASE IF NOT EXISTS MEDfl")
23
27
 
File without changes