# ashwatts/practicals_lp-2 architecture

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

- Interactive diagram: https://gitdiagram.com/ashwatts/practicals_lp-2
- Repository: https://github.com/ashwatts/practicals_lp-2

## Overview

##### Project type and purpose
- The repository contains standalone Python scripts (1.py through 6.py, trial.py, 3_All_Codes.py) and two PDF documents (LP II Manual.pdf, Viwa_Prep.pdf). The README simply notes “Final to be used codes,” indicating these scripts are final deliverables, likely for academic or training purposes.

##### File structure
- No directories beyond the repository root—so it’s a flat, monolithic structure.
- Python scripts are likely related or incremental (1.py, 2.py, 3.py, etc.), with 3_All_Codes.py possibly aggregating or demonstrating combined functionality.
- The two PDFs are supporting documentation/manuals.
- No configuration files, no external dependencies (no requirements.txt), so dependencies are either standard library or built into each script.

##### README for additional insights
- The README is minimal and does not describe architecture or dependencies.
- No explicit mention of third‐party libraries, database usage, or external services.

##### Components
a. Main components:
- Python Runtime: The environment where all scripts execute.
- Script Modules: Each .py file (1.py, 2.py, 3.py, 3_All_Codes.py, 4.py, 5.py, 6.py, trial.py).
- Documentation Store: The two PDF files.

b. Relationships and interactions:
- If any script reads from or writes to external resources (e.g., file I/O), show those as subcomponents of the Python Runtime or external storage.

c. Architectural patterns/design principles:
- Monolithic, single‐process design—no microservices or layered front/backend separation.
- Scripts may represent incremental exercises or modules; group related scripts together (e.g., 1–3 vs. 4–6 vs. trial).

d. Relevant technologies/frameworks/libraries:
- Python standard library.
- No external frameworks detected.

##### Detailed capture of architectural elements
- Don’t over‐split—acknowledge it’s a flat project.
- By functionality if possible (e.g., “Exercise Modules” vs. “Aggregate Script”).
- That documentation is external to the runtime but essential for understanding the code.

[Python Runtime – container]
├── [1.py]
├── [2.py]
├── [3.py]
├── [4.py]
├── [5.py]
├── [6.py]
├── [trial.py]
└── [3_All_Codes.py]
↳ calls → 1.py
↳ calls → 2.py
↳ calls → 3.py
[LP II Manual.pdf] (doc store)
[Viwa_Prep.pdf] (doc store)

- Script modules: light blue
- Aggregate/orchestrator script: darker blue
- Documentation: light gray

- Calls from the orchestrator to each script.

## Diagram (Mermaid)

```mermaid
graph TB
  subgraph "Python Runtime"
    S1["1.py"]:::script
    S2["2.py"]:::script
    S3["3.py"]:::script
    S4["4.py"]:::script
    S5["5.py"]:::script
    S6["6.py"]:::script
    ST["trial.py"]:::script
    OR["3_All_Codes.py"]:::orchestrator
  end

  OR -->|"calls"| S1
  OR -->|"calls"| S2
  OR -->|"calls"| S3
  OR -->|"calls"| S4
  OR -->|"calls"| S5
  OR -->|"calls"| S6
  OR -->|"calls"| ST

  D1["LP II Manual.pdf"]:::doc
  D2["Viwa_Prep.pdf"]:::doc

  click S1 "https://github.com/ashwatts/practicals_lp-2/blob/main//1.py"
  click S2 "https://github.com/ashwatts/practicals_lp-2/blob/main//2.py"
  click S3 "https://github.com/ashwatts/practicals_lp-2/blob/main//3.py"
  click S4 "https://github.com/ashwatts/practicals_lp-2/blob/main//4.py"
  click S5 "https://github.com/ashwatts/practicals_lp-2/blob/main//5.py"
  click S6 "https://github.com/ashwatts/practicals_lp-2/blob/main//6.py"
  click ST "https://github.com/ashwatts/practicals_lp-2/blob/main//trial.py"
  click OR "https://github.com/ashwatts/practicals_lp-2/blob/main//3_All_Codes.py"
  click D1 "https://github.com/ashwatts/practicals_lp-2/blob/main//LP II Manual.pdf"
  click D2 "https://github.com/ashwatts/practicals_lp-2/blob/main//Viwa_Prep.pdf"

  classDef script fill:#ADD8E6,stroke:#000
  classDef orchestrator fill:#6495ED,stroke:#000
  classDef doc fill:#D3D3D3,stroke:#000
```
