Skip to content

About

CodePath AI110 26 Fall Cohort Assignments StudySync starter for AI110 Tinkers 1B, 2B and 3B

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

StudySync (AI110 Tinker Starter)

Starter code for the AI110 Tinker 1B / 2B / 3B in-class activities. All three tinkers build on this one project, each working in a different module.

Tinker Focus Files you'll work in
1B, Split the Logic Writing your first pytest test, then a cross-file refactor scoring.py, scoring_helpers.py, test_scoring.py
2B, Wire It Up Streamlit session_state, input validation, dataclasses, recurring dates sessions.py, app.py
3B, Rank & Explain CSV loading, weighted scoring that returns reasons, ranking, a data-flow diagram ranking.py, data/study_spots.csv, diagram.mmd

Setup

Fork this repo, then clone your fork:

git clone https://github.com/<YOUR-GITHUB-USERNAME>/ai110-tinker-studysync-starter.git
cd ai110-tinker-studysync-starter

Create and activate a virtual environment:

python3 -m venv .venv

macOS, Linux, Git Bash or WSL:

source .venv/bin/activate

Windows PowerShell:

.\.venv\Scripts\Activate.ps1

Install dependencies and run:

python -m pip install --upgrade pip
pip install -r requirements.txt
python -m streamlit run app.py

Run the tests:

pytest

Files

  • app.py — Streamlit entry point, wires the three tabs together
  • scoring.py — session_rating() and the Session Scorer tab
  • scoring_helpers.py — helpers extracted during Tinker 1B
  • sessions.py — session log, the Tinker 2B surface
  • ranking.py — study-spot ranking, the Tinker 3B surface
  • data/study_spots.csv — sample data for ranking
  • diagram.mmd — Mermaid data-flow diagram, completed in Tinker 3B
  • test_scoring.py — starting point for your own tests

Your instructor will tell you which tinker you're on. Follow the activity on the course portal.

About

CodePath AI110 26 Fall Cohort Assignments StudySync starter for AI110 Tinkers 1B, 2B and 3B

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages