Skip to main content

Pensunet

Simulador de la red de prerrequisitos de los pensum FCMN (Física, Química, Biología y Matemáticas) de la Universidad Distrital Francisco José de Caldas (Bogotá).

Esta versión cubre la red de prerrequisitos, indicadores topológicos de cuello de botella, complejidad curricular al estilo de Curricular Analytics, Monte Carlo del tiempo de grado y una interfaz Streamlit (también empaquetada en Docker).

Objetivo

Pensunet modela el pensum como un grafo dirigido de prerrequisitos y estima indicadores de bloqueo, posponimiento y tiempo esperado hasta el grado a partir de tasas de aprobación agregadas.

Instalación

Se requiere Python 3.10 o superior.

python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

Interfaz Streamlit (opcional):

pip install -e ".[ui]"

Uso

from pensunet import SimuladorPensum

simulador = SimuladorPensum.desde_programa("fisica")  # o quimica, biologia, matematicas
simulador.cargar()
indicadores = simulador.indicadores()
complejidad = simulador.complejidad()  # retraso, bloqueo y h(v) por asignatura

Monte Carlo del tiempo de grado (usa las tasas cargadas; Trabajo de Grado y juicios expertos ya vienen completados en cargar()):

from pensunet.dominio.escenario import Escenario

resultado = simulador.simular(Escenario(n_estudiantes=2000, semilla=1))
resultado.resumen(semestres_a_tiempo=12)
resultado.tabla_asignaturas_que_frenan(simulador.red, n=5)

CLI: python examples/ejemplo_cargar_red.py --programa quimica.

Interfaz Streamlit:

pip install -e ".[ui]"
python examples/ejecutar_interfaz.py

Con Docker (sin Python local):

docker compose up --build
# abrir http://localhost:8501

Pruebas:

pytest
ruff check .

La CI (.github/workflows/ci.yml) corre ruff y pytest en Python 3.10 y 3.12, y construye la imagen Docker en cada push a main y en cada PR.

Estructura

src/pensunet/
  facade.py                 Fachada SimuladorPensum
  datos/                    Lector CSV, fábrica y adaptador UD
  dominio/                  DAG, indicadores, complejidad, escenario y figura
  simulacion/               Estrategia y Monte Carlo del tiempo de grado
  ui/                       Interfaz Streamlit (app.py) y páginas
data/reference/             Pensum y prerrequisitos
data/processed/             Tasas de aprobación agregadas por asignatura
data/private/               Ignorado por git: no guardar microdatos
.streamlit/config.toml      Tema de la interfaz
Dockerfile, docker-compose.yml, .github/workflows/ci.yml
.github/workflows/docs.yml  Sphinx → GitHub Pages
docs/                       Sphinx, manuales y API
examples/
tests/

Los patrones de diseño se documentan en docs/manual_tecnico.md.

Documentación

Manuales y API: https://isabelnieto900.github.io/pensunet/.

pip install -e ".[docs]"
sphinx-build -W -b html docs docs/_build/html

Licencia

Licencia MIT provisional (LICENSE). Cómo citar: CITATION.cff.

Metadata

Release files for pensunet 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pensunet 0.1.1
File Size Uploaded Provenance Actions
pensunet-0.1.1.tar.gz 98.8 kB Without provenance Details for pensunet-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pensunet 0.1.1
File Interpreter ABI Platform Actions
pensunet-0.1.1-py3-none-any.whl Python 3 none any Details for pensunet-0.1.1-py3-none-any.whl

Total release size: 209.6 kB

Release files / pensunet-0.1.1.tar.gz

Download URL pensunet-0.1.1.tar.gz
Size 98.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4fb049268a5fec1160b40d5a6ceaedc9ea9ef315eba662b38bd5a6a81db612eb
BLAKE2b-256 checksum
How to use checksums
31baa292c95fb8bf37313fbc0ee35fcb06c5d4e0b1a1ddf17f30b682c20478fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pensunet-0.1.1-py3-none-any.whl

Download URL pensunet-0.1.1-py3-none-any.whl
Size 110.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
706535099888b1759f712efe23d5fd53c08e81518484c24cc8c0e2d2e2d9137b
BLAKE2b-256 checksum
How to use checksums
09b1a3362f0cd7d644b49240fb281f8da2fe58c7bc9d3a19045c5742c6f735fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for pensunet 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page