# yashsdhinoja/core-python architecture

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

- Interactive diagram: https://gitdiagram.com/yashsdhinoja/core-python
- Repository: https://github.com/yashsdhinoja/core-python

## Overview

This repository is primarily a collection of Python learning examples and standalone exercises, rather than one integrated application. Its examples cover language fundamentals, data structures, numerical work, object-oriented programming, and behavior models. Separate runnable projects include local file-serving/study tools, a Tkinter calculator, a bank exercise, and an LLM guardrails gateway. The clearest request-to-result flow is the gateway demo calling its request processor. Source excerpts show some internal behavior, but there is no README and many listed examples are unsampled; omitted links are not inferred.

Main entry points: [`Execrise/LocalServer/server.py`](https://github.com/yashsdhinoja/core-python/blob/main/Execrise/LocalServer/server.py) (Local file server), [`Execrise/OfflineStudyHub/app.py`](https://github.com/yashsdhinoja/core-python/blob/main/Execrise/OfflineStudyHub/app.py) (Offline Study Hub), [`llm-guardrails-gateway/main.py`](https://github.com/yashsdhinoja/core-python/blob/main/llm-guardrails-gateway/main.py) (Gateway demo), [`python`](https://github.com/yashsdhinoja/core-python/tree/main/python) (Language basics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Python learning examples"]
  node_fundamentals["Language basics"]
  node_control["Control flow<br/>[2.condition_based]"]
  node_collections["Collections<br/>[4.list]"]
  node_functions["Functions<br/>[6.Function]"]
  node_oop["Object-oriented examples<br/>[9.oop]"]
  node_structures["Data structures"]
  node_numerical["Numerical examples"]
end

subgraph group_projects["Standalone projects"]
  node_bank["Bank exercise"]
  node_calculator["Tkinter calculator<br/>[11calculator.py]"]
  node_localserver["Local file server<br/>[server.py]"]
  node_studyhub["Offline Study Hub<br/>[app.py]"]
end

subgraph group_gateway["LLM guardrails"]
  node_gateway_demo["Gateway demo<br/>[main.py]"]
  node_gateway["Request guardrails<br/>[gateway.py]"]
end

subgraph group_behavior["Behavior models"]
  node_user_context["Context nudges"]
  node_financial_context["Savings nudges"]
  node_hook_model["Hook simulation"]
end

node_learner(("Learner"))
node_browser(("Browser / client"))
node_local_files[("Local files")]

node_learner -.->|"studies"| node_fundamentals
node_learner -.->|"studies"| node_control
node_learner -.->|"studies"| node_collections
node_learner -.->|"studies"| node_functions
node_learner -.->|"studies"| node_oop
node_learner -.->|"studies"| node_structures
node_learner -.->|"studies"| node_numerical
node_gateway_demo -->|"calls processor"| node_gateway
node_browser -.->|"requests files"| node_localserver
node_localserver -.->|"serves files"| node_local_files
node_browser -.->|"requests content"| node_studyhub
node_studyhub -.->|"reads materials"| node_local_files

click node_fundamentals "https://github.com/yashsdhinoja/core-python/tree/main/python"
click node_control "https://github.com/yashsdhinoja/core-python/tree/main/python/2.condition_based"
click node_collections "https://github.com/yashsdhinoja/core-python/tree/main/python/4.list"
click node_functions "https://github.com/yashsdhinoja/core-python/tree/main/python/6.Function"
click node_oop "https://github.com/yashsdhinoja/core-python/tree/main/9.oop"
click node_structures "https://github.com/yashsdhinoja/core-python/tree/main/dsa"
click node_numerical "https://github.com/yashsdhinoja/core-python/tree/main/Numpy"
click node_bank "https://github.com/yashsdhinoja/core-python/tree/main/Execrise/Bank"
click node_calculator "https://github.com/yashsdhinoja/core-python/blob/main/Execrise/Calculator/11calculator.py"
click node_localserver "https://github.com/yashsdhinoja/core-python/blob/main/Execrise/LocalServer/server.py"
click node_studyhub "https://github.com/yashsdhinoja/core-python/blob/main/Execrise/OfflineStudyHub/app.py"
click node_gateway_demo "https://github.com/yashsdhinoja/core-python/blob/main/llm-guardrails-gateway/main.py"
click node_gateway "https://github.com/yashsdhinoja/core-python/blob/main/llm-guardrails-gateway/gateway.py"
click node_user_context "https://github.com/yashsdhinoja/core-python/blob/main/Persuasive%20Technology/Fogg%20Behavoiur%20Change/3.user_cuurent_context.py"
click node_financial_context "https://github.com/yashsdhinoja/core-python/blob/main/Persuasive%20Technology/Fogg%20Behavoiur%20Change/4.financial_context.py"
click node_hook_model "https://github.com/yashsdhinoja/core-python/blob/main/Persuasive%20Technology/The%20Hook%20Model/2.complex_user_model.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_fundamentals,node_control,node_collections,node_functions,node_oop,node_structures,node_numerical,node_browser toneBlue
class node_bank,node_calculator,node_localserver,node_studyhub,node_local_files toneAmber
class node_gateway_demo,node_gateway toneMint
class node_user_context,node_financial_context,node_hook_model toneRose
class node_learner toneIndigo
```

## Components

### Python learning examples

- [Language basics](https://github.com/yashsdhinoja/core-python/tree/main/python): `python`
- [Control flow](https://github.com/yashsdhinoja/core-python/tree/main/python/2.condition_based): `python/2.condition_based`
- [Collections](https://github.com/yashsdhinoja/core-python/tree/main/python/4.list): `python/4.list`
- [Functions](https://github.com/yashsdhinoja/core-python/tree/main/python/6.Function): `python/6.Function`
- [Object-oriented examples](https://github.com/yashsdhinoja/core-python/tree/main/9.oop): `9.oop`
- [Data structures](https://github.com/yashsdhinoja/core-python/tree/main/dsa): `dsa`
- [Numerical examples](https://github.com/yashsdhinoja/core-python/tree/main/Numpy): `Numpy`

### Standalone projects

- [Bank exercise](https://github.com/yashsdhinoja/core-python/tree/main/Execrise/Bank): `Execrise/Bank`
- [Tkinter calculator](https://github.com/yashsdhinoja/core-python/blob/main/Execrise/Calculator/11calculator.py): `Execrise/Calculator/11calculator.py`
- [Local file server](https://github.com/yashsdhinoja/core-python/blob/main/Execrise/LocalServer/server.py): `Execrise/LocalServer/server.py`
- [Offline Study Hub](https://github.com/yashsdhinoja/core-python/blob/main/Execrise/OfflineStudyHub/app.py): `Execrise/OfflineStudyHub/app.py`

### LLM guardrails

- [Gateway demo](https://github.com/yashsdhinoja/core-python/blob/main/llm-guardrails-gateway/main.py): `llm-guardrails-gateway/main.py`
- [Request guardrails](https://github.com/yashsdhinoja/core-python/blob/main/llm-guardrails-gateway/gateway.py): `llm-guardrails-gateway/gateway.py`

### Behavior models

- [Context nudges](https://github.com/yashsdhinoja/core-python/blob/main/Persuasive%20Technology/Fogg%20Behavoiur%20Change/3.user_cuurent_context.py): `Persuasive Technology/Fogg Behavoiur Change/3.user_cuurent_context.py`
- [Savings nudges](https://github.com/yashsdhinoja/core-python/blob/main/Persuasive%20Technology/Fogg%20Behavoiur%20Change/4.financial_context.py): `Persuasive Technology/Fogg Behavoiur Change/4.financial_context.py`
- [Hook simulation](https://github.com/yashsdhinoja/core-python/blob/main/Persuasive%20Technology/The%20Hook%20Model/2.complex_user_model.py): `Persuasive Technology/The Hook Model/2.complex_user_model.py`

### Other components

- **Learner**
- **Browser / client**
- **Local files**

## Connections

- Learner → Language basics: studies
- Learner → Control flow: studies
- Learner → Collections: studies
- Learner → Functions: studies
- Learner → Object-oriented examples: studies
- Learner → Data structures: studies
- Learner → Numerical examples: studies
- Gateway demo → Request guardrails: calls processor (evidence: `llm-guardrails-gateway/main.py`)
- Browser / client → Local file server: requests files
- Local file server → Local files: serves files
- Browser / client → Offline Study Hub: requests content
- Offline Study Hub → Local files: reads materials
