# akashdv25/assignment-1 architecture

> Architecture diagram of the GitHub repository akashdv25/assignment-1, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/akashdv25/assignment-1
- Repository: https://github.com/akashdv25/assignment-1

## Overview

##### Project type and purpose
- This is a lightweight, educational full-stack Python learning application built with Streamlit.
- Purpose: demonstrate core Python concepts (dunder methods, decorators, list comprehensions, args/kwargs, string formatting) in the context of an interactive stock portfolio tracker web app.

##### File structure
- Top-level
- main.py            – Streamlit application entry point (UI layer)
- requirements.txt   – dependencies (e.g., streamlit, pandas, yfinance or similar)
- __init__.py        – makes root a Python package
- src/                – business logic and concept demos
- decorators.py
- dunder-magic-methods.py
- string-formatters.py
- -comprehension.py
- keyword-args.py
- positional-args.py
- app-image         – screenshot for README

##### README for additional insights
- Confirms interactive portfolio tracker, real-time stock data visualization, uses decorators for logging/timing/auth, custom objects via magic methods, code organization patterns, Streamlit front end.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Frontend Layer
    subgraph "Frontend Layer"
        UI["Streamlit UI"]:::frontend
    end

    %% Business Logic Layer
    subgraph "Business Logic Layer"
        BLP["Business Logic (src/)"]:::business
        Decorators["decorators.py"]:::business
        Dunder["dunder-magic-methods.py"]:::business
        Keyword["keyword-args.py"]:::business
        Positional["positional-args.py"]:::business
        ListComp["list-comprehension.py"]:::business
        StringFmt["string-formatters.py"]:::business
        Init["__init__.py"]:::business
    end

    %% External Services & State
    subgraph "State & External"
        State["Session State"]:::business
        ExternalAPI["External Stock Data API"]:::external
    end

    %% Third-party Libraries
    subgraph "Third-party Libraries"
        Libs["requirements.txt"]:::lib
    end

    %% Documentation & Assets
    subgraph "Documentation & Assets"
        Docs["README & app-image"]:::lib
    end

    %% Connections
    UI -->|"user action"| BLP
    UI -->|"session state"| State
    BLP -->|"uses"| Decorators
    BLP -->|"uses"| Dunder
    BLP -->|"uses"| Keyword
    BLP -->|"uses"| Positional
    BLP -->|"uses"| ListComp
    BLP -->|"uses"| StringFmt
    BLP -->|"fetchQuotes()"| ExternalAPI
    ExternalAPI -->|"stock data"| BLP
    BLP -->|"renderChart() / renderTable() "| UI
    UI -->|"installs"| Libs
    Docs ---|"documents"| UI
    Docs ---|"includes assets"| Libs

    %% Click Events
    click UI "https://github.com/akashdv25/assignment-1/blob/main/main.py"
    click Libs "https://github.com/akashdv25/assignment-1/blob/main/requirements.txt"
    click BLP "https://github.com/akashdv25/assignment-1/tree/main/src/"
    click Decorators "https://github.com/akashdv25/assignment-1/blob/main/src/decorators.py"
    click Dunder "https://github.com/akashdv25/assignment-1/blob/main/src/dunder-magic-methods.py"
    click Keyword "https://github.com/akashdv25/assignment-1/blob/main/src/keyword-args.py"
    click Positional "https://github.com/akashdv25/assignment-1/blob/main/src/positional-args.py"
    click ListComp "https://github.com/akashdv25/assignment-1/blob/main/src/list-comprehension.py"
    click StringFmt "https://github.com/akashdv25/assignment-1/blob/main/src/string-formatters.py"
    click Init "https://github.com/akashdv25/assignment-1/blob/main/__init__.py"
    click Docs "https://github.com/akashdv25/assignment-1/blob/main/README.md"
    click Docs "https://github.com/akashdv25/assignment-1/tree/main/app-image/"

    %% Styles
    classDef frontend fill:#ADD8E6,stroke:#333,stroke-width:1px
    classDef business fill:#90EE90,stroke:#333,stroke-width:1px
    classDef external fill:#FFA500,stroke:#333,stroke-width:1px
    classDef lib fill:#D3D3D3,stroke:#333,stroke-width:1px
```
