Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Python & FastAPI - Annotated Type for Data Validation + Metadata!

Автор: BugBytes

Загружено: 2024-01-31

Просмотров: 16781

Описание:

In this video, we'll explore the Annotated type in Python, and how it can be used to add metadata to an existing type.

Custom logic can then process that metadata and perform actions based on the values used!

We'll see how Annotated is used in FastAPI with the Query, Path, Header and Cookie parameters to handler functions, and will dive deeper into the internals of the typing module to see how we can extract and process the metadata passed to Annotated.

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:59 typing.Annotated - Annotated type in python
04:41 FastAPI annotations with Query and Path object
12:35 Typing module internals
19:07 Creating Decorator for annotation checks

▶️ Full Playlist:    • FastAPI Fundamentals - Introduction to API...  

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Python Typing: https://docs.python.org/3/library/typ...
Annotated: https://docs.python.org/3/library/typ...
FastAPI Query Parameter Annotations: https://fastapi.tiangolo.com/tutorial...
StackOverflow answer: https://stackoverflow.com/questions/6...

#python #fastapi #webdevelopment

Python & FastAPI - Annotated Type for Data Validation + Metadata!

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

FastAPI & SQLModel - Database Interaction in FastAPI apps with SQLModel

FastAPI & SQLModel - Database Interaction in FastAPI apps with SQLModel

Dishka + FastAPI | Пиши код правильно

Dishka + FastAPI | Пиши код правильно

Зависимости в FastAPI - работа с Depends

Зависимости в FastAPI - работа с Depends

FastAPI и Pydantic — параметры URL-запроса для фильтрации

FastAPI и Pydantic — параметры URL-запроса для фильтрации

InstantSQL in duckDB UI

InstantSQL in duckDB UI

FastAPI и Pydantic — классы моделей и вложенные модели

FastAPI и Pydantic — классы моделей и вложенные модели

Python Typing - Type Hints & Annotations

Python Typing - Type Hints & Annotations

SQLModel + FastAPI: Say Goodbye to Repetitive Database Code

SQLModel + FastAPI: Say Goodbye to Repetitive Database Code

FastAPI & Alembic - Database Migrations in FastAPI apps

FastAPI & Alembic - Database Migrations in FastAPI apps

Logging in FastAPI Apps / Writing a FastAPI Middleware

Logging in FastAPI Apps / Writing a FastAPI Middleware

Keynote: Modern Python through FastAPI and friends by Sebastián Ramírez

Keynote: Modern Python through FastAPI and friends by Sebastián Ramírez

15 FastAPI Best Practices For Production

15 FastAPI Best Practices For Production

Python QueueHandler & QueueListener - Offload Log Processing to Separate Thread | FastAPI demo

Python QueueHandler & QueueListener - Offload Log Processing to Separate Thread | FastAPI demo

What IS typing.Annotated?

What IS typing.Annotated?

Python: A Quick Guide To Type Annotations (ft. Mypy)

Python: A Quick Guide To Type Annotations (ft. Mypy)

Протоколы и ABC в Python — когда какой использовать?

Протоколы и ABC в Python — когда какой использовать?

Учебник Pydantic • Решение самой большой проблемы Python

Учебник Pydantic • Решение самой большой проблемы Python

Zod, React, FastAPI & Pydantic - Data Validation on Client and Server

Zod, React, FastAPI & Pydantic - Data Validation on Client and Server

Внедрение зависимостей: объяснение для пятилетнего ребенка (с примерами FastAPI)

Внедрение зависимостей: объяснение для пятилетнего ребенка (с примерами FastAPI)

Как использовать Pandas с Pandera для проверки данных в Python

Как использовать Pandas с Pandera для проверки данных в Python

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]