No video

Pydantic - Field Customization, Advanced Data Exports and Model Config classes

  Рет қаралды 6,543

BugBytes

BugBytes

Күн бұрын

In this video, we look at some more Pydantic features, based on this post:
bugbytes.io/po...
We'll look at:
- Customization of fields with the Pydantic Field() function
- Using aliases and default values in fields
- Advanced techniques for exporting models and nested lists of submodels
- The Model Config class for applying model-wide configuration in a Pydantic model.
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:44 Pydantic Field() function for default values
05:01 Using aliases in Pydantic Field function
06:20 Controlling Model Export data using the Field function
09:07 Controlling model exports with dict() and json() functions
10:34 Controlling model exports for nested Pydantic models
15:19 Pydantic Model Config classes
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
ko-fi.com/bugb...
▶️ Full Playlist:
• Pydantic
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: bugbytes.io/po...
👾 Github: github.com/bug...
🐦 Twitter: / bugbytesio
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Blog Post: bugbytes.io/po...
Pydantic Field customisation: docs.pydantic....
Advanced Pydantic Model Exports: docs.pydantic....
Pydantic Model Config classes: docs.pydantic....
Github Data: github.com/bug...
#python #pydantic #datascience

Пікірлер: 12
@klmcwhirter
@klmcwhirter Жыл бұрын
Brilliant teaching style. Very easy to follow. Congrats.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot! Happy to hear that - thanks for watching!
@JavierSoques
@JavierSoques Жыл бұрын
The first minute of the video already gave me the solution to a problem I had. Thanks. I like your channel.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you Javier, glad to hear that! Thanks for watching.
@todorowael
@todorowael 10 ай бұрын
Great video! Thank you for the interesting examples and all the help in that topic.
@bugbytes3923
@bugbytes3923 10 ай бұрын
Thanks a lot, really glad it was useful!
@marcodigennarobari
@marcodigennarobari Жыл бұрын
Great series! very useful and timely. Looking forward for the next episode :)
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks Marco, glad that it's been useful for you!
@ColinTimmins
@ColinTimmins 4 ай бұрын
This was very helpful, thank you! Very well explained. =]
@bugbytes3923
@bugbytes3923 4 ай бұрын
Thanks a lot, glad to hear it!
@farzadmf
@farzadmf Жыл бұрын
Great video. All of this is cool, but I'm just wondering if "compile time" is supported (mypy, flake8, etc.) with Pydantic, or it's only runtime?
@junkotanabe6012
@junkotanabe6012 10 ай бұрын
日本語で失礼します。とても勉強になりました。 basemodelにクラスを設定し、別ファイルから値を取得する処理を模索しています 有益な情報をいただけましたら幸いです!
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 16 МЛН
Smart Sigma Kid #funny #sigma #memes
00:26
CRAZY GREAPA
Рет қаралды 19 МЛН
Harley Quinn's plan for revenge!!!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 31 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 41 МЛН
django-cotton - Modern Components in Django!
20:41
BugBytes
Рет қаралды 322
Pandas  Sketch - The Jupyter Notebook Data Analysis Tool You Didn't Know You Wanted
9:44
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 262 М.
Attrs, Pydantic, or Python Data Classes?
17:10
ArjanCodes
Рет қаралды 82 М.
FastAPI and Pydantic - Model Classes and Nested Models
14:45
BugBytes
Рет қаралды 10 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 801 М.
Pydantic is the Python Package I Wish I'd Learned Earlier
11:21
John Watson Rooney
Рет қаралды 54 М.
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 16 МЛН