▶ Django & HTMX FULL COURSE: https://www.udemy.com/course/django-h...
🙏 Join our channel to get access to perks:
/ @bugbytes3923
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying a coffee here:
https://ko-fi.com/bugbytes
In this video, we'll look at pydantic-settings - a small extension to Pydantic that enables you to define Settings classes that are capable of reading from the OS environment or dotenv files, and ensuring type-safety with a wide-variety of Python and Pydantic types. This includes Network Types for connection strings to commonly used services such as PostgreSQL, Redis, MySQL, Kafka, Snowflake and more.
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro to Pydantic-Settings
02:07 Creating Settings class
05:45 Using complex types in settings
09:50 Reading from dotenv file .env
14:07 Pydantic Network types
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
▶ Udemy: https://www.udemy.com/user/bugbytes/
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
pydantic-settings: https://docs.pydantic.dev/latest/conc...
Pydantic Network Types: https://docs.pydantic.dev/latest/api/...
#pydantic #fastapi #datascience