Pydantic Crash Course

Поделиться
HTML-код
  • Опубликовано: 31 окт 2022
  • In this crash course we're going to be checking out the Pydantic library. Which has gained similar popularity to that of FastAPI.
    👨‍💻 Looking for a web developer job, visit: www.webdevjobs.io/
    👽 Discord - / discord

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

  • @iamrithmic
    @iamrithmic  Год назад +3

    🔴 - If you enjoyed this video. Please leave a like and subscribe :)

  • @taghikhavari5983
    @taghikhavari5983 11 месяцев назад +1

    Great tutorial about Pydantic 🤘, awesome as always Fransis

    • @iamrithmic
      @iamrithmic  8 месяцев назад

      Taghi!! Thank you bro!

  • @TechVenturer
    @TechVenturer Год назад +2

    Very helpful video! thanks for making 👍

    • @iamrithmic
      @iamrithmic  8 месяцев назад

      You're more than welcome :)

  • @kevon217
    @kevon217 11 месяцев назад +2

    Great crash course!

    • @iamrithmic
      @iamrithmic  8 месяцев назад

      You are more than welcome!!

  • @papunmohanty5968
    @papunmohanty5968 Год назад

    Optional[level] seems like optional but it is actually not optional, it gives `None` if no value is specified during initialization
    instead of Optional we can use `Union[Level, None]` or `Level | None` (in >= python3.10)

    • @insanecbrotha
      @insanecbrotha Год назад

      Isn't this how optional values are defined in Python callable signatures? By supplying some default value, often None? :)

  • @kranthi.kumar.g
    @kranthi.kumar.g 7 месяцев назад

    PydanticDeprecatedSince20:
    Pydantic V1 style `@validator` validators are deprecated.
    You should migrate to Pydantic V2 style `@field_validator` validators

    • @kranthi.kumar.g
      @kranthi.kumar.g 7 месяцев назад

      applying print function on `values` gives `ValidationInfo` instance.
      from there `values.data` can be used to get the values as dict.

    • @kranthi.kumar.g
      @kranthi.kumar.g 7 месяцев назад

      level: Optional[Level] = None

  • @kosmonautofficial296
    @kosmonautofficial296 Год назад

    Great video! I am looking forward to pydantic 2. Another things I like is the @validate_arguments decorator.