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

Комментарии • 25

  • @iwswordpress
    @iwswordpress 5 месяцев назад +3

    All your videos are great! Shorter ones can be very helpful too.

    • @bugbytes3923
      @bugbytes3923  5 месяцев назад

      Thanks, will make some more smaller 'primers' on topics!

  • @rtiw6503
    @rtiw6503 3 месяца назад

    Your videos is really informative unlike other teaching print hello world🎉

  • @AmoahDevLabs
    @AmoahDevLabs 5 месяцев назад +1

    Great. Since Python is getting much better these days, I suggest you do a series on Python with real world mini projects.

    • @bugbytes3923
      @bugbytes3923  5 месяцев назад

      Great suggestion, thank you!

    • @FreihEitner
      @FreihEitner 3 месяца назад

      @@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/

  • @jooonmantv
    @jooonmantv 5 месяцев назад +1

    AWESOME This video is my happy new year present

    • @bugbytes3923
      @bugbytes3923  5 месяцев назад

      Enjoy 😂 Happy new year soon!

  • @Gladius000
    @Gladius000 5 месяцев назад

    I am enjoying your FastAPI/Pydantic series

  • @seydinaoumarsamabaly1806
    @seydinaoumarsamabaly1806 5 месяцев назад

    👏🏾Just great mate, thank for your effort !

  • @ivmmos
    @ivmmos 2 месяца назад

    Helped. Thank you!🍻

    • @bugbytes3923
      @bugbytes3923  2 месяца назад

      Thanks a lot, glad to hear it!

  • @diegocastaneda4325
    @diegocastaneda4325 2 месяца назад

    This is gold 🙏

  • @dmitrymikhailovnicepianomu8688
    @dmitrymikhailovnicepianomu8688 5 месяцев назад

    Useful! Thank you

  • @anatolehagbe7301
    @anatolehagbe7301 5 месяцев назад

    Great job. Merci 😻

  • @frameff9073
    @frameff9073 5 месяцев назад

    Thank

  • @Jakub1989YTb
    @Jakub1989YTb Месяц назад

    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

    • @bugbytes3923
      @bugbytes3923  Месяц назад

      Haha thank you, glad you like the video + accent!
      That show is very popular in Scotland. Funny scene! Thanks again