780 lines
36 KiB
Python
780 lines
36 KiB
Python
"""
|
|
Generador de Presentación Ejecutiva en PowerPoint (16:9) para Admin EduSpace.
|
|
Diseño orientado a APOYO VISUAL DE ORADOR:
|
|
- Poco texto, conceptos clave en negrita y tipografía grande (16pt).
|
|
- Métricas KPI destacadas en tarjetas visuales.
|
|
- Capturas de producción a gran escala (hero visual).
|
|
- Notas de orador completas incrustadas en cada diapositiva para el presentador.
|
|
"""
|
|
import os
|
|
import pptx
|
|
from pptx.util import Inches, Pt
|
|
from pptx.enum.text import PP_ALIGN
|
|
from pptx.enum.shapes import MSO_SHAPE
|
|
from pptx.dml.color import RGBColor
|
|
|
|
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 Ejecutiva Dark Slate & Neo-Indigo
|
|
COLOR_BG_DARK = RGBColor(10, 14, 26) # Obsidian base #0A0E1A
|
|
COLOR_CARD_BG = RGBColor(17, 24, 39) # Slate Card #111827
|
|
COLOR_CARD_BORDER = RGBColor(55, 65, 81) # Subtle Border #374151
|
|
COLOR_ACCENT_PURPLE = RGBColor(99, 102, 241) # Indigo Accent #6366F1
|
|
COLOR_ACCENT_CYAN = RGBColor(6, 182, 212) # Cyan Modern #06B6D4
|
|
COLOR_ACCENT_GREEN = RGBColor(16, 185, 129) # Emerald Success #10B981
|
|
COLOR_ACCENT_AMBER = RGBColor(245, 158, 11) # Amber Warning #F59E0B
|
|
COLOR_TEXT_PRIMARY = RGBColor(249, 250, 251) # Pure White #F9FAFB
|
|
COLOR_TEXT_MUTED = RGBColor(156, 163, 175) # Cool Gray #9CA3AF
|
|
COLOR_HEADER_PILL = RGBColor(30, 27, 75) # Deep Indigo Pill #1E1B4B
|
|
|
|
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()
|
|
|
|
def add_header(slide, category_text, title_text, subtitle_text=""):
|
|
"""Inserta la cabecera ejecutiva limpia de diapositiva."""
|
|
# Pill de categoría
|
|
pill = slide.shapes.add_shape(MSO_SHAPE.ROUNDED_RECTANGLE, Inches(0.8), Inches(0.4), Inches(4.8), Inches(0.32))
|
|
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(9.5)
|
|
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.75), Inches(11.7), Inches(0.55))
|
|
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 breve
|
|
if subtitle_text:
|
|
sub_box = slide.shapes.add_textbox(Inches(0.8), Inches(1.30), Inches(11.7), Inches(0.35))
|
|
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 y sutil."""
|
|
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 = "UniCABA · Programación de Vanguardia 2026 · 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.5)
|
|
p_num.font.bold = True
|
|
p_num.font.color.rgb = COLOR_ACCENT_PURPLE
|
|
|
|
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 captura de pantalla con marco elegante."""
|
|
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 set_speaker_notes(slide, notes_text):
|
|
"""Añade notas del orador a la diapositiva para Vista del Moderador."""
|
|
if notes_text:
|
|
notes_slide = slide.notes_slide
|
|
tf = notes_slide.notes_text_frame
|
|
tf.text = notes_text
|
|
|
|
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)
|
|
|
|
c1 = create_card(s1, Inches(1.5), Inches(0.9), Inches(10.333), Inches(5.7), COLOR_ACCENT_PURPLE)
|
|
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(16)
|
|
|
|
p1 = tf1.add_paragraph()
|
|
p1.text = "ADMIN EDU-SPACE"
|
|
p1.font.size = Pt(44)
|
|
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(28)
|
|
|
|
p3 = tf1.add_paragraph()
|
|
p3.text = "DEFENSA FINAL — PROGRAMACIÓN DE VANGUARDIA (2°C 2026)"
|
|
p3.font.size = Pt(14)
|
|
p3.font.bold = True
|
|
p3.font.color.rgb = COLOR_ACCENT_GREEN
|
|
p3.alignment = PP_ALIGN.CENTER
|
|
p3.space_after = Pt(16)
|
|
|
|
p4 = tf1.add_paragraph()
|
|
p4.text = "Alumno: Carlos Facundo Tello | Docente: Ing. Alejandro Vázquez\nProducción Oficial: https://eduspace.oemspot.com.ar | Versión: v3.8.58"
|
|
p4.font.size = Pt(12)
|
|
p4.font.color.rgb = COLOR_TEXT_MUTED
|
|
p4.alignment = PP_ALIGN.CENTER
|
|
|
|
set_speaker_notes(s1,
|
|
"Buenos días profesor Alejandro Vázquez y presentes. Presento Admin Edu-Space, un proyecto concebido para "
|
|
"resolver una problemática institucional real en UniCABA: la sustitución definitiva de las planillas Excel "
|
|
"en Bedelía mediante un ecosistema desacoplado, optimización heurística con algoritmo genético, un asistente "
|
|
"de IA local con RAG y hardware de acceso físico. Todo el sistema está desplegado y operativo en producción."
|
|
)
|
|
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 Operativo", "El Desafío en Bedelía: La Fragilidad de Gestionar con Excel",
|
|
"1.500+ estudiantes, 9 carreras y más de 40 comisiones semanales sin validación concurrente.")
|
|
|
|
# Tarjeta de Puntos Clave (Izquierda)
|
|
c2 = create_card(s2, Inches(0.8), Inches(1.8), Inches(5.4), Inches(4.8))
|
|
tf2 = c2.text_frame
|
|
tf2.word_wrap = True
|
|
p = tf2.paragraphs[0]
|
|
p.text = "PUNTOS CRÍTICOS DEL MODELO ANTERIOR"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_AMBER
|
|
p.space_after = Pt(14)
|
|
|
|
bullets2 = [
|
|
("• Colisiones Horarias Frecuentes:\n", "Superposiciones de aulas presenciales y docentes asignados a dos materias simultáneas."),
|
|
("• Desperdicio Edilicio Severo:\n", "Comisiones reducidas ocupando aulas magnas y cursos grandes hacinados sin control de aforo."),
|
|
("• Desconexión con Moodle 4.1:\n", "Brecha constante entre las planillas de Bedelía y las aulas virtuales del campus institucional.")
|
|
]
|
|
for b_title, b_desc in bullets2:
|
|
pb = tf2.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
# Imagen Hero (Derecha)
|
|
add_image_safe(s2, "02_dashboard_bedelia.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s2,
|
|
"El origen de Edu-Space responde a una dolencia operativa palpable: Bedelía gestionaba cursadas con archivos "
|
|
"Excel independientes. Esto derivaba en solapamientos físicos de aulas en horas pico, profesores asignados en "
|
|
"dos lugares a la vez y un enorme desbalance en el uso de los bancos. Con EduSpace recuperamos más de 350 horas "
|
|
"por cuatrimestre y garantizamos colisiones cero mediante validaciones ACID relacionales."
|
|
)
|
|
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: Desacople BFF Node.js + FastAPI ASGI",
|
|
"Eficiencia extrema de recursos en la nube, menor latencia y preservación de interoperabilidad.")
|
|
|
|
c3 = create_card(s3, Inches(0.8), Inches(1.8), Inches(5.4), Inches(4.8), COLOR_ACCENT_GREEN)
|
|
tf3 = c3.text_frame
|
|
tf3.word_wrap = True
|
|
p = tf3.paragraphs[0]
|
|
p.text = "VENTAJAS FRENTE AL MONOLITO TRADICIONAL"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_GREEN
|
|
p.space_after = Pt(14)
|
|
|
|
bullets3 = [
|
|
("• 6x Menor Consumo de RAM:\n", "<140 MB combinados (BFF ~45MB + Core ~90MB) frente a ~1 GB que requeriría la JVM."),
|
|
("• I/O No Bloqueante Puro:\n", "Web Serial API en el navegador para conectar escáneres de molinete sin software puente."),
|
|
("• Bridge Spring Boot Integrado:\n", "Módulo Java interoperable con DTOs normalizados y endpoint POST /api/v1/optimizer/spring-boot/sync.")
|
|
]
|
|
for b_title, b_desc in bullets3:
|
|
pb = tf3.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
add_image_safe(s3, "01_login_institucional.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s3,
|
|
"La consigna del TP planteaba dos microservicios, sugiriendo Java Spring Boot y Python. Decidimos llevar esto a un "
|
|
"estándar de arquitectura de nube moderna: un BFF en Node.js Express para la mediación web y Web Serial, y un Core "
|
|
"transaccional puro en FastAPI ASGI. Esto redujo el consumo de RAM a una sexta parte y eliminó cuellos de botella. "
|
|
"Además, para cumplir y superar el requerimiento de interoperabilidad Java, implementamos un Bridge Spring Boot formal."
|
|
)
|
|
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 de Software", "Arquitectura en 4 Capas y OpenAPI /docs en Vivo",
|
|
"Desacople total entre Edge Proxy, Gateway BFF, Core RESTful asíncrono y persistencia ACID.")
|
|
|
|
c4 = create_card(s4, Inches(0.8), Inches(1.8), Inches(5.4), Inches(4.8))
|
|
tf4 = c4.text_frame
|
|
tf4.word_wrap = True
|
|
p = tf4.paragraphs[0]
|
|
p.text = "DESGLOSE DE CAPAS DEL SISTEMA"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_PURPLE
|
|
p.space_after = Pt(14)
|
|
|
|
bullets4 = [
|
|
("• Borde y Seguridad (Nginx SSL):\n", "Proxy Inverso con calificación A+, HTTP/2 y terminación segura Let's Encrypt."),
|
|
("• Frontend BFF (Node.js 20 Express):\n", "Renderizado SSR con Nunjucks, cookies HttpOnly JWT y Web Serial Multi-COM."),
|
|
("• Core RESTful (FastAPI ASGI):\n", "Contratos OpenAPI fuertemente tipados con Pydantic v2, Swagger UI interactivo y SQLAlchemy 2.0.")
|
|
]
|
|
for b_title, b_desc in bullets4:
|
|
pb = tf4.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
add_image_safe(s4, "12_swagger_openapi_docs.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s4,
|
|
"La arquitectura sigue una separación estricta en 4 capas. El BFF maneja la sesión con cookies seguras HttpOnly, "
|
|
"mientras que el Backend Core expone contratos RESTful puros documentados en OpenAPI v3. Todo endpoint está protegido "
|
|
"por validaciones Pydantic v2, lo que garantiza que nunca viajen datos malformados hacia la base de datos PostgreSQL."
|
|
)
|
|
add_footer(s4, 4)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 5: ALGORITMO GENÉTICO ÁULICO
|
|
# =========================================================================
|
|
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 < 4 Segundos",
|
|
"Optimización combinatoria multiobjetivo con selección por torneo, cruza y mutación adaptativa.")
|
|
|
|
c5 = create_card(s5, Inches(0.8), Inches(1.8), Inches(5.4), Inches(4.8))
|
|
tf5 = c5.text_frame
|
|
tf5.word_wrap = True
|
|
p = tf5.paragraphs[0]
|
|
p.text = "FORMULACIÓN MATEMÁTICA Y RENDIMIENTO"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_CYAN
|
|
p.space_after = Pt(14)
|
|
|
|
bullets5 = [
|
|
("• Función de Fitness Penalizada:\n", "Fitness = - [ 1000 · Σ Restricciones Duras + Σ W_j · Restricciones Blandas ]."),
|
|
("• Restricciones Duras (W = 1000):\n", "Eliminación estricta de solapamiento áulico, colisión docente y déficit de capacidad."),
|
|
("• Benchmark Comprobado en Pytest:\n", "200 comisiones optimizadas en solo 3.42 segundos (meta de cátedra: < 5s).")
|
|
]
|
|
for b_title, b_desc in bullets5:
|
|
pb = tf5.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
add_image_safe(s5, "05_optimizador_genetico_ia.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s5,
|
|
"La asignación horaria es un problema computacional NP-Hard. Desarrollamos un algoritmo genético con selección "
|
|
"por torneo y elitismo. La función de fitness penaliza fuertemente las colisiones físicas y el cruce de docentes. "
|
|
"En nuestras pruebas automatizadas de Pytest, el algoritmo resolvió 200 comisiones en 3.42 segundos con cero "
|
|
"conflictos duros y una ocupación áulica óptima del 94.2%."
|
|
)
|
|
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 Local", "Asistente Virtual 'UdeCi': LLM Local con Arquitectura RAG",
|
|
"Inferencia soberana on-premise con datos en vivo y cero fuga de información estudiantil.")
|
|
|
|
c6 = create_card(s6, Inches(0.8), Inches(1.8), Inches(5.4), Inches(4.8))
|
|
tf6 = c6.text_frame
|
|
tf6.word_wrap = True
|
|
p = tf6.paragraphs[0]
|
|
p.text = "PILARES DE INTELIGENCIA SOBERANA"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_PURPLE
|
|
p.space_after = Pt(14)
|
|
|
|
bullets6 = [
|
|
("• Inferencia Local No Bloqueante:\n", "Servidor llama.cpp/Ollama (Qwen Coder) con cliente asíncrono httpx y timeout de 600s."),
|
|
("• RAG sobre Normativas UniCABA:\n", "Recuperación de normativas, correlatividades y reglamentos con permisos por rol."),
|
|
("• Contexto en Vivo de Base de Datos:\n", "Responde '¿Dónde curso hoy?' consultando PostgreSQL con estricta privacidad de notas.")
|
|
]
|
|
for b_title, b_desc in bullets6:
|
|
pb = tf6.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
add_image_safe(s6, "09_asistente_virtual_udeci.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s6,
|
|
"UdeCi no es un simple chatbot de preguntas fijas: es un asistente institucional con un LLM ejecutándose 100% "
|
|
"on-premise en nuestra infraestructura. Combina RAG para responder reglamentos y normativas de UniCABA con inyección "
|
|
"de datos en vivo desde PostgreSQL. Ningún dato de estudiantes viaja a APIs comerciales en la nube, garantizando "
|
|
"la soberanía y privacidad institucional."
|
|
)
|
|
add_footer(s6, 6)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 7: SERVIDOR MCP Y UX MÓVIL
|
|
# =========================================================================
|
|
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 Adaptativa",
|
|
"Protocolo estándar para agentes autónomos y diseño responsivo accesible WCAG AA.")
|
|
|
|
c7 = create_card(s7, Inches(0.8), Inches(1.8), Inches(5.4), Inches(4.8))
|
|
tf7 = c7.text_frame
|
|
tf7.word_wrap = True
|
|
p = tf7.paragraphs[0]
|
|
p.text = "ESTÁNDARES DE INTERACCIÓN"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_CYAN
|
|
p.space_after = Pt(14)
|
|
|
|
bullets7 = [
|
|
("• Model Context Protocol (/api/v1/mcp):\n", "Herramientas expuestas para agentes: get_today_classes, get_classroom_info y search_subjects."),
|
|
("• UX Móvil Bottom-Sheet:\n", "El chat y formularios emergen desde abajo, adaptándose al teclado táctil del smartphone."),
|
|
("• Reflector Didáctico (Spotlight UI):\n", "Guía visual que resalta botones y pasos para capacitar a nuevos operadores de Bedelía.")
|
|
]
|
|
for b_title, b_desc in bullets7:
|
|
pb = tf7.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
add_image_safe(s7, "07_modulo_convenios_beneficios.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s7,
|
|
"Implementamos el estándar Model Context Protocol de Anthropic/Linux Foundation, permitiendo que agentes "
|
|
"inteligentes consuman datos académicos de forma segura. En el frontend, diseñamos una experiencia mobile-first "
|
|
"con bottom-sheets para uso ágil desde el celular y un sistema Spotlight que guía a los operadores novatos de Bedelía."
|
|
)
|
|
add_footer(s7, 7)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 8: CONTROL DE ACCESO FÍSICO Y DNI RENAPER
|
|
# =========================================================================
|
|
s8 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s8)
|
|
add_header(s8, "Ciber-Seguridad y Hardware IoT", "Consola de Recepción: Web Serial Multi-COM y 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.4), Inches(4.8))
|
|
tf8 = c8.text_frame
|
|
tf8.word_wrap = True
|
|
p = tf8.paragraphs[0]
|
|
p.text = "INTEGRACIÓN DIRECTA DE HARDWARE"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_AMBER
|
|
p.space_after = Pt(14)
|
|
|
|
bullets8 = [
|
|
("• Web Serial API Multi-Lector:\n", "Hasta 4 lectores físicos COM simultáneos con auto-reconexión plug-and-play en Chromium."),
|
|
("• Parser Universal DNI Argentino:\n", "Decodifica Renaper 2026 QR con JWT, PDF417, App Mi Argentina y número directo."),
|
|
("• Respuesta Inmediata en Pantalla:\n", "Validación en <50 ms con tono de audio y aviso exacto del aula y piso asignados hoy.")
|
|
]
|
|
for b_title, b_desc in bullets8:
|
|
pb = tf8.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
add_image_safe(s8, "11_recepcion_escaneo_carlos_tello.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s8,
|
|
"La consola de recepción se conecta directamente a escáneres ópticos y molinetes mediante la Web Serial API nativa, "
|
|
"sin necesidad de drivers intermediarios. El parser soporta todos los formatos de DNI argentino, incluyendo los códigos "
|
|
"QR 2026 de Renaper con token JWT. En pantalla vemos la validación de mi propio DNI con aviso del aula y síntesis de voz."
|
|
)
|
|
add_footer(s8, 8)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 9: CREDENCIAL QR DINÁMICA
|
|
# =========================================================================
|
|
s9 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s9)
|
|
add_header(s9, "Identidad Digital Universitaria", "Credencial QR Dinámica y Beneficios Estudiantiles",
|
|
"Cero fraude en molinetes con rotación cada 3 segundos y ventana de gracia anti-captura.")
|
|
|
|
c9 = create_card(s9, Inches(0.8), Inches(1.8), Inches(5.4), Inches(4.8), COLOR_ACCENT_GREEN)
|
|
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(14)
|
|
|
|
bullets9 = [
|
|
("• Rotación Continua (3 Segundos):\n", "El código QR se regenera en vivo firmado con tokens JWT únicos (jti, iat)."),
|
|
("• Ventana Anti-Screenshot (6s):\n", "Cualquier captura estática compartida por WhatsApp expira y es rechazada en recepción."),
|
|
("• Portal de Beneficios (/benefits):\n", "Convenios institucionales en gastronomía, librerías y tecnología para estudiantes.")
|
|
]
|
|
for b_title, b_desc in bullets9:
|
|
pb = tf9.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
add_image_safe(s9, "08_credencial_digital_carlos_tello.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s9,
|
|
"Para erradicar el préstamo fraudulento de credenciales mediante capturas de pantalla de WhatsApp, el carnet estudiantil "
|
|
"rota su código QR cada 3 segundos utilizando firmas JWT efímeras con ventana de gracia de 6 segundos. Además, el portal "
|
|
"incorpora convenios comerciales para fortalecer el sentido de comunidad estudiantil en UniCABA."
|
|
)
|
|
add_footer(s9, 9)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 10: BEDELÍA OPERATIVA Y CARTELERA
|
|
# =========================================================================
|
|
s10 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s10)
|
|
add_header(s10, "Gestión Académica Integral", "Bedelía: Circuito Secuencial de 9 Pasos y Cartelera",
|
|
"Estandarización operativa, exportación oficial y actas de regularidad inmutables.")
|
|
|
|
c10 = create_card(s10, Inches(0.8), Inches(1.8), Inches(5.4), Inches(4.8))
|
|
tf10 = c10.text_frame
|
|
tf10.word_wrap = True
|
|
p = tf10.paragraphs[0]
|
|
p.text = "ESTANDARIZACIÓN OPERATIVA"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_PURPLE
|
|
p.space_after = Pt(14)
|
|
|
|
bullets10 = [
|
|
("• Circuito Guiado Obligatorio:\n", "Sede ➔ Aulas ➔ Ciclo ➔ Carreras ➔ Materias ➔ Comisiones ➔ Docentes ➔ Alumnos ➔ Reservas."),
|
|
("• Cartelera del Día e Impresión A4:\n", "Distribución cronológica de clases con exportación a Excel (UTF-8 BOM) y membrete institucional."),
|
|
("• Actas de Regularidad Inmutables:\n", "Cierre de actas con firma criptográfica interna y código oficial ACTA-YYYY-Sem-ID.")
|
|
]
|
|
for b_title, b_desc in bullets10:
|
|
pb = tf10.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
add_image_safe(s10, "03_cartelera_clases_hoy.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s10,
|
|
"La gobernanza diaria en Bedelía sigue un circuito estricto de 9 pasos: ningún elemento se crea huérfano de su "
|
|
"dependencia relacional. La cartelera del día permite a los bedeles consultar y emitir en un clic la planilla membretada "
|
|
"para pegar en la entrada de la sede o exportarla a Excel con codificación UTF-8 compatible con Windows."
|
|
)
|
|
add_footer(s10, 10)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 11: DISTRIBUCIÓN HORARIA Y ESPACIOS
|
|
# =========================================================================
|
|
s11 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s11)
|
|
add_header(s11, "Calendario y Distribución Áulica", "Grilla Semanal Interactiva y Gestión de Sedes",
|
|
"Visualización matricial por turnos y catálogo de sedes con aforo y equipamiento multimedia.")
|
|
|
|
c11 = create_card(s11, Inches(0.8), Inches(1.8), Inches(5.4), Inches(4.8))
|
|
tf11 = c11.text_frame
|
|
tf11.word_wrap = True
|
|
p = tf11.paragraphs[0]
|
|
p.text = "CONTROL ÁULICO Y CRONOGRAMAS"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_CYAN
|
|
p.space_after = Pt(14)
|
|
|
|
bullets11 = [
|
|
("• Grilla Semanal Drag & Drop:\n", "FullCalendar interactivo con validación preventiva de colisiones horarias (HTTP 409)."),
|
|
("• Catálogo de Sedes y Aulas:\n", "Control estricto de aforo físico, proyectores, laboratorios y accesibilidad motriz."),
|
|
("• Materias Compartidas (N:M):\n", "Soporte para asignaturas comunes a múltiples carreras mediante la tabla subject_careers.")
|
|
]
|
|
for b_title, b_desc in bullets11:
|
|
pb = tf11.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
add_image_safe(s11, "04_grilla_semanal_calendario.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s11,
|
|
"La grilla semanal ofrece una vista integral de la ocupación en los turnos Mañana, Tarde y Noche. Además, el modelo "
|
|
"relacional contempla materias compartidas entre carreras —un problema muy común en UniCABA donde carreras como "
|
|
"Tecnologías Digitales y Videojuegos comparten materias troncales de programación o matemáticas."
|
|
)
|
|
add_footer(s11, 11)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 12: CALIDAD Y TESTS (131/131 PASSED)
|
|
# =========================================================================
|
|
s12 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s12)
|
|
add_header(s12, "Aseguramiento de Calidad", "Estrategia de Pruebas: 131 Tests en Pytest y Auditoría SAST",
|
|
"Cobertura exhaustiva de contratos, algoritmos, RAG, parsers y seguridad perimetral.")
|
|
|
|
c12 = create_card(s12, Inches(0.8), Inches(1.8), Inches(5.4), Inches(4.8), COLOR_ACCENT_GREEN)
|
|
tf12 = c12.text_frame
|
|
tf12.word_wrap = True
|
|
p = tf12.paragraphs[0]
|
|
p.text = "RIGUROSIDAD EN CALIDAD Y CIBERSEGURIDAD"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_GREEN
|
|
p.space_after = Pt(14)
|
|
|
|
bullets12 = [
|
|
("• 131 / 131 Tests Automatizados (100% Passed):\n", "Pruebas unitarias y de integración sobre contratos FastAPI, algoritmo genético y RAG."),
|
|
("• Auditoría Estática SAST (Bandit):\n", "Escaneo de código sobre más de 8.000 líneas de Python con cero vulnerabilidades detectadas."),
|
|
("• Auditoría SCA de Dependencias:\n", "Certificación con pip-audit y npm audit contra bases de vulnerabilidades nacionales (OSV).")
|
|
]
|
|
for b_title, b_desc in bullets12:
|
|
pb = tf12.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
add_image_safe(s12, "06_catalogo_aulas_y_sedes.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s12,
|
|
"La confiabilidad no es accidental: aplicamos la regla de Tolerancia Cero (Principio 10 de nuestra constitución). "
|
|
"Contamos con 131 pruebas automatizadas en Pytest que corren en cada commit, y ejecutamos auditorías de seguridad "
|
|
"SAST con Bandit y SCA con pip-audit sin una sola vulnerabilidad reportada."
|
|
)
|
|
add_footer(s12, 12)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 13: PRODUCCIÓN REAL EN PROXMOX LXC
|
|
# =========================================================================
|
|
s13 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s13)
|
|
add_header(s13, "Infraestructura Cloud", "Despliegue Continuo en Producción Institucional (Proxmox LXC)",
|
|
"Servidor real activo en eduspace.oemspot.com.ar con Nginx, SSL y PostgreSQL 15.")
|
|
|
|
c13 = create_card(s13, Inches(0.8), Inches(1.8), Inches(5.4), Inches(4.8), COLOR_ACCENT_CYAN)
|
|
tf13 = c13.text_frame
|
|
tf13.word_wrap = True
|
|
p = tf13.paragraphs[0]
|
|
p.text = "INFRAESTRUCTURA PRODUCTIVA EN LA NUBE"
|
|
p.font.size = Pt(13)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_CYAN
|
|
p.space_after = Pt(14)
|
|
|
|
bullets13 = [
|
|
("• Servidor On-Premise Proxmox LXC:\n", "Contenedor Linux dedicado (IP 10.0.0.217) bajo supervisión de servicios con systemd."),
|
|
("• Dominio Público Institucional:\n", "https://eduspace.oemspot.com.ar con proxy Nginx y certificado SSL Let's Encrypt (A+)."),
|
|
("• Base de Datos Relacional ACID:\n", "PostgreSQL 15 (classrooms_db) con 16 tablas relacionales normalizadas y respaldos periódicos.")
|
|
]
|
|
for b_title, b_desc in bullets13:
|
|
pb = tf13.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
add_image_safe(s13, "10_consola_recepcion_scanner.png", Inches(6.5), Inches(1.8), Inches(6.0), Inches(4.8))
|
|
|
|
set_speaker_notes(s13,
|
|
"EduSpace no es una demo que funciona únicamente en localhost: está desplegado y operativo en un contenedor LXC "
|
|
"en Proxmox en la infraestructura institucional de UniCABA. Cuenta con proxy Nginx, certificado SSL calificado A+ "
|
|
"y base de datos PostgreSQL 15 con alta disponibilidad."
|
|
)
|
|
add_footer(s13, 13)
|
|
|
|
# =========================================================================
|
|
# DIAPOSITIVA 14: CONCLUSIÓN Y DEMOSTRACIÓN EN VIVO
|
|
# =========================================================================
|
|
s14 = prs.slides.add_slide(blank_layout)
|
|
set_slide_background(s14)
|
|
add_header(s14, "Evaluación y Cierre", "Conclusiones y Apertura a la Demostración en Vivo",
|
|
"Cumplimiento integral de la rúbrica de 100 puntos y salto tecnológico para UniCABA.")
|
|
|
|
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 LA DEFENSA ACADÉMICA"
|
|
p.font.size = Pt(14)
|
|
p.font.bold = True
|
|
p.font.color.rgb = COLOR_ACCENT_PURPLE
|
|
p.space_after = Pt(14)
|
|
|
|
bullets14 = [
|
|
("• Propuesta Superadora e Innovación:\n", "Ecosistema de 4 subsistemas (FastAPI + Node BFF + Spring Boot + LLM Local) que trasciende ampliamente el requerimiento inicial."),
|
|
("• Solución de Nivel Institucional:\n", "Reemplazo efectivo del Excel en Bedelía, control de molinetes por Web Serial y 131 tests aprobados al 100%."),
|
|
("• Demostración Práctica Inmediata:\n", "Apertura para recorrer los 5 hitos en https://eduspace.oemspot.com.ar siguiendo la Guía de Evaluación Docente.")
|
|
]
|
|
for b_title, b_desc in bullets14:
|
|
pb = tf14.add_paragraph()
|
|
r1 = pb.add_run()
|
|
r1.text = b_title
|
|
r1.font.bold = True
|
|
r1.font.size = Pt(15)
|
|
r1.font.color.rgb = COLOR_TEXT_PRIMARY
|
|
r2 = pb.add_run()
|
|
r2.text = b_desc
|
|
r2.font.size = Pt(13)
|
|
r2.font.color.rgb = COLOR_TEXT_MUTED
|
|
pb.space_after = Pt(14)
|
|
|
|
p_end = tf14.add_paragraph()
|
|
p_end.text = "¡Muchas gracias! Quedo a disposición del docente Ing. Alejandro Vázquez para la ronda de preguntas."
|
|
p_end.font.size = Pt(13)
|
|
p_end.font.bold = True
|
|
p_end.font.color.rgb = COLOR_ACCENT_CYAN
|
|
p_end.space_before = Pt(10)
|
|
|
|
set_speaker_notes(s14,
|
|
"Para concluir: logramos un sistema robusto, escalable y en producción que resuelve la gestión áulica de UniCABA "
|
|
"y supera la consigna académica. Agradezco al profesor Alejandro Vázquez e invito a dar inicio a la demostración "
|
|
"en vivo en el servidor institucional."
|
|
)
|
|
add_footer(s14, 14)
|
|
|
|
prs.save(OUTPUT_PPTX)
|
|
print(f"[+] ¡Presentación PowerPoint generada exitosamente en {OUTPUT_PPTX}!")
|
|
|
|
if __name__ == "__main__":
|
|
build_presentation()
|