fix & update test config
This commit is contained in:
@@ -18,9 +18,12 @@ Questa è la documentazione automatica dell'applicazione Python ASE per la gesti
|
|||||||
|
|
||||||
- personalizzazione dei file env:
|
- personalizzazione dei file env:
|
||||||
- env/db.ini
|
- env/db.ini
|
||||||
|
- env/elab.ini
|
||||||
|
- env/email.ini
|
||||||
- env/ftp.ini
|
- env/ftp.ini
|
||||||
- env/load.ini
|
- env/load.ini
|
||||||
- env/elab.ini
|
- env/elab.ini
|
||||||
|
- env/send.ini
|
||||||
|
|
||||||
- esecuzione del server FTP -> "python ftp_csv_receiver.py"
|
- esecuzione del server FTP -> "python ftp_csv_receiver.py"
|
||||||
- esecuzione dell'orchestratore del caricamenti dei file csv -> "python load_orchestrator.py"
|
- esecuzione dell'orchestratore del caricamenti dei file csv -> "python load_orchestrator.py"
|
||||||
|
|||||||
4
env/config.ini
vendored
4
env/config.ini
vendored
@@ -1,6 +1,6 @@
|
|||||||
[mysql]
|
[mysql]
|
||||||
host = 10.211.114.173
|
host = mysql-ase.incus
|
||||||
database = ase_lar
|
database = ase_lar
|
||||||
user = root
|
user = alex
|
||||||
password = batt1l0
|
password = batt1l0
|
||||||
|
|
||||||
|
|||||||
4
env/db.ini
vendored
4
env/db.ini
vendored
@@ -2,9 +2,9 @@
|
|||||||
# python3 -c 'from hashlib import sha256;print(sha256("????password???".encode("UTF-8")).hexdigest())'
|
# python3 -c 'from hashlib import sha256;print(sha256("????password???".encode("UTF-8")).hexdigest())'
|
||||||
|
|
||||||
[db]
|
[db]
|
||||||
hostname = 10.211.114.173
|
hostname = mysql-ase.incus
|
||||||
port = 3306
|
port = 3306
|
||||||
user = root
|
user = alex
|
||||||
password = batt1l0
|
password = batt1l0
|
||||||
dbName = ase_lar
|
dbName = ase_lar
|
||||||
maxRetries = 10
|
maxRetries = 10
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ requires-python = ">=3.12"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"aiomysql>=0.2.0",
|
"aiomysql>=0.2.0",
|
||||||
"cryptography>=45.0.3",
|
"cryptography>=45.0.3",
|
||||||
# mysql-connector-python moved to legacy group - only needed for old_scripts
|
"mysql-connector-python>=9.3.0", # Needed for synchronous DB connections (ftp_csv_receiver.py, load_ftp_users.py)
|
||||||
"pyftpdlib>=2.0.1",
|
"pyftpdlib>=2.0.1",
|
||||||
"pyproj>=3.7.1",
|
"pyproj>=3.7.1",
|
||||||
"utm>=0.8.1",
|
"utm>=0.8.1",
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ def connetti_db(cfg: object) -> object:
|
|||||||
Establishes a synchronous connection to a MySQL database.
|
Establishes a synchronous connection to a MySQL database.
|
||||||
|
|
||||||
DEPRECATED: Use connetti_db_async() for async code.
|
DEPRECATED: Use connetti_db_async() for async code.
|
||||||
This function is kept for backward compatibility with old_scripts only.
|
This function is kept for backward compatibility with synchronous code
|
||||||
|
(e.g., ftp_csv_receiver.py which uses pyftpdlib).
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
cfg: A configuration object containing database connection parameters.
|
cfg: A configuration object containing database connection parameters.
|
||||||
|
|||||||
Reference in New Issue
Block a user