Pydantic tip - the @computed_field decorator!

Votre vidéo commence dans 10
Passer (5)
Formation gratuite en FR pour les membres inscrits sur les sites de vidéos

Merci ! Partagez avec vos amis !

Vous avez aimé cette vidéo, merci de votre vote !

Ajoutées by
4 Vues
▶ Django & HTMX FULL COURSE: https://www.udemy.com/course/django-htmx-hypermedia-web-apps/?couponCode=159C84DB4FD8481203A6

???? Join our channel to get access to perks:
https://www.youtube.com/channel/UCTwxaBjziKfy6y_uWu30orA/join

☕️ ???????????? ???????? ???? ????????????????????????:
To support the channel and encourage new videos, please consider buying a coffee here:
https://ko-fi.com/bugbytes

In this video, we'll take a quick look at Pydantic's @computed_field decorator. This allows you to serialize a read-only field computed from other fields on the model class, and works well with FastAPI responses and OpenAPI documentation generated by FastAPI.

???????????????????????? ????????????????????:
▶ Udemy: https://www.udemy.com/user/bugbytes/
???? Blog: https://bugbytes.io/posts/
???? Github: https://github.com/bugbytes-io/

???? ???????????????????????????? ???????????????????????????? ???????????? ????????????????????????????????????????????:
Pydantic Computed Field: https://docs.pydantic.dev/latest/concepts/fields/#the-computed_field-decorator

#python #pydantic #datascience
Catégories
Architecte Intérieur - Décorateur
Mots-clés
Python, Django

Ajouter un commentaire

Commentaires

Soyez le premier à commenter cette vidéo.