How stack-dos/app_estadisticas works
StatsPro Basketball is an offline-first desktop app for Córdoba basketball clubs. Coaches register and sign in, manage clubs, players, competitions, categories and good-faith rosters, then record matches and consult boxscores, team totals and club leaders. The Flet app is the composition root for use cases; application logic uses domain repository contracts, with SQLite providing local persistence. The README also documents version-update notices. Edges reflect explicit README statements or the supplied source index and excerpts; unsampled wiring is not assumed.
Main entry points: app.py Flet app · cargar_partido.py Load match · carga_partido_screen.py Match entry · competencia_repositorio.py Competition contract
Components 26
Desktop interface
- Flet app
src/infraestructura/ui/flet/app.py - Match entry
src/infraestructura/ui/flet/screens/carga_partido_screen.py - Match sheet
src/infraestructura/ui/flet/components/planilla_boxscore.py - Management screens
src/infraestructura/ui/flet/screens
Application workflows
- Load match
src/aplicacion/casos_uso/cargar_partido.py - Good-faith roster
src/aplicacion/casos_uso/listar_lista_buena_fe.py - Competition enrollment
src/aplicacion/casos_uso/inscribir_club_competencia.py - Match queries
src/aplicacion/casos_uso/obtener_boxscore_partido.py - Match DTOs
src/aplicacion/dtos/partido_dto.py - Club DTOs
src/aplicacion/dtos/club_dto.py - Competition DTOs
src/aplicacion/dtos/competencia_dto.py - Player DTOs
src/aplicacion/dtos/jugador_dto.py
Basketball domain
- Club
src/dominio/entidades/club.py - Competition and roster
src/dominio/entidades/competencia.py - Player
src/dominio/entidades/jugador.py - Match statistics
src/dominio/entidades/partido.py - Domain errors
src/dominio/exceptions.py - Competition contract
src/dominio/repositorios/competencia_repositorio.py - Match contract
src/dominio/repositorios/partido_repositorio.py
Local persistence
- SQLite database
src/infraestructura/persistencia/database_manager.py - SQLite competitions
src/infraestructura/repositorios/sqlite_competencia_repositorio.py - SQLite matches
src/infraestructura/repositorios/sqlite_partido_repositorio.py
Session and updates
- Session manager
src/aplicacion/servicios/session_manager.py - Release checker
src/infraestructura/github_releases_fuente.py
Other components
- Coach
- GitHub Releases
Connections 27
- Coach → Flet app: uses
README.md - Flet app → Match entry: routes to
src/infraestructura/ui/flet/app.py - Flet app → Management screens: provides GUI
README.md - Flet app → Load match: wires
src/infraestructura/ui/flet/app.py - Flet app → Session manager: creates
src/aplicacion/servicios/session_manager.py - Match entry → Load match: calls
src/infraestructura/ui/flet/screens/carga_partido_screen.py - Match entry → Good-faith roster: calls
src/infraestructura/ui/flet/screens/carga_partido_screen.py - Match entry → Match queries: calls
src/infraestructura/ui/flet/screens/carga_partido_screen.py - Match entry → Match sheet: uses
src/infraestructura/ui/flet/components/planilla_boxscore.py - Load match → Match contract: saves through
src/aplicacion/casos_uso/cargar_partido.py - Load match → Competition contract: checks roster
src/aplicacion/casos_uso/cargar_partido.py - Load match → Match statistics: builds
src/aplicacion/casos_uso/cargar_partido.py - Load match → Match DTOs: accepts and returns
src/aplicacion/casos_uso/cargar_partido.py - Good-faith roster → Competition contract: queries
src/aplicacion/casos_uso/listar_lista_buena_fe.py - Good-faith roster → Player DTOs: returns
src/aplicacion/casos_uso/listar_lista_buena_fe.py - Competition enrollment → Competition contract: enrolls through
src/aplicacion/casos_uso/inscribir_club_competencia.py - Competition enrollment → Club: checks club
src/aplicacion/casos_uso/inscribir_club_competencia.py - Match queries → Match contract: queries
src/aplicacion/casos_uso/obtener_boxscore_partido.py - Match contract → SQLite matches: implemented by
src/infraestructura/repositorios/sqlite_partido_repositorio.py - Competition contract → SQLite competitions: implemented by
src/infraestructura/repositorios/sqlite_competencia_repositorio.py - SQLite matches → SQLite database: persists in
src/infraestructura/repositorios/sqlite_partido_repositorio.py - SQLite competitions → SQLite database: persists in
src/infraestructura/repositorios/sqlite_competencia_repositorio.py - SQLite matches → Match statistics: maps
src/infraestructura/repositorios/sqlite_partido_repositorio.py - SQLite competitions → Competition and roster: maps
src/infraestructura/repositorios/sqlite_competencia_repositorio.py - Match sheet → Match DTOs: renders
src/infraestructura/ui/flet/components/planilla_boxscore.py - Flet app → Release checker: configures
src/infraestructura/ui/flet/app.py - Release checker → GitHub Releases: checks releases