Skip to content

varma1959-git/Student-dashborad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes for Streamlit Project (with Memory Tricks)

1. The Outline Method (step-by-step like a recipe 🍌)

I. Setup the project

A. Create project folder

 • Example: Project/

 • Trick → Open banana 🍌

B. Create virtual environment

 • Command: python -m venv .venv

 • Activate: .\.venv\Scripts\Activate.ps1

 • Trick → Peel banana before eating.

C. Install libraries

 • pip install streamlit pandas matplotlib openpyxl

 • Trick → Ingredients for cooking.

II. Create structure

A. Folders: config, db, services, utils

B. Add __init__.py inside each → makes them packages

C. Add main file: main.py

 • Trick → Cut banana into pieces. 🍌🔪

III. Add functionality

A. config/constants.py → file paths, constants

B. db/storage.py → load/save data

C. services/operations.py → main operations (add entry, summary)

D. utils/validators.py → validation (name, age, score)

E. main.py → Streamlit dashboard UI

Trick → Season with masala → all helper files, then main curry. 🍲

IV. Run dashboard

A. Command: streamlit run main.py

B. Browser opens automatically

 • Trick → Eat banana (enjoy app). 🍌😋

Second method: 2. The Cornell Method (good for revision/recall)

Cues / Questions Main Notes

How do I start a project? Create folder → venv → install libs

Why separate folders? Keeps code modular (config, db, services, utils)

What goes in config? Constants (file paths, global settings)

What goes in db? Data handling (load/save CSV/Excel)

What goes in services? Core logic (add entry, calculate summary)

What goes in utils? Validators (check name, age, score)

How do I run the app? streamlit run main.py

Summary (bottom)

**Streamlit project = clean structure (config/db/services/utils + main). Start with venv, install libs, organize code, then run with streamlit run main.py.

Third method: [ STREAMLIT PROJECT ]**

                      **|**

   **-----------------------------------------**

   **|                 |                    |**

[ Setup ] [ Structure ] [ Run App ]

   **|                 |                    |**

(venv + libs) (config/db/utils/ streamlit run

pip install services/main) main.py

   **|**

Libraries:

Streamlit = UI

Pandas = Data

Matplotlib = Charts

Openpyxl = Excel

Trick → Always remember banana analogy 🍌:

Open → folder

Peel → venv

Ingredients → pip install

Cut → folders

Season → files

Mix → imports

Eat → streamlit run

⚡ Extra Quick Triggers:

Streamlit = Stage 🎤 (UI/dashboard).

Pandas = Chef 🍳 (handles data).

Matplotlib = Painter 🎨 (draws charts).

Openpyxl = Secretary 📊 (manages Excel/CSV).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages