Week 3 - Ingesting and Validating Data
Introduction to Data Ingestion
Assignment: Build a Validated Ingestion Pipeline
Going Further: Optional Deep Dives
History: APIs and Data Transfer
The slide deck used in the Week 3 in-class kickoff session. The deck covers: welcome back + recap, the live quiz, chapter-by-chapter tour (Ch1-6), two live exercises from the practice chapter, the agenda card, the assignment scaffold tour, and the closing hand-written reflection.
<aside> 💡 Use this as a recap. If you missed class or want to re-walk the agenda, the deck mirrors the structure of the lesson: same section numbers, same order. Especially useful for the assignment-launch walk-through (§9) when you start the assignment at home.
</aside>
week_3__presentation.pdf
timeout + raise_for_status), Ch3 (transient vs permanent + the canonical retry loop).BaseModel + Field + @field_validator), Ch6 (parameterised queries + UNIQUE + ON CONFLICT DO UPDATE).? placeholders prevent injection" (Ch6) + "Pydantic coercion vs strict mode" (Ch5).weather_stations.csv walk-through with 7 deliberate problems.503 that stopped the nightly run halfway.The slides are deliberately student-facing only. The teacher's per-section script (pacing, quiz answer cribs with common-wrong-pick analysis, exercise reference solutions, deep-dive default topics, closer rubric) lives in the GitHub-only week_3__lesson_plan.md (visible on GitHub only; not synced to Notion, so no link from this page).
The two live exercises the deck showcases come from the Learning-Resources repo. One Codespace covers all six exercises:
| Section | Exercise | Codespace folder |
|---|---|---|
| §3 Live Exercise A (recommended) | Ex 1: Write a Retry Function | data-track/week-3/exercise_1/ |
| §3 Live Exercise A (alternative) | Ex 2: Paginated API Fetch | data-track/week-3/exercise_2/ |
| §7 Live Exercise B (recommended) | Ex 5: SQLite Writer | data-track/week-3/exercise_5/ |
| §7 Live Exercise B (alternative) | Ex 4: Pydantic Validation | data-track/week-3/exercise_4/ |
The teacher chooses which to run live based on quiz wrong-pick patterns. Solutions live in each exercise_N/solutions/ folder, with # WHY ...: commentary under every non-obvious choice: read the reasoning, do not copy the code verbatim.
The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

Built with ❤️ by the HackYourFuture community · Thank you, contributors
Found a mistake or have a suggestion? Let us know in the feedback form.