# muhaadnasir/python-oop-drills architecture

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

- Interactive diagram: https://gitdiagram.com/muhaadnasir/python-oop-drills
- Repository: https://github.com/muhaadnasir/python-oop-drills

## Overview

This repository is a small collection of independent Python OOP drills, not one integrated application. Each script models a separate domain or language feature and includes its own demonstration. The graph groups related exercises and shows only relationships visible in the excerpts; there is no shared runtime entry point or cross-file wiring.

Main entry points: [`student.py`](https://github.com/muhaadnasir/python-oop-drills/blob/main/student.py) (Report), [`animal.py`](https://github.com/muhaadnasir/python-oop-drills/blob/main/animal.py) (Shelter), [`library.py`](https://github.com/muhaadnasir/python-oop-drills/blob/main/library.py) (Library), [`playlist.py`](https://github.com/muhaadnasir/python-oop-drills/blob/main/playlist.py) (Playlist)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collections["Collections and Adoption"]
  node_shelter["Shelter<br/>[animal.py]"]
  node_animals["Animal Types<br/>[animal.py]"]
  node_library["Library<br/>[library.py]"]
  node_books["Books<br/>[library.py]"]
  node_playlist["Playlist<br/>[playlist.py]"]
  node_tracks["Tracks<br/>[playlist.py]"]
end

subgraph group_polymorphism["Polymorphism Drills"]
  node_canvas["Canvas<br/>[shape.py]"]
  node_shapes["Shape Types<br/>[shape.py]"]
  node_orders["Orders<br/>[discount.py]"]
  node_discounts["Discount Types<br/>[discount.py]"]
  node_alerts["Alert System<br/>[alert.py]"]
  node_notifiers["Notifier Types<br/>[alert.py]"]
end

subgraph group_utilities["Student and Temperature"]
  node_student["Student<br/>[student.py]"]
  node_grades["Letter Grades<br/>[student.py]"]
  node_report["Report<br/>[student.py]"]
  node_file_save["File Save<br/>[student.py]"]
  node_temperature["Temperature<br/>[temperature.py]"]
end

node_runner(("Exercise Runner"))

node_shelter -->|"describes/adopts"| node_animals
node_library -->|"stores"| node_books
node_playlist -->|"stores"| node_tracks
node_canvas -->|"measures/renders"| node_shapes
node_orders -->|"applies"| node_discounts
node_alerts -->|"dispatches"| node_notifiers
node_report -->|"reads grades"| node_student
node_report -->|"calculates"| node_grades
node_file_save -->|"reads average"| node_student

click node_shelter "https://github.com/muhaadnasir/python-oop-drills/blob/main/animal.py"
click node_animals "https://github.com/muhaadnasir/python-oop-drills/blob/main/animal.py"
click node_library "https://github.com/muhaadnasir/python-oop-drills/blob/main/library.py"
click node_books "https://github.com/muhaadnasir/python-oop-drills/blob/main/library.py"
click node_playlist "https://github.com/muhaadnasir/python-oop-drills/blob/main/playlist.py"
click node_tracks "https://github.com/muhaadnasir/python-oop-drills/blob/main/playlist.py"
click node_canvas "https://github.com/muhaadnasir/python-oop-drills/blob/main/shape.py"
click node_shapes "https://github.com/muhaadnasir/python-oop-drills/blob/main/shape.py"
click node_orders "https://github.com/muhaadnasir/python-oop-drills/blob/main/discount.py"
click node_discounts "https://github.com/muhaadnasir/python-oop-drills/blob/main/discount.py"
click node_alerts "https://github.com/muhaadnasir/python-oop-drills/blob/main/alert.py"
click node_notifiers "https://github.com/muhaadnasir/python-oop-drills/blob/main/alert.py"
click node_student "https://github.com/muhaadnasir/python-oop-drills/blob/main/student.py"
click node_grades "https://github.com/muhaadnasir/python-oop-drills/blob/main/student.py"
click node_report "https://github.com/muhaadnasir/python-oop-drills/blob/main/student.py"
click node_file_save "https://github.com/muhaadnasir/python-oop-drills/blob/main/student.py"
click node_temperature "https://github.com/muhaadnasir/python-oop-drills/blob/main/temperature.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_shelter,node_animals,node_library,node_books,node_playlist,node_tracks toneBlue
class node_canvas,node_shapes,node_orders,node_discounts,node_alerts,node_notifiers toneAmber
class node_student,node_grades,node_report,node_file_save,node_temperature toneMint
class node_runner toneIndigo
```

## Components

### Collections and Adoption

- [Shelter](https://github.com/muhaadnasir/python-oop-drills/blob/main/animal.py): `animal.py`
- [Animal Types](https://github.com/muhaadnasir/python-oop-drills/blob/main/animal.py): `animal.py`
- [Library](https://github.com/muhaadnasir/python-oop-drills/blob/main/library.py): `library.py`
- [Books](https://github.com/muhaadnasir/python-oop-drills/blob/main/library.py): `library.py`
- [Playlist](https://github.com/muhaadnasir/python-oop-drills/blob/main/playlist.py): `playlist.py`
- [Tracks](https://github.com/muhaadnasir/python-oop-drills/blob/main/playlist.py): `playlist.py`

### Polymorphism Drills

- [Canvas](https://github.com/muhaadnasir/python-oop-drills/blob/main/shape.py): `shape.py`
- [Shape Types](https://github.com/muhaadnasir/python-oop-drills/blob/main/shape.py): `shape.py`
- [Orders](https://github.com/muhaadnasir/python-oop-drills/blob/main/discount.py): `discount.py`
- [Discount Types](https://github.com/muhaadnasir/python-oop-drills/blob/main/discount.py): `discount.py`
- [Alert System](https://github.com/muhaadnasir/python-oop-drills/blob/main/alert.py): `alert.py`
- [Notifier Types](https://github.com/muhaadnasir/python-oop-drills/blob/main/alert.py): `alert.py`

### Student and Temperature

- [Student](https://github.com/muhaadnasir/python-oop-drills/blob/main/student.py): `student.py`
- [Letter Grades](https://github.com/muhaadnasir/python-oop-drills/blob/main/student.py): `student.py`
- [Report](https://github.com/muhaadnasir/python-oop-drills/blob/main/student.py): `student.py`
- [File Save](https://github.com/muhaadnasir/python-oop-drills/blob/main/student.py): `student.py`
- [Temperature](https://github.com/muhaadnasir/python-oop-drills/blob/main/temperature.py): `temperature.py`

### Other components

- **Exercise Runner**

## Connections

- Shelter → Animal Types: describes/adopts (evidence: `animal.py`)
- Library → Books: stores (evidence: `library.py`)
- Playlist → Tracks: stores (evidence: `playlist.py`)
- Canvas → Shape Types: measures/renders (evidence: `shape.py`)
- Orders → Discount Types: applies (evidence: `discount.py`)
- Alert System → Notifier Types: dispatches (evidence: `alert.py`)
- Report → Student: reads grades (evidence: `student.py`)
- Report → Letter Grades: calculates (evidence: `student.py`)
- File Save → Student: reads average (evidence: `student.py`)
