Post

FastAPI
FastAPI@FastAPI·
FastAPI 0.95.0 supports and recommends Annotated! 🚀 Probably the biggest feature in months 🎉 Many benefits, re-use your functions in other places (soon you'll be able to use Typer with FastAPI in the same functions), reduce code duplication for dependencies in big apps 😎
FastAPI tweet mediaFastAPI tweet media
English
8
84
581
130.1K
FastAPI
FastAPI@FastAPI·
Annotated is standard Python, so you keep autocompletion and inline errors in your editor, type checkers like mypy, etc. while still getting the benefits of FastAPI.
English
0
0
0
4.7K
FastAPI
FastAPI@FastAPI·
Great job by Nadav Zingerman with the core PR 😎 And also inspiration from @adriangb01 with Xpresso ☕ This also involved 23K new lines added in docs, examples, and new tests ✅ Now all the examples show versions with and without Annotated, for each Python version 🐍
English
0
0
0
8.2K
FastAPI
FastAPI@FastAPI·
Type Hints with Annotations: #type-hints-with-metadata-annotations" target="_blank" rel="nofollow noopener">fastapi.tiangolo.com/python-types/#… Query Params and str Validations: #additional-validation" target="_blank" rel="nofollow noopener">fastapi.tiangolo.com/tutorial/query… Advantages of Annotated: #advantages-of-annotated" target="_blank" rel="nofollow noopener">fastapi.tiangolo.com/tutorial/query… Path Params and Numeric Validations: #order-the-parameters-as-you-need-tricks" target="_blank" rel="nofollow noopener">fastapi.tiangolo.com/tutorial/path-… Share Annotated dependencies: #share-annotated-dependencies" target="_blank" rel="nofollow noopener">fastapi.tiangolo.com/tutorial/depen…
English
0
0
0
4.2K
Paylaş