reorg parsers
This commit is contained in:
1
utils/parsers/by_name/__init__.py
Normal file
1
utils/parsers/by_name/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
"""Parser delle centraline"""
|
||||
1
utils/parsers/by_type/__init__.py
Normal file
1
utils/parsers/by_type/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
"""Parser delle centraline"""
|
||||
4
utils/parsers/by_type/cr1000x_cr1000x.py
Normal file
4
utils/parsers/by_type/cr1000x_cr1000x.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as pipe_sep_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return pipe_sep_main_loader(cfg, id, "pipe_separator")
|
||||
4
utils/parsers/by_type/d2w_d2w.py
Normal file
4
utils/parsers/by_type/d2w_d2w.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as pipe_sep_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return pipe_sep_main_loader(cfg, id, "pipe_separator")
|
||||
4
utils/parsers/by_type/g301_g301.py
Normal file
4
utils/parsers/by_type/g301_g301.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as pipe_sep_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return pipe_sep_main_loader(cfg, id, "pipe_separator")
|
||||
4
utils/parsers/by_type/g801_iptm.py
Normal file
4
utils/parsers/by_type/g801_iptm.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as pipe_sep_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return pipe_sep_main_loader(cfg, id, "pipe_separator")
|
||||
4
utils/parsers/by_type/g801_loc.py
Normal file
4
utils/parsers/by_type/g801_loc.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as analog_dig_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return analog_dig_main_loader(cfg, id, "analogic_digital")
|
||||
4
utils/parsers/by_type/g801_mums.py
Normal file
4
utils/parsers/by_type/g801_mums.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as pipe_sep_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return pipe_sep_main_loader(cfg, id, "pipe_separator")
|
||||
4
utils/parsers/by_type/g802_dsas.py
Normal file
4
utils/parsers/by_type/g802_dsas.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as pipe_sep_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return pipe_sep_main_loader(cfg, id, "pipe_separator")
|
||||
4
utils/parsers/by_type/g802_loc.py
Normal file
4
utils/parsers/by_type/g802_loc.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as analog_dig_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return analog_dig_main_loader(cfg, id, "analogic_digital")
|
||||
4
utils/parsers/by_type/g802_modb.py
Normal file
4
utils/parsers/by_type/g802_modb.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as pipe_sep_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return pipe_sep_main_loader(cfg, id, "pipe_separator")
|
||||
4
utils/parsers/by_type/g802_mums.py
Normal file
4
utils/parsers/by_type/g802_mums.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as pipe_sep_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return pipe_sep_main_loader(cfg, id, "pipe_separator")
|
||||
@@ -1,4 +1,4 @@
|
||||
from .tlp_tlp import main_loader as tlp_tlp_main_loader
|
||||
from ..tlp_tlp import main_loader as tlp_tlp_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return tlp_tlp_main_loader(cfg, id)
|
||||
4
utils/parsers/by_type/hortus_hortus.py
Normal file
4
utils/parsers/by_type/hortus_hortus.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from utils.csv.loaders import main_loader as pipe_sep_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return pipe_sep_main_loader(cfg, id, "pipe_separator")
|
||||
@@ -1,15 +0,0 @@
|
||||
#!.venv/bin/python
|
||||
# Import necessary modules
|
||||
from utils.database.loader_action import load_data, update_status, DATA_LOADED
|
||||
from utils.csv.data_preparation import make_matrix
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Define the main function for loading data
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
# Create a matrix of values from the data
|
||||
matrice_valori = make_matrix(cfg, id)
|
||||
# Load the data into the database
|
||||
if load_data(cfg, matrice_valori):
|
||||
update_status(cfg, id, DATA_LOADED)
|
||||
@@ -1,15 +0,0 @@
|
||||
#!.venv/bin/python
|
||||
# Import necessary modules
|
||||
from utils.database.loader_action import load_data, update_status, DATA_LOADED
|
||||
from utils.csv.data_preparation import make_matrix
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Define the main function for loading data
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
# Create a matrix of values from the data
|
||||
matrice_valori = make_matrix(cfg, id)
|
||||
# Load the data into the database
|
||||
if load_data(cfg, matrice_valori):
|
||||
update_status(cfg, id, DATA_LOADED)
|
||||
@@ -1,15 +0,0 @@
|
||||
#!.venv/bin/python
|
||||
# Import necessary modules
|
||||
from utils.database.loader_action import load_data, update_status, DATA_LOADED
|
||||
from utils.csv.data_preparation import make_matrix
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Define the main function for loading data
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
# Create a matrix of values from the data
|
||||
matrice_valori = make_matrix(cfg, id)
|
||||
# Load the data into the database
|
||||
if load_data(cfg, matrice_valori):
|
||||
update_status(cfg, id, DATA_LOADED)
|
||||
@@ -1,4 +0,0 @@
|
||||
from .g801_mums import main_loader as g801_mums_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return g801_mums_main_loader(cfg, id)
|
||||
@@ -1,12 +0,0 @@
|
||||
#!.venv/bin/python
|
||||
from utils.database.loader_action import load_data
|
||||
from utils.csv.data_preparation import make_loc_matrix
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
async def main_loader(cfg, id):
|
||||
matrice_valori = make_loc_matrix(cfg, id)
|
||||
load_data(cfg, matrice_valori)
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
#!.venv/bin/python
|
||||
# Import necessary modules
|
||||
from utils.database.loader_action import load_data, update_status, DATA_LOADED
|
||||
from utils.csv.data_preparation import make_matrix
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Define the main function for loading data
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
# Create a matrix of values from the data
|
||||
matrice_valori = make_matrix(cfg, id)
|
||||
# Load the data into the database
|
||||
if load_data(cfg, matrice_valori):
|
||||
update_status(cfg, id, DATA_LOADED)
|
||||
@@ -1,4 +0,0 @@
|
||||
from .g801_mums import main_loader as g801_mums_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return g801_mums_main_loader(cfg, id)
|
||||
@@ -1,4 +0,0 @@
|
||||
from .g801_loc import main_loader as g801_loc_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return g801_loc_main_loader(cfg, id)
|
||||
@@ -1,4 +0,0 @@
|
||||
from .g801_mums import main_loader as g801_mums_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return g801_mums_main_loader(cfg, id)
|
||||
@@ -1,4 +0,0 @@
|
||||
from .g801_mums import main_loader as g801_mums_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return g801_mums_main_loader(cfg, id)
|
||||
@@ -1,4 +0,0 @@
|
||||
from .cr1000x_cr1000x import main_loader as cr1000x_cr1000x_main_loader
|
||||
|
||||
async def main_loader(cfg: object, id: int) -> None:
|
||||
return cr1000x_cr1000x_main_loader(cfg, id)
|
||||
Reference in New Issue
Block a user