Enums in Python & Pydantic | Python 3.11 StrEnum | Case-Insensitive enum with _missing_() method
HTML-код
- Опубликовано: 27 дек 2023
- In this video, we explore Enums in Python, including:
1. Building a case-insensitive Enum by overriding the _missing_() method
2. Python 3.11 StrEnum class
3. Enums in Pydantic Models
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
ko-fi.com/bugbytes
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: bugbytes.io/posts/
👾 Github: github.com/bugbytes-io/
🐦 Twitter: / bugbytesio
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#python #enum #pydantic
All your videos are great! Shorter ones can be very helpful too.
Thanks, will make some more smaller 'primers' on topics!
Your videos is really informative unlike other teaching print hello world🎉
Haha thanks a lot!
Great. Since Python is getting much better these days, I suggest you do a series on Python with real world mini projects.
Great suggestion, thank you!
@@bugbytes3923 Agreed, mainly because I can't wrap my head around why I would type print(OrderStatus('delivered')) to output the string delivered, rather than just typing print("delivered"). I see HOW to use an enum but I don't see WHY to use one. /baffled/
AWESOME This video is my happy new year present
Enjoy 😂 Happy new year soon!
I am enjoying your FastAPI/Pydantic series
Awesome - thank you!
👏🏾Just great mate, thank for your effort !
Thanks mate!
Helped. Thank you!🍻
Thanks a lot, glad to hear it!
This is gold 🙏
Thanks a lot!
Useful! Thank you
Thanks a lot!
Great job. Merci 😻
Thank you!
Thank
Thanks for watching!
Great video as always. Perfect blend of brevity and clearness.
Pardon me the reference, but I also really dig your accent. Always reminds me of this video: ruclips.net/video/HbDnxzrbxn4/видео.html
Haha thank you, glad you like the video + accent!
That show is very popular in Scotland. Funny scene! Thanks again