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

Показать описание
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:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
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:
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#python #fastapi #webdevelopment
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:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
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:
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#python #fastapi #webdevelopment
Python & FastAPI - Annotated Type for Data Validation + Metadata!
How to use Annotated with FastAPI (Python | Typing | API | Web Development)
Python fastapi annotated type for data validation metadata
Dependency Injection in FastAPI Python | Parameterized Dependency
Python + Dependency Injection 💉🐍 | Part 1
Don't Print.. Use a Logger instead! #python #coding
Python Logging: How to Write Logs Like a Pro!
Fast API Tutorial, Part 22: Dependencies - Intro
Deploy with FastAPI | | Sentiment Analysis with BERT using huggingface, PyTorch and Python Tutorial
Python Decorators in 1 Minute!
Python Tips: How to use Python type hints/annotations (Beginner)
I can't STOP reading these Machine Learning Books!
The HARDEST part about programming 🤦♂️ #code #programming #technology #tech #software #developer...
Senior Programmers vs Junior Developers #shorts
Learning Machine Learning has never been easier #shorts #machinelearning #statistics #datascience
Most Asked Coding Interview Question (Don't Skip !!😮) #shorts
FAST and MODERN Python API with FastAPI | FastAPI tutorial
Refactor Flask Python Code to FastAPI
Python FAST API Tutorial
#python FastAPI Class Views #coding #javascript #college #university #cs #engineering #web #api
API integration Course – Modern Python with FastAPI
How Much A Python Developer Earn ? | Python Developer Salary In India #Shorts #simplilearn
HTTPX: Simplicity and Speed in Python
FastAPI Python Tutorial (Part 1) - Building a Stock Screener with FastAPI
Комментарии