Schema Validation with Pydantic: Part #11 Python API Course

preview_player
Показать описание
Enjoy this completely free 19 hour course on developing an API in python using FastAPI. We will build a an api for a social media type app as well as learn to setup automatic tests and deploy the app and finally we'll also learn how to setup a CI/CD workflow using github actions.

Full Course Playlist:

Github Repo:

If you like this video please subscribe to this channel. Don't let me go hungry! 🎁

▬▬▬▬▬▬ Support this garbage Channel 🍒 ▬▬▬▬▬▬

▬▬▬▬▬▬ Stalk me on Social Media 😲 ▬▬▬▬▬▬
Рекомендации по теме
Комментарии
Автор

I'm really enjoying your serious i waited to finish my bachelor degree and now after graduating i have all the time to learn from you thanks

thegodfatheram
Автор

Python 10 update:

class Post(BaseModel):
title: str
content: str
publish: bool = True
rating: int | None = None

Pydantic v2 update:

print(post.model_dump())

RajDas-fo
Автор

8:16 Now passing an integer to title will cause the request to fail. This is good

NphiniT
Автор

i would recommend to use python json schema validator. this pydantic is not upto mark.

akshaynitin
Автор

i don't think it's necessary to convert the pydantic model that we difined to a dictionnary using .dict() method so it can be returned as a jason format in the response body, if we return the payload just as we recieved it will be converted automaticaly to json

dhiaeddinebenterki
Автор

8:50 if you add any digits of numbers, it give you error "msg": "Input should be a valid string",

Ahmed-yesd
join shbcf.ru