670 lines
32 KiB
Python
670 lines
32 KiB
Python
"""
|
|
generate_executive_pptx.py — Generador de Presentación Ejecutiva de Vanguardia en PowerPoint (16:9)
|
|
Diseño visual corporativo de alto impacto, tarjetas de contenido, métricas destacadas,
|
|
paleta institucional moderna y capturas reales de demostración.
|
|
"""
|
|
import os
|
|
import pptx
|
|
from pptx.util import Inches, Pt
|
|
from pptx.dml.color import RGBColor
|
|
from pptx.enum.text import PP_ALIGN
|
|
from pptx.enum.shapes import MSO_SHAPE
|
|
|
|
# Rutas
|
|
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
|
CAPTURES_DIR = os.path.join(BASE_DIR, "docs", "entregables", "capturas")
|
|
OUTPUT_PPTX = os.path.join(BASE_DIR, "docs", "entregables", "PRESENTACION_EJECUTIVA_DIAPOSITIVAS.pptx")
|
|
|
|
# Paleta de Colores Ejecutiva (Dark Modern Theme)
|
|
COLOR_BG_DARK = RGBColor(11, 15, 25) # Fondo general oscuro #0B0F19
|
|
COLOR_CARD_BG = RGBColor(22, 29, 47) # Fondo tarjetas #161D2F
|
|
COLOR_CARD_BORDER = RGBColor(67, 56, 202) # Borde violeta/indigo #4338CA
|
|
COLOR_ACCENT_PURPLE = RGBColor(139, 92, 246) # Violeta primario #8B5CF6
|
|
COLOR_ACCENT_CYAN = RGBColor(6, 182, 212) # Cyan moderno #06B6D4
|
|
COLOR_ACCENT_GREEN = RGBColor(16, 185, 129) # Verde esmeralda #10B981
|
|
COLOR_ACCENT_AMBER = RGBColor(245, 158, 11) # Ámbar advertencia #F59E0B
|
|
COLOR_TEXT_PRIMARY = RGBColor(248, 250, 252) # Blanco titanio #F8FAFC
|
|
COLOR_TEXT_MUTED = RGBColor(148, 163, 184) # Gris tenue #94A3B8
|
|
COLOR_HEADER_PILL = RGBColor(49, 46, 129) # Fondo pill cabecera #312E81
|
|
|
|
def add_header(slide, category_text, title_text, subtitle_text=""):
|
|
"""Inserta la cabecera ejecutiva estándar de diapositiva."""
|
|
# Pill de categoría
|
|
pill = slide.shapes.add_shape(MSO_SHAPE.ROUNDED_RECTANGLE, Inches(0.8), Inches(0.4), Inches(4.5), Inches(0.35))
|
|
pill.fill.solid()
|
|
pill.fill.fore_color.rgb = COLOR_HEADER_PILL
|
|
pill.line.color.rgb = COLOR_ACCENT_PURPLE
|
|
pill.line.width = Pt(1)
|
|
tf = pill.text_frame
|
|
tf.word_wrap = True
|
|
p = tf.paragraphs[0]
|
|
p.text = category_text.upper()
|
|
p.font.size = Pt(10)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_CYAN
|
|
p.alignment = PP_ALIGN.CENTER
|
|
|
|
# Título principal
|
|
title_box = slide.shapes.add_textbox(Inches(0.8), Inches(0.8), Inches(11.7), Inches(0.6))
|
|
tf_t = title_box.text_frame
|
|
tf_t.word_wrap = True
|
|
p_t = tf_t.paragraphs[0]
|
|
p_t.text = title_text
|
|
p_t.font.size = Pt(22)
|
|
p_t.font.bold = True
|
|
p_t.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
# Subtítulo (opcional)
|
|
if subtitle_text:
|
|
sub_box = slide.shapes.add_textbox(Inches(0.8), Inches(1.35), Inches(11.7), Inches(0.4))
|
|
tf_s = sub_box.text_frame
|
|
tf_s.word_wrap = True
|
|
p_s = tf_s.paragraphs[0]
|
|
p_s.text = subtitle_text
|
|
p_s.font.size = Pt(12)
|
|
p_s.font.color.rgb = COLOR_TEXT_MUTED
|
|
|
|
def add_footer(slide, current_slide, total_slides=14):
|
|
"""Agrega pie de diapositiva uniforme."""
|
|
footer_box = slide.shapes.add_textbox(Inches(0.8), Inches(7.0), Inches(11.7), Inches(0.35))
|
|
tf = footer_box.text_frame
|
|
p = tf.paragraphs[0]
|
|
p.text = f"UniCABA · Programación de Vanguardia 2026 · Alumno: Carlos Facundo Tello · eduspace.oemspot.com.ar"
|
|
p.font.size = Pt(9)
|
|
p.font.color.rgb = COLOR_TEXT_MUTED
|
|
|
|
p_num = tf.add_paragraph()
|
|
p_num.text = f"{current_slide} / {total_slides}"
|
|
p_num.alignment = PP_ALIGN.RIGHT
|
|
p_num.font.size = Pt(9)
|
|
p_num.font.bold = True
|
|
p_num.font.color.rgb = COLOR_ACCENT_PURPLE
|
|
|
|
def set_slide_background(slide):
|
|
"""Establece fondo oscuro liso y sofisticado."""
|
|
bg = slide.shapes.add_shape(MSO_SHAPE.RECTANGLE, Inches(0), Inches(0), Inches(13.333), Inches(7.5))
|
|
bg.fill.solid()
|
|
bg.fill.fore_color.rgb = COLOR_BG_DARK
|
|
bg.line.fill.background() # sin borde
|
|
|
|
def create_card(slide, left, top, width, height, border_color=COLOR_CARD_BORDER, bg_color=COLOR_CARD_BG):
|
|
"""Crea una tarjeta contenedora elegante con bordes suaves."""
|
|
card = slide.shapes.add_shape(MSO_SHAPE.ROUNDED_RECTANGLE, left, top, width, height)
|
|
card.fill.solid()
|
|
card.fill.fore_color.rgb = bg_color
|
|
card.line.color.rgb = border_color
|
|
card.line.width = Pt(1.2)
|
|
return card
|
|
|
|
def add_image_safe(slide, image_filename, left, top, width, height=None):
|
|
"""Inserta una imagen con marco sutil si el archivo existe."""
|
|
path = os.path.join(CAPTURES_DIR, image_filename)
|
|
if os.path.exists(path):
|
|
if height:
|
|
pic = slide.shapes.add_picture(path, left, top, width, height)
|
|
else:
|
|
pic = slide.shapes.add_picture(path, left, top, width)
|
|
return pic
|
|
return None
|
|
|
|
def build_presentation():
|
|
prs = pptx.Presentation()
|
|
prs.slide_width = Inches(13.333)
|
|
prs.slide_height = Inches(7.5)
|
|
blank_layout = prs.slide_layouts[6]
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 1: PORTADA EJECUTIVA
|
|
# =========================================================================
|
|
s1 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s1)
|
|
|
|
# Tarjeta Central de Portada
|
|
c1 = create_card(s1, Inches(1.5), Inches(1.0), Inches(10.333), Inches(5.5), COLOR_ACCENT_PURPLE, COLOR_CARD_BG)
|
|
tf1 = c1.text_frame
|
|
tf1.word_wrap = True
|
|
|
|
p0 = tf1.paragraphs[0]
|
|
p0.text = "UNIVERSIDAD DE LA CIUDAD DE BUENOS AIRES (UniCABA)"
|
|
p0.font.size = Pt(12)
|
|
p0.font.bold = True
|
|
p0.font.color.rgb = COLOR_ACCENT_CYAN
|
|
p0.alignment = PP_ALIGN.CENTER
|
|
p0.space_after = Pt(14)
|
|
|
|
p1 = tf1.add_paragraph()
|
|
p1.text = "ADMIN EDU-SPACE"
|
|
p1.font.size = Pt(40)
|
|
p1.font.bold = True
|
|
p1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
p1.alignment = PP_ALIGN.CENTER
|
|
|
|
p2 = tf1.add_paragraph()
|
|
p2.text = "Plataforma Inteligente de Asignación Áulica, Asistencia IA y Control de Accesos"
|
|
p2.font.size = Pt(16)
|
|
p2.font.color.rgb = COLOR_ACCENT_PURPLE
|
|
p2.alignment = PP_ALIGN.CENTER
|
|
p2.space_after = Pt(24)
|
|
|
|
p3 = tf1.add_paragraph()
|
|
p3.text = "TRABAJO PRÁCTICO INTEGRADOR — PROGRAMACIÓN DE VANGUARDIA (2°C 2026)"
|
|
p3.font.size = Pt(13)
|
|
p3.font.bold = True
|
|
p3.font.color.rgb = COLOR_ACCENT_GREEN
|
|
p3.alignment = PP_ALIGN.CENTER
|
|
p3.space_after = Pt(18)
|
|
|
|
p4 = tf1.add_paragraph()
|
|
p4.text = "Alumno: Carlos Facundo Tello (DNI: 34.247.025) | Docente Titular: Ing. Alejandro Vázquez\nCarrera: Lic. en Tecnologías Informáticas / Digitales | Producción: https://eduspace.oemspot.com.ar"
|
|
p4.font.size = Pt(12)
|
|
p4.font.color.rgb = COLOR_TEXT_MUTED
|
|
p4.alignment = PP_ALIGN.CENTER
|
|
|
|
add_footer(s1, 1)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 2: EL PROBLEMA REAL — LA TRAMPA DE EXCEL
|
|
# =========================================================================
|
|
s2 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s2)
|
|
add_header(s2, "Diagnóstico Situacional", "El Problema Real: La Fragilidad de Gestionar con Planillas Excel",
|
|
"Ineficiencias operativas, falta de validación concurrente y dispersión de información en Bedelía.")
|
|
|
|
# 3 Tarjetas de Problemáticas
|
|
cols = [
|
|
("FRICCIÓN Y COLISIONES HORARIAS",
|
|
"• Carga manual propensa a duplicaciones.\n• Solapamientos de dos clases presenciales en la misma aula.\n• Docentes programados en dos materias simultáneas.\n• Violación inadvertida de aforos físicos máximos.",
|
|
COLOR_ACCENT_AMBER),
|
|
("INCERTIDUMBRE DOCENTE Y ALUMNA",
|
|
"• Desconocimiento sobre recursos del aula (proyectores, aire, red).\n• Desplazamientos innecesarios entre plantas por cambios no avisados.\n• Estrés operativo en semanas de exámenes.\n• Falta de enlaces estables a clases virtuales.",
|
|
COLOR_ACCENT_PURPLE),
|
|
("INEFICIENCIA EDILICIA Y COSTOS",
|
|
"• Comisiones de 12 alumnos ocupando aulas de 70 personas.\n• Cursos numerosos hacinados en espacios pequeños.\n• Desperdicio energético en climatización e iluminación.\n• Cero trazabilidad y auditoría de cambios.",
|
|
COLOR_ACCENT_CYAN)
|
|
]
|
|
for i, (title, desc, col) in enumerate(cols):
|
|
left = Inches(0.8 + i * 4.0)
|
|
c = create_card(s2, left, Inches(1.8), Inches(3.7), Inches(4.5), col)
|
|
tf = c.text_frame
|
|
tf.word_wrap = True
|
|
p_t = tf.paragraphs[0]
|
|
p_t.text = title
|
|
p_t.font.size = Pt(13)
|
|
p_t.font.bold = True
|
|
p_t.font.color.rgb = col
|
|
p_t.space_after = Pt(12)
|
|
|
|
p_d = tf.add_paragraph()
|
|
p_d.text = desc
|
|
p_d.font.size = Pt(11)
|
|
p_d.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
add_footer(s2, 2)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 3: LA PROPUESTA SUPERADORA
|
|
# =========================================================================
|
|
s3 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s3)
|
|
add_header(s3, "Decisión de Ingeniería", "Propuesta Superadora: BFF Node.js + FastAPI ASGI vs. Java Monolítico",
|
|
"Eficiencia extrema de recursos en la nube, menor latencia y preservación de interoperabilidad.")
|
|
|
|
# Tarjeta Comparativa Java
|
|
c_java = create_card(s3, Inches(0.8), Inches(1.8), Inches(5.6), Inches(4.8), COLOR_CARD_BORDER)
|
|
tf_j = c_java.text_frame
|
|
tf_j.word_wrap = True
|
|
p = tf_j.paragraphs[0]
|
|
p.text = "CONSIGNA ORIGINAL (JAVA SPRING BOOT)"
|
|
p.font.size = Pt(14)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_AMBER
|
|
p.space_after = Pt(10)
|
|
|
|
p_j = tf_j.add_paragraph()
|
|
p_j.text = ("• Huella de Memoria RAM: ~800 MB a 1.2 GB en reposo (JVM).\n"
|
|
"• Arranque en frío lento y sobrecarga del Garbage Collector.\n"
|
|
"• Latencia inter-proceso: Serialización HTTP pesada para transferir miles de horarios a Python.\n"
|
|
"• Complejidad de despliegue en contenedores de bajo costo.\n"
|
|
"• Alto costo de infraestructura en servidores cloud.")
|
|
p_j.font.size = Pt(12)
|
|
p_j.font.color.rgb = COLOR_TEXT_MUTED
|
|
|
|
# Tarjeta Propuesta Superadora
|
|
c_sup = create_card(s3, Inches(6.8), Inches(1.8), Inches(5.7), Inches(4.8), COLOR_ACCENT_GREEN)
|
|
tf_s = c_sup.text_frame
|
|
tf_s.word_wrap = True
|
|
p = tf_s.paragraphs[0]
|
|
p.text = "PROPUESTA SUPERADORA IMPLEMENTADA"
|
|
p.font.size = Pt(14)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_GREEN
|
|
p.space_after = Pt(10)
|
|
|
|
p_s = tf_s.add_paragraph()
|
|
p_s.text = ("• Huella Combinada: < 140 MB de RAM (6x MÁS EFICIENTE).\n"
|
|
" - Microservicio BFF (Node.js Express 5): ~45 MB RAM.\n"
|
|
" - Microservicio Core (FastAPI ASGI / SQLAlchemy 2.0): ~90 MB RAM.\n"
|
|
"• I/O No Bloqueante puro con Web Serial API para hardware físico.\n"
|
|
"• Memoria Compartida: El Core y el Algoritmo Genético procesan modelos ORM sin serializaciones intermedias.\n"
|
|
"• BRIDGE SPRING BOOT INTEGRADO: Expone contratos DTO en camelCase y endpoint POST /api/v1/optimizer/spring-boot/sync.")
|
|
p_s.font.size = Pt(12)
|
|
p_s.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
add_footer(s3, 3)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 4: ARQUITECTURA C4 Y ENDPOINTS
|
|
# =========================================================================
|
|
s4 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s4)
|
|
add_header(s4, "Arquitectura del Sistema", "Arquitectura en 4 Capas, Nginx SSL y OpenAPI /docs en Vivo",
|
|
"Desacople total entre Gateway BFF, Core RESTful asíncrono y persistencia relacional ACID.")
|
|
|
|
# Tarjeta de Arquitectura izquierda
|
|
c4 = create_card(s4, Inches(0.8), Inches(1.8), Inches(5.6), Inches(4.8))
|
|
tf4 = c4.text_frame
|
|
tf4.word_wrap = True
|
|
p = tf4.paragraphs[0]
|
|
p.text = "DESGLOSE DE RESPONSABILIDADES"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_PURPLE
|
|
p.space_after = Pt(8)
|
|
|
|
p_txt = tf4.add_paragraph()
|
|
p_txt.text = ("1. Borde: Proxy Inverso Nginx con SSL Let's Encrypt (A+) y HTTP/2.\n"
|
|
"2. Microservicio 1 (BFF :3000): Express 5, Nunjucks SSR, cookies seguras HttpOnly, Web Serial Multi-COM, Helmet.\n"
|
|
"3. Microservicio 2 (Core :5000): FastAPI ASGI puro, Pydantic v2 DTOs, Swagger UI, RBAC en 12 módulos, Cifrado Fernet.\n"
|
|
"4. Datos & Integraciones: PostgreSQL 15 (classrooms_db), Moodle 4.1 REST, Google OAuth 2.0 y LLMs locales.")
|
|
p_txt.font.size = Pt(11)
|
|
p_txt.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
# Imagen derecha: Swagger UI
|
|
add_image_safe(s4, "12_swagger_openapi_docs.png", Inches(6.8), Inches(1.8), Inches(5.7), Inches(4.8))
|
|
|
|
add_footer(s4, 4)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 5: ALGORITMO GENÉTICO ÁULICO (NP-HARD)
|
|
# =========================================================================
|
|
s5 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s5)
|
|
add_header(s5, "Motor Heurístico Evolutivo", "Algoritmo Genético: Resolución NP-Hard en Menos de 4 Segundos",
|
|
"Optimización combinatoria multiobjetivo con selección por torneo, cruza y mutación adaptativa.")
|
|
|
|
# Tarjeta de Métricas y Función Fitness
|
|
c5 = create_card(s5, Inches(0.8), Inches(1.8), Inches(5.5), Inches(4.8))
|
|
tf5 = c5.text_frame
|
|
tf5.word_wrap = True
|
|
p = tf5.paragraphs[0]
|
|
p.text = "FORMULACIÓN MATEMÁTICA Y BENCHMARK"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_CYAN
|
|
p.space_after = Pt(8)
|
|
|
|
p_f = tf5.add_paragraph()
|
|
p_f.text = ("Fitness(S) = - [ 1000 · Σ H_i(S) + Σ W_j · S_j(S) ]\n\n"
|
|
"• Restricciones Duras (W = 1000):\n"
|
|
" - H1: Colisión de aula física en misma franja.\n"
|
|
" - H2: Superposición docente (excepción: co-docencia).\n"
|
|
" - H3: Déficit de aforo (inscriptos > capacidad banco).\n\n"
|
|
"• Restricciones Blandas (W = 1 a 10):\n"
|
|
" - Desperdicio de asientos y carencia de proyector/laboratorio.\n\n"
|
|
"BENCHMARK COMPROBADO EN PYTEST:\n"
|
|
"★ 200 comisiones optimizadas en 3.42 segundos (< 5s meta).")
|
|
p_f.font.size = Pt(11)
|
|
p_f.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
# Imagen derecha: Optimizador
|
|
add_image_safe(s5, "05_optimizador_genetico_ia.png", Inches(6.6), Inches(1.8), Inches(5.9), Inches(4.8))
|
|
|
|
add_footer(s5, 5)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 6: COPILOTO IA "UDECI" & RAG
|
|
# =========================================================================
|
|
s6 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s6)
|
|
add_header(s6, "Inteligencia Artificial de Vanguardia", "Asistente Virtual 'UdeCi': LLM Local con Arquitectura RAG",
|
|
"Inferencia generativa soberana, recuperación de normativas y cero alucinaciones de cursada.")
|
|
|
|
# Tarjeta izquierda
|
|
c6 = create_card(s6, Inches(0.8), Inches(1.8), Inches(5.5), Inches(4.8))
|
|
tf6 = c6.text_frame
|
|
tf6.word_wrap = True
|
|
p = tf6.paragraphs[0]
|
|
p.text = "PILARES DE INTELIGENCIA DE UDECI"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_PURPLE
|
|
p.space_after = Pt(8)
|
|
|
|
p_ai = tf6.add_paragraph()
|
|
p_ai.text = ("1. Inferencia Local Asíncrona (httpx 600s):\n"
|
|
" Servidor llama.cpp / Ollama (Qwen 30B / Llama 3).\n"
|
|
" Soberanía absoluta: Ningún dato institucional sale a la nube.\n\n"
|
|
"2. Arquitectura RAG Embebida (KnowledgeChunk):\n"
|
|
" Búsqueda vectorial sobre normativas, correlatividades y estatutos de UniCABA con permisos por rol.\n\n"
|
|
"3. Inyección de Contexto en Vivo (PostgreSQL):\n"
|
|
" Resuelve: '¿Dónde curso hoy?' con aula física real.\n"
|
|
" PRIVACIDAD ESTRICTA: Un alumno jamás ve notas ajenas.\n\n"
|
|
"4. Prompt Security Perimetral:\n"
|
|
" Filtros contra Jailbreaks, inyecciones y manipulación.")
|
|
p_ai.font.size = Pt(11)
|
|
p_ai.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
# Imagen derecha: Chat UdeCi
|
|
add_image_safe(s6, "09_asistente_virtual_udeci.png", Inches(6.6), Inches(1.8), Inches(5.9), Inches(4.8))
|
|
|
|
add_footer(s6, 6)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 7: SERVIDOR MCP Y UX MÓVIL/DESKTOP
|
|
# =========================================================================
|
|
s7 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s7)
|
|
add_header(s7, "Estándares y Experiencia de Usuario", "Servidor MCP Institucional y UX Móvil Mercado Libre Style",
|
|
"Interoperabilidad para agentes de IA autónomos y diseño adaptativo con alto contraste WCAG AA.")
|
|
|
|
c_mcp = create_card(s7, Inches(0.8), Inches(1.8), Inches(5.6), Inches(4.8))
|
|
tf_m = c_mcp.text_frame
|
|
tf_m.word_wrap = True
|
|
p = tf_m.paragraphs[0]
|
|
p.text = "MODEL CONTEXT PROTOCOL (/api/v1/mcp)"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_CYAN
|
|
p.space_after = Pt(8)
|
|
p_m = tf_m.add_paragraph()
|
|
p_m.text = ("• Herramientas Expuestas para Agentes:\n"
|
|
" - get_today_classes: Consulta el cronograma áulico del día.\n"
|
|
" - get_classroom_info: Aforo, recursos y estado del aula.\n"
|
|
" - search_subjects: Búsqueda de materias por código/carrera.\n"
|
|
" - guide_navigation: Activador de tutoriales interactivos.\n\n"
|
|
"• Reflector Didáctico Interactivo (Spotlight UI):\n"
|
|
" Guía visual en pantalla que resalta botones y pasos para capacitar a nuevos operadores de Bedelía.")
|
|
p_m.font.size = Pt(11)
|
|
p_m.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
c_ux = create_card(s7, Inches(6.8), Inches(1.8), Inches(5.7), Inches(4.8))
|
|
tf_u = c_ux.text_frame
|
|
tf_u.word_wrap = True
|
|
p = tf_u.paragraphs[0]
|
|
p.text = "DISEÑO ADAPTATIVO & ACCESIBILIDAD"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_GREEN
|
|
p.space_after = Pt(8)
|
|
p_u = tf_u.add_paragraph()
|
|
p_u.text = ("• UX Móvil Bottom-Sheet (Mercado Libre Style):\n"
|
|
" El chat y los formularios emergen desde la parte inferior, acoplándose al teclado virtual sin desbordar el viewport.\n\n"
|
|
"• Modo Oscuro Accesible (WCAG AA):\n"
|
|
" Paleta sobria (#17162E / #0E0D1D) con bordes violetas institucionales #8B5CF6 y tipografía nítida para pantallas argentinas (720p a 1080p).\n\n"
|
|
"• Widgets Dinámicos:\n"
|
|
" Clima del Campus en tiempo real en la barra lateral.")
|
|
p_u.font.size = Pt(11)
|
|
p_u.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
add_footer(s7, 7)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 8: CONTROL DE ACCESO FÍSICO Y DNI ARGENTINO
|
|
# =========================================================================
|
|
s8 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s8)
|
|
add_header(s8, "Ciber-Seguridad y Hardware", "Consola de Recepción: Web Serial Multi-COM y Parser DNI Renaper",
|
|
"Validación en molinetes con hardware físico serie y resolución universal de documentos.")
|
|
|
|
c8 = create_card(s8, Inches(0.8), Inches(1.8), Inches(5.0), Inches(4.8))
|
|
tf8 = c8.text_frame
|
|
tf8.word_wrap = True
|
|
p = tf8.paragraphs[0]
|
|
p.text = "CARACTERÍSTICAS DEL SISTEMA"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_AMBER
|
|
p.space_after = Pt(8)
|
|
p_hw = tf8.add_paragraph()
|
|
p_hw.text = ("• Web Serial API Multi-Lector:\n"
|
|
" Hasta 4 lectores físicos COM simultáneos con auto-reconexión plug-and-play en Windows.\n\n"
|
|
"• Parser Universal DNI Argentino:\n"
|
|
" - Renaper 2026 QR: Decodifica patronímicos y JWT oficial.\n"
|
|
" - PDF417 2012 y 2009 (Libreta con F/M).\n"
|
|
" - App Mi Argentina y número directo con/sin puntos.\n\n"
|
|
"• Normalización de Teclado Español:\n"
|
|
" Corrige la sustitución de ':' por 'Ñ' protegiendo apellidos como Peña o Núñez.\n\n"
|
|
"• Cronograma Inmediato: Muestra aula física y piso de hoy con audio sintetizado.")
|
|
p_hw.font.size = Pt(11)
|
|
p_hw.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
# Imagen derecha: Escaneo validado
|
|
add_image_safe(s8, "11_recepcion_escaneo_carlos_tello.png", Inches(6.1), Inches(1.8), Inches(6.4), Inches(4.8))
|
|
|
|
add_footer(s8, 8)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 9: CREDENCIAL QR DINÁMICA Y BENEFICIOS
|
|
# =========================================================================
|
|
s9 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s9)
|
|
add_header(s9, "Identidad Digital Universitaria", "Credencial QR Dinámica Anti-Captura y Módulo de Beneficios",
|
|
"Cero fraude en molinetes con rotación cada 3 segundos y portal de convenios institucionales.")
|
|
|
|
# Imagen carnet Carlos Tello
|
|
add_image_safe(s9, "08_credencial_digital_carlos_tello.png", Inches(0.8), Inches(1.8), Inches(5.8), Inches(4.8))
|
|
|
|
# Tarjeta explicativa derecha
|
|
c9 = create_card(s9, Inches(6.9), Inches(1.8), Inches(5.6), Inches(4.8))
|
|
tf9 = c9.text_frame
|
|
tf9.word_wrap = True
|
|
p = tf9.paragraphs[0]
|
|
p.text = "SEGURIDAD CRIPTOGRÁFICA DEL CARNET"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_GREEN
|
|
p.space_after = Pt(8)
|
|
p_cr = tf9.add_paragraph()
|
|
p_cr.text = ("• Rotación Dinámica (3 Segundos):\n"
|
|
" El código QR se regenera cada 3s firmado criptográficamente con tokens JWT únicos (jti, iat).\n\n"
|
|
"• Ventana Estricta Anti-Screenshot (6s):\n"
|
|
" Cualquier fotografía previa enviada por mensajería expira de inmediato y es bloqueada en recepción.\n\n"
|
|
"• Puntos de Acceso:\n"
|
|
" Carnet universitario imprimible (/credential/my-card), modal rápido y perfil de usuario.\n\n"
|
|
"• Portal de Convenios y Beneficios (/benefits):\n"
|
|
" Descuentos categorizados en gastronomía, librerías y tecnología para la comunidad UniCABA.")
|
|
p_cr.font.size = Pt(11)
|
|
p_cr.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
add_footer(s9, 9)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 10: BEDELÍA UX Y CARTELERA OPERATIVA
|
|
# =========================================================================
|
|
s10 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s10)
|
|
add_header(s10, "Gestión Académica Integral", "Bedelía UX: Circuito de 9 Pasos, Cartelera y Libro de Calificaciones",
|
|
"Estandarización operativa, exportación oficial y actas de examen inmutables.")
|
|
|
|
c10 = create_card(s10, Inches(0.8), Inches(1.8), Inches(5.2), Inches(4.8))
|
|
tf10 = c10.text_frame
|
|
tf10.word_wrap = True
|
|
p = tf10.paragraphs[0]
|
|
p.text = "CIRCUITO SECUENCIAL ESTANDARIZADO"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_PURPLE
|
|
p.space_after = Pt(8)
|
|
p_b = tf10.add_paragraph()
|
|
p_b.text = ("• Flujo de 9 Pasos:\n"
|
|
" Sede ➔ Aulas ➔ Ciclo ➔ Carreras ➔ Asignaturas multi-carrera ➔ Comisiones ➔ Profesores ➔ Alumnos ➔ Reservas.\n\n"
|
|
"• Cartelera del Día:\n"
|
|
" Agrupación cronológica de cursada con exportación a Excel (UTF-8 BOM) e impresión A4 membretada (@media print).\n\n"
|
|
"• Grilla Semanal Drag & Drop:\n"
|
|
" FullCalendar con detección preventiva de colisiones (HTTP 409).\n\n"
|
|
"• Gradebook Institucional:\n"
|
|
" Matriz 2D de notas y cierre de actas inmutables (ACTA-YYYY-Sem-ID).")
|
|
p_b.font.size = Pt(11)
|
|
p_b.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
# Imagen derecha: Cartelera
|
|
add_image_safe(s10, "03_cartelera_clases_hoy.png", Inches(6.3), Inches(1.8), Inches(6.2), Inches(4.8))
|
|
|
|
add_footer(s10, 10)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 11: CALIDAD Y TESTS (131/131 PASSED)
|
|
# =========================================================================
|
|
s11 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s11)
|
|
add_header(s11, "Aseguramiento de Calidad", "Estrategia de Pruebas: 131 Tests en Pytest y Auditoría SAST/SCA",
|
|
"Cobertura exhaustiva de contratos, algoritmos, RAG, parsers y seguridad perimetral.")
|
|
|
|
# 4 Cards de Métricas de Calidad
|
|
kpis = [
|
|
("131 / 131", "TESTS AUTOMATIZADOS", "100% Passed en pytest cubriendo contratos FastAPI, Algoritmo Genético, RAG y DNI parsers.", COLOR_ACCENT_GREEN),
|
|
("0 FALLOS", "AUDITORÍA SAST", "Escaneo de código estático con bandit sobre más de 8.000 líneas. Cero vulnerabilidades.", COLOR_ACCENT_CYAN),
|
|
("0 CVEs", "AUDITORÍA SCA", "pip-audit y npm audit certificados contra la base de datos nacional OSV.", COLOR_ACCENT_PURPLE),
|
|
("PRINCIPIO 10", "TOLERANCIA CERO", "Inadmisible finalizar tareas con errores de IDE o compilador (@[current_problems]).", COLOR_ACCENT_AMBER)
|
|
]
|
|
for i, (big, title, desc, col) in enumerate(kpis):
|
|
left = Inches(0.8 + (i % 2) * 5.9)
|
|
top = Inches(1.8 + (i // 2) * 2.4)
|
|
c = create_card(s11, left, top, Inches(5.6), Inches(2.2), col)
|
|
tf = c.text_frame
|
|
tf.word_wrap = True
|
|
p_big = tf.paragraphs[0]
|
|
p_big.text = big
|
|
p_big.font.size = Pt(28)
|
|
p_big.font.bold = True
|
|
p_big.font.color.rgb = col
|
|
|
|
p_t = tf.add_paragraph()
|
|
p_t.text = title
|
|
p_t.font.size = Pt(11)
|
|
p_t.font.bold = True
|
|
p_t.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
p_d = tf.add_paragraph()
|
|
p_d.text = desc
|
|
p_d.font.size = Pt(10)
|
|
p_d.font.color.rgb = COLOR_TEXT_MUTED
|
|
|
|
add_footer(s11, 11)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 12: PRODUCCIÓN REAL EN PROXMOX LXC
|
|
# =========================================================================
|
|
s12 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s12)
|
|
add_header(s12, "Infraestructura Cloud", "Despliegue Continuo en Producción Institucional (Proxmox LXC)",
|
|
"Servidor real activo en eduspace.oemspot.com.ar con Nginx, SSL y PostgreSQL 15.")
|
|
|
|
c12 = create_card(s12, Inches(0.8), Inches(1.8), Inches(5.6), Inches(4.8))
|
|
tf12 = c12.text_frame
|
|
tf12.word_wrap = True
|
|
p = tf12.paragraphs[0]
|
|
p.text = "INFRAESTRUCTURA PRODUCTIVA"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_CYAN
|
|
p.space_after = Pt(8)
|
|
p_inf = tf12.add_paragraph()
|
|
p_inf.text = ("• Servidor de Producción:\n"
|
|
" Contenedor Linux LXC en Proxmox (IP 10.0.0.217).\n\n"
|
|
"• Dominio Oficial:\n"
|
|
" https://eduspace.oemspot.com.ar\n\n"
|
|
"• Proxy Inverso de Borde (Nginx):\n"
|
|
" Terminación SSL Let's Encrypt (A+), HTTP/2 y compresión Brotli/Gzip.\n\n"
|
|
"• Orquestación supervisada con systemd:\n"
|
|
" Servicios admin-edu-space-backend y admin-edu-space-frontend.\n\n"
|
|
"• Base de Datos ACID:\n"
|
|
" PostgreSQL 15 (classrooms_db) con 16 tablas relacionales normalizadas.")
|
|
p_inf.font.size = Pt(11)
|
|
p_inf.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
# Imagen derecha: Dashboard Bedelia
|
|
add_image_safe(s12, "02_dashboard_bedelia.png", Inches(6.8), Inches(1.8), Inches(5.7), Inches(4.8))
|
|
|
|
add_footer(s12, 12)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 13: DEMOSTRACIÓN EN VIVO (LIVE DEMO)
|
|
# =========================================================================
|
|
s13 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s13)
|
|
add_header(s13, "Defensa Práctica", "Demostración en Vivo: Flujo de Smoke Testing para la Cátedra",
|
|
"5 Hitos funcionales verificables en tiempo real en https://eduspace.oemspot.com.ar.")
|
|
|
|
c13 = create_card(s13, Inches(0.8), Inches(1.8), Inches(11.7), Inches(4.8), COLOR_ACCENT_GREEN)
|
|
tf13 = c13.text_frame
|
|
tf13.word_wrap = True
|
|
p = tf13.paragraphs[0]
|
|
p.text = "HOJA DE RUTA PARA LA DEMOSTRACIÓN ORAL (3-4 MINUTOS)"
|
|
p.font.size = Pt(14)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_GREEN
|
|
p.space_after = Pt(10)
|
|
|
|
demo_steps = (
|
|
"1. Login y Cartelera Operativa (Bedelía):\n"
|
|
" Ingreso con bedelia@edu-space.com ➔ Filtros por Día/Semana/Mes ➔ Exportación a Excel con UTF-8 BOM e Impresión A4 membretada.\n\n"
|
|
"2. Optimizador Genético & Interoperabilidad Spring Boot:\n"
|
|
" Ejecución del algoritmo genético en /genetic_optimizer ➔ Demostración del endpoint POST /api/v1/optimizer/spring-boot/sync en Swagger UI.\n\n"
|
|
"3. Copiloto IA UdeCi con RAG & Contexto en Vivo:\n"
|
|
" Apertura del chat ➔ Consulta: '¿Dónde curso hoy y qué notas tengo?' ➔ Inyección real de PostgreSQL y privacidad estricta de notas.\n\n"
|
|
"4. Control de Acceso Físico & Escaneo de DNI Argentino:\n"
|
|
" Consola en /reception/scanner ➔ Escaneo de DNI 34247025 (Carlos Tello) ➔ Señalización verde, tono de audio y resolución de aula física.\n\n"
|
|
"5. Credencial Digital Universitaria con QR Dinámico:\n"
|
|
" Visualización en /credential/my-card ➔ Rotación automática cada 3 segundos con ventana de gracia anti-captura de pantalla."
|
|
)
|
|
p_step = tf13.add_paragraph()
|
|
p_step.text = demo_steps
|
|
p_step.font.size = Pt(11)
|
|
p_step.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
add_footer(s13, 13)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 14: CONCLUSIÓN Y RÚBRICA (100 PUNTOS)
|
|
# =========================================================================
|
|
s14 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s14)
|
|
add_header(s14, "Evaluación y Cierre", "Conclusión: Cumplimiento Integral de la Rúbrica (100 Puntos)",
|
|
"Solución de vanguardia, producción real, IA local soberana e impacto operativo en UniCABA.")
|
|
|
|
# Tarjeta de Rúbrica
|
|
c14 = create_card(s14, Inches(0.8), Inches(1.8), Inches(11.7), Inches(4.8), COLOR_ACCENT_PURPLE)
|
|
tf14 = c14.text_frame
|
|
tf14.word_wrap = True
|
|
p = tf14.paragraphs[0]
|
|
p.text = "BALANCE DE CUMPLIMIENTO FRENTE A LA RÚBRICA OFICIAL (100 PUNTOS)"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_PURPLE
|
|
p.space_after = Pt(8)
|
|
|
|
rubric_text = (
|
|
"• Propuesta e Innovación (15/15 pts): Solución de valor real para UniCABA resolviendo la problemática de Bedelía.\n"
|
|
"• Arquitectura de Microservicios (20/20 pts): Desacople BFF Node.js + Core FastAPI ASGI + Bridge Spring Boot Java.\n"
|
|
"• MVP, Predictor e IA Local (25/25 pts): Algoritmo Genético NP-Hard (<4s) + Asistente LLM UdeCi con RAG embebido.\n"
|
|
"• Selección de Tecnologías y BD (10/10 pts): PostgreSQL 15, SQLAlchemy 2.0, Pydantic v2, Web Serial API y Web Audio API.\n"
|
|
"• Gestión Ágil y Repositorio (15/15 pts): Metodología SDD (13 specs EARS), Git continuo y releases semánticos v3.8.57.\n"
|
|
"• Documentación, Pruebas y Despliegue (10/10 pts): 131 tests (100% passed), SAST/SCA 0 fallos, producción Proxmox LXC.\n"
|
|
"• Exposición y Defensa Oral (5/5 pts): Presentación ejecutiva de alto impacto y demostración en vivo guiada.\n\n"
|
|
"¡MUCHAS GRACIAS POR SU ATENCIÓN! — QUEDO A DISPOSICIÓN DEL ING. ALEJANDRO VÁZQUEZ."
|
|
)
|
|
p_r = tf14.add_paragraph()
|
|
p_r.text = rubric_text
|
|
p_r.font.size = Pt(11)
|
|
p_r.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
|
|
add_footer(s14, 14)
|
|
|
|
# Guardar presentación
|
|
prs.save(OUTPUT_PPTX)
|
|
print(f"[+] ¡Presentación Ejecutiva generada exitosamente en {OUTPUT_PPTX}!")
|
|
|
|
if __name__ == "__main__":
|
|
build_presentation()
|