How iamsavitha/python-and-data_structure works
Project type and purpose
• This is an educational Python “Data Structures” repository. It hosts:
• Core algorithm implementations and exercises (Arrays, Data_Structure, recursion, regex)
• A hands-on lab (“Lab2”) that wraps a stock-prediction ML model in two user interfaces (Gradio and Streamlit)
• A “Libraries” folder containing NumPy-based notebooks and datasets
File structure
• Top‐level folders:
• Arrays/ – array.py, bst_wc.py, sample code
• Data_Structure/ – subfolders for List, Queue, Stack, LinkedList, sorting algorithms
• recursion/ – Recursion.py
• regex/ – a small regex homework project
• Lab2/ –
– app_Gradio.py, app_streamlit.py, stock_GUI.py (UI layers)
– stock_data.py (business logic)
– keras_model.h5, my_model.keras (trained models)
– .gradio folder with dataset1.csv, flags, certificates
– test_extract.ipynb
• Libraries/ – a NumPy-Project with its own notebooks and CSVs
• README.md at the root
README
• Confirms the repo’s focus: “Python_Data_Structure.”
Main components & interactions
a. Algorithm Modules (educational code – no external dependencies)
• Arrays, Data_Structure (List, Stack, etc.), recursion, regex
b. Lab2 ML Application
• UI Layer
– Gradio app (app_Gradio.py)
– Streamlit app (app_streamlit.py)
– Stock GUI (stock_GUI.py)
• Business Logic
– stock_data.py (data ingestion, preprocessing, inference calls)
• ML Models & Data
– keras_model.h5, my_model.keras
– Input CSVs in .gradio/flagged
– Any notebook tests (test_extract.ipynb)
c. Libraries Module
• NumPy Project notebooks & data (used for demonstrations)
d. Developer Environment
• Python interpreter, Jupyter, Gradio, Streamlit, required packages (implied by code)
Relationships & data flow
• User interacts with UI → UI calls business logic (stock_data.py) → logic loads model + data → returns predictions to UI
• Algorithm Modules are standalone examples, not linked at runtime to Lab2
• Libraries notebooks can import core code or use the same Python environment
Architectural patterns & design principles
• Layered architecture in Lab2: Presentation (UI) → Application Logic → Data/Models
• Modular “packages” for each data‐structure topic
• Separation of concerns: UI code separate from inference logic separate from model files
Elements
• Clear labels (e.g., “UI: app_Gradio.py / app_streamlit.py,” “Business Logic: stock_data.py,” “Models: keras_model.h5”)
• Blue – UI components
• Green – Business logic
• Orange – Data & models
• Purple – Educational algorithm modules