# palomarohweder/curso architecture

> Architecture diagram of the GitHub repository palomarohweder/curso, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/palomarohweder/curso
- Repository: https://github.com/palomarohweder/curso

## Overview

This repository contains a standalone interactive professor-and-classroom manager: users choose a database, then create, list, and delete records. Its SQLAlchemy models persist professors and classes, linked by professor email. Separately, the installable `curso` command points to a package stub that only prints a greeting; the shown files do not connect that command to the manager. The graph reflects the sampled implementation and documented command mapping.

Main entry points: [`professor_turma.py`](https://github.com/palomarohweder/curso/blob/main/professor_turma.py) (Manager menu), [`src/curso/__init__.py`](https://github.com/palomarohweder/curso/blob/main/src/curso/__init__.py) (Greeting stub)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Interactive manager"]
  node_manager["Manager menu<br/>[professor_turma.py]"]
  node_listing["Filtered listing<br/>[professor_turma.py]"]
  node_deletion["Record deletion<br/>[professor_turma.py]"]
  node_greeting["Greeting stub<br/>[__init__.py]"]
end

subgraph group_domain["School records"]
  node_professor["Professor records<br/>[professor_turma.py]"]
  node_class["Class records<br/>[professor_turma.py]"]
end

subgraph group_storage["Database access"]
  node_choose_db["Choose database<br/>[professor_turma.py]"]
  node_database[("Relational database")]
end

node_user(("User"))
node_curso_command(("curso command"))

node_user -->|"uses"| node_manager
node_manager -->|"selects"| node_choose_db
node_choose_db -->|"connects"| node_database
node_manager -->|"creates and queries"| node_professor
node_manager -->|"creates and queries"| node_class
node_manager -->|"dispatches"| node_listing
node_listing -->|"queries"| node_professor
node_manager -->|"dispatches"| node_deletion
node_deletion -->|"deletes"| node_professor
node_deletion -->|"deletes"| node_class
node_curso_command -->|"runs"| node_greeting

click node_manager "https://github.com/palomarohweder/curso/blob/main/professor_turma.py"
click node_choose_db "https://github.com/palomarohweder/curso/blob/main/professor_turma.py"
click node_professor "https://github.com/palomarohweder/curso/blob/main/professor_turma.py"
click node_class "https://github.com/palomarohweder/curso/blob/main/professor_turma.py"
click node_listing "https://github.com/palomarohweder/curso/blob/main/professor_turma.py"
click node_deletion "https://github.com/palomarohweder/curso/blob/main/professor_turma.py"
click node_greeting "https://github.com/palomarohweder/curso/blob/main/src/curso/__init__.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_manager,node_listing,node_deletion,node_greeting,node_user toneBlue
class node_professor,node_class toneAmber
class node_choose_db,node_database toneMint
class node_curso_command toneIndigo
```

## Components

### Interactive manager

- [Manager menu](https://github.com/palomarohweder/curso/blob/main/professor_turma.py): `professor_turma.py`
- [Filtered listing](https://github.com/palomarohweder/curso/blob/main/professor_turma.py): `professor_turma.py`
- [Record deletion](https://github.com/palomarohweder/curso/blob/main/professor_turma.py): `professor_turma.py`
- [Greeting stub](https://github.com/palomarohweder/curso/blob/main/src/curso/__init__.py): `src/curso/__init__.py`

### School records

- [Professor records](https://github.com/palomarohweder/curso/blob/main/professor_turma.py): `professor_turma.py`
- [Class records](https://github.com/palomarohweder/curso/blob/main/professor_turma.py): `professor_turma.py`

### Database access

- [Choose database](https://github.com/palomarohweder/curso/blob/main/professor_turma.py): `professor_turma.py`
- **Relational database**

### Other components

- **User**
- **curso command**

## Connections

- User → Manager menu: uses (evidence: `professor_turma.py`)
- Manager menu → Choose database: selects (evidence: `professor_turma.py`)
- Choose database → Relational database: connects (evidence: `professor_turma.py`)
- Manager menu → Professor records: creates and queries (evidence: `professor_turma.py`)
- Manager menu → Class records: creates and queries (evidence: `professor_turma.py`)
- Manager menu → Filtered listing: dispatches (evidence: `professor_turma.py`)
- Filtered listing → Professor records: queries (evidence: `professor_turma.py`)
- Manager menu → Record deletion: dispatches (evidence: `professor_turma.py`)
- Record deletion → Professor records: deletes (evidence: `professor_turma.py`)
- Record deletion → Class records: deletes (evidence: `professor_turma.py`)
- curso command → Greeting stub: runs
