Streamlit Crossfit 27a - Profile Endpoint
Автор: BillJellesmaCoding
Загружено: 2026-01-16
Просмотров: 19
I want to make a profile page in streamlit. Let's start by making a fastapi endpoint to get an athlete by id
#streamlit #crossfit #tutorial #datascience #softwaredevelopment #software #fastapi #pydantic
Planning Prompt
I want to create a new GET route for '/api/athlete/{athlete_id}` where athlete id will be an integer. We will use this id to retrieve the athlete with a new function in database.py called get_athlete that'll take a single integer, the athlete id. I want the return value to be a dictionary with the keys being the column in the database and the value being the value of that column in the database. Back on the route, we'll use pydantec to validate the return is an athlete from models.py
Links:
FastAPI Response model - https://fastapi.tiangolo.com/tutorial...
The dataset being used here is [Crossfit Athletes](https://www.kaggle.com/datasets/ulrik...) by Ulrik Thyge Pedersen published under the [Attribution 4.0 International](https://creativecommons.org/licenses/...) license. No modifications have been made.
github repo: https://github.com/bjellesma/tutorial...
Check out my blog: https://billjellesmacoding.netlify.ap...
Check out my Linkedin: / billjellesma
Chapters
00:00 Intro
00:43 Models
02:34 Planner Agent
09:07 Tester Agent
13:06 Implementation Agent
15:36 Tutor Agent
Corrections
02:52 Include it in the description of the video is what I meant
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: