File size: 1,638 Bytes
68e9069
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# main.py
import sys
import os
from pathlib import Path

# Agregar el directorio raíz al path de Python
sys.path.append(str(Path(__file__).parent))

from config.settings import config
from backend.converters.converter_engine import UniversalConverter
from engines.data_engine import DataEngine

class DataSuitePro:
    """Clase principal de la aplicación"""
    
    def __init__(self):
        self.converter = UniversalConverter()
        self.data_engine = DataEngine()
        self.current_project = None
        
    def run(self):
        """Ejecuta la aplicación en modo consola"""
        print("🚀 DataSuite Pro - Inicializando...")
        print(f"Directorio base: {config.BASE_DIR}")
        
        # Aquí se integrará la interfaz gráfica posteriormente
        self._run_cli_mode()
    
    def _run_cli_mode(self):
        """Modo línea de comandos para desarrollo"""
        print("\n" + "="*50)
        print("MODO DESARROLLO - CLI")
        print("="*50)
        
        while True:
            print("\nOpciones:")
            print("1. Probar conversor CSV → JSON")
            print("2. Probar motor de datos")
            print("3. Salir")
            
            choice = input("\nSelecciona una opción: ").strip()
            
            if choice == "1":
                self._test_converter()
            elif choice == "2":
                self._test_data_engine()
            elif choice == "3":
                print("¡Hasta luego! 👋")
                break
            else:
                print("❌ Opción no válida")

if __name__ == "__main__":
    app = DataSuitePro()
    app.run()