MEDfl 0.1.20__py3-none-any.whl → 0.1.21__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.
- {Medfl-0.1.20.dist-info → Medfl-0.1.21.dist-info}/METADATA +1 -1
- {Medfl-0.1.20.dist-info → Medfl-0.1.21.dist-info}/RECORD +6 -6
- scripts/create_db.py +6 -9
- {Medfl-0.1.20.data → Medfl-0.1.21.data}/scripts/setup_mysql.sh +0 -0
- {Medfl-0.1.20.dist-info → Medfl-0.1.21.dist-info}/WHEEL +0 -0
- {Medfl-0.1.20.dist-info → Medfl-0.1.21.dist-info}/top_level.txt +0 -0
@@ -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.
|
22
|
+
Medfl-0.1.21.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=
|
29
|
-
Medfl-0.1.
|
30
|
-
Medfl-0.1.
|
31
|
-
Medfl-0.1.
|
32
|
-
Medfl-0.1.
|
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,,
|
scripts/create_db.py
CHANGED
@@ -6,17 +6,14 @@ 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
|
10
|
+
|
9
11
|
def main(csv_file_path):
|
10
12
|
try:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
+
db_manager = DatabaseManager() ;
|
14
|
+
db_manager.connect() ;
|
15
|
+
mysql_config = db_manager.get_connection()
|
16
|
+
|
20
17
|
|
21
18
|
mydb = mysql.connector.connect(host=mysql_config['host'], user=mysql_config['user'], password=mysql_config['password'])
|
22
19
|
mycursor = mydb.cursor()
|
File without changes
|
File without changes
|
File without changes
|