# un64dd/event-registration-system-python-csf21803 architecture

> Architecture diagram of the GitHub repository un64dd/event-registration-system-python-csf21803, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/un64dd/event-registration-system-python-csf21803
- Repository: https://github.com/un64dd/event-registration-system-python-csf21803

## Overview

This is a single-file, in-memory event-registration CLI. The user enters through `main()`, which starts the menu loop; menu choices dispatch to event creation and viewing, attendee registration and cancellation, or reports. Those operations use shared input-validation and lookup helpers and update the module-level event and registration lists. The README documents all menu capabilities and confirms there is no persistence or payment integration. The relationships shown are supported by the source excerpt; all runtime components reside in the same file.

Main entry points: [`event_registration.py`](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py) (Menu loop)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["CLI entry"]
  node_main["Application entry"]
  node_menu["Menu loop"]
end

subgraph group_events["Event management"]
  node_create_event["Create event"]
  node_view_events["View events"]
  node_summary["Summary report"]
end

subgraph group_registrations["Registration lifecycle"]
  node_register["Register attendee"]
  node_view_registrations["View registrations"]
  node_cancel["Cancel registration"]
end

subgraph group_shared["Shared state and helpers"]
  node_event_lookup["Event lookup"]
  node_registration_lookup["Registration lookup"]
  node_input_helpers["Input validation"]
  node_memory_state["In-memory lists"]
end

node_user(("CLI user"))

node_user -->|"starts"| node_main
node_main -->|"calls"| node_menu
node_user -->|"chooses option"| node_menu
node_menu -->|"dispatches"| node_create_event
node_menu -->|"dispatches"| node_view_events
node_menu -->|"dispatches"| node_register
node_menu -->|"dispatches"| node_view_registrations
node_menu -->|"dispatches"| node_cancel
node_menu -->|"dispatches"| node_summary
node_create_event -->|"validates input"| node_input_helpers
node_create_event -->|"checks ID"| node_event_lookup
node_create_event -->|"adds event"| node_memory_state
node_view_events -->|"reads events"| node_memory_state
node_register -->|"displays events"| node_view_events
node_register -->|"validates input"| node_input_helpers
node_register -->|"finds event"| node_event_lookup
node_register -->|"adds registration"| node_memory_state
node_view_registrations -->|"reads registrations"| node_memory_state
node_view_registrations -->|"finds event"| node_event_lookup
node_cancel -->|"validates number"| node_input_helpers
node_cancel -->|"finds registration"| node_registration_lookup
node_cancel -->|"finds event"| node_event_lookup
node_cancel -->|"removes registration"| node_memory_state
node_summary -->|"reads events"| node_memory_state

click node_main "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py"
click node_menu "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py"
click node_create_event "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py"
click node_view_events "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py"
click node_summary "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py"
click node_register "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py"
click node_view_registrations "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py"
click node_cancel "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py"
click node_event_lookup "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py"
click node_registration_lookup "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py"
click node_input_helpers "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py"
click node_memory_state "https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.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_main,node_menu,node_user toneBlue
class node_create_event,node_view_events,node_summary toneAmber
class node_register,node_view_registrations,node_cancel toneMint
class node_event_lookup,node_registration_lookup,node_input_helpers,node_memory_state toneRose
```

## Components

### CLI entry

- [Application entry](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`
- [Menu loop](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`

### Event management

- [Create event](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`
- [View events](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`
- [Summary report](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`

### Registration lifecycle

- [Register attendee](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`
- [View registrations](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`
- [Cancel registration](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`

### Shared state and helpers

- [Event lookup](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`
- [Registration lookup](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`
- [Input validation](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`
- [In-memory lists](https://github.com/un64dd/event-registration-system-python-csf21803/blob/main/event_registration.py): `event_registration.py`

### Other components

- **CLI user**

## Connections

- CLI user → Application entry: starts (evidence: `README.md`)
- Application entry → Menu loop: calls (evidence: `event_registration.py`)
- CLI user → Menu loop: chooses option (evidence: `README.md`)
- Menu loop → Create event: dispatches (evidence: `event_registration.py`)
- Menu loop → View events: dispatches (evidence: `event_registration.py`)
- Menu loop → Register attendee: dispatches (evidence: `event_registration.py`)
- Menu loop → View registrations: dispatches (evidence: `event_registration.py`)
- Menu loop → Cancel registration: dispatches (evidence: `event_registration.py`)
- Menu loop → Summary report: dispatches (evidence: `event_registration.py`)
- Create event → Input validation: validates input (evidence: `event_registration.py`)
- Create event → Event lookup: checks ID (evidence: `event_registration.py`)
- Create event → In-memory lists: adds event (evidence: `event_registration.py`)
- View events → In-memory lists: reads events (evidence: `event_registration.py`)
- Register attendee → View events: displays events (evidence: `event_registration.py`)
- Register attendee → Input validation: validates input (evidence: `event_registration.py`)
- Register attendee → Event lookup: finds event (evidence: `event_registration.py`)
- Register attendee → In-memory lists: adds registration (evidence: `event_registration.py`)
- View registrations → In-memory lists: reads registrations (evidence: `event_registration.py`)
- View registrations → Event lookup: finds event (evidence: `event_registration.py`)
- Cancel registration → Input validation: validates number (evidence: `event_registration.py`)
- Cancel registration → Registration lookup: finds registration (evidence: `event_registration.py`)
- Cancel registration → Event lookup: finds event (evidence: `event_registration.py`)
- Cancel registration → In-memory lists: removes registration (evidence: `event_registration.py`)
- Summary report → In-memory lists: reads events (evidence: `event_registration.py`)
