Results of 1 - 10 of about 11 for types (0.005 sec.)
- Release Notes 13745
- Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom
...by @DanielYang59 . ? Remove manual type annotations in JWT tutorial to avoid typing expectations (JWT doesn't provide more types). PR #13378 by @tiangolo . ? Update docs for Query Params and String Validations, remove obsolete Ellipsis docs ( ... ). P...rams. PR #13179 by @alejsdev . ✅ Simplify tests for extra_models. PR #13178 by @alejsdev . ✅ Simplify tests for extra_data_types. PR #13177 by @alejsdev . ✅ Simplify tests for cookie_params. PR #13176 by @alejsdev . ✅ Simplify tests for dependencies....PR #13078 by @tiangolo . ⬆ Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3. PR #13055 by @dependabot[bot] . ⬆ Bump types-ujson from 5.7.0.1 to 5.10.0.20240515. PR #13018 by @dependabot[bot] . ⬆ Bump black from 24.3.0 to 24.10.0. PR #13014 by @... - https://man.mtool.work/fastapi/0.115/release-notes/
- Additional Responses in OpenAPI 10384
- Additional Responses in OpenAPI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Warning This is a rather advanced topic. If you are starting with FastAPI , you mig
...ht not need this. You can declare additional responses, with additional status codes, media types, descriptions, etc. Those additional responses will be included in the OpenAPI schema, so they will also appear in the API...: "Detail" , "type" : "array" , "items" : { "$ref" : "#/components/schemas/ValidationError" } } } } } } } Additional media types for the main response You can use this same responses parameter to add different media types for the same main response. F...de your responses parameter. Including description , headers , content (inside of this is that you declare different media types and JSON Schemas), and links .... - https://man.mtool.work/fastapi/0.115/advanced/additional-responses/
- Settings and Environment Variables 9335
- Settings and Environment Variables Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In many cases your application could need some external settings or configuratio
...t variables that are read by the application. Tip To understand environment variables you can read Environment Variables . Types and validation These environment variables can only handle text strings, as they are external to Python and have to be com...ly default values. You can use all the same validation features and tools you use for Pydantic models, like different data types and additional validations with Field() . Pydantic v2 Pydantic v1 Python 3.8+ from fastapi import FastAPI from pydantic_se...te app_name . Next it will convert and validate the data. So, when you use that settings object, you will have data of the types you declared (e.g. items_per_user will be an int ). Use the settings Then you can use the new settings object in your appl... - https://man.mtool.work/fastapi/0.115/advanced/settings/
- Repository Management 8979
- Repository Management Here's a short description of how the FastAPI repository is managed and maintained. Owner I, @tiangolo , am the creator and owner of the FastAPI repository. ? I normally give the final review to each PR before merging
...titles. Adding commits on top of PRs to tweak them. Mark answers in GitHub Discussions questions, etc. Merge some specific types of PRs. You can see the current team members in FastAPI People - Team . Joining the team is by invitation only, and I coul... - https://man.mtool.work/fastapi/0.115/management/
- Using the Request Directly 8446
- Using the Request Directly Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Up to now, you have been declaring the parts of the request that you need with their types
... - https://man.mtool.work/fastapi/0.115/advanced/using-request-directly/
- GraphQL 8446
- GraphQL Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . As FastAPI is based on the ASGI standard, it's very easy to integrate any GraphQL library also compatible w
...raphQL, I still would recommend you check out Strawberry , as it's based on type annotations instead of custom classes and types. Learn More You can learn more about GraphQL in the official GraphQL documentation . You can also read more about each tho... - https://man.mtool.work/fastapi/0.115/how-to/graphql/
- OpenAPI Webhooks 8268
- OpenAPI Webhooks Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . There are cases where you want to tell your API users that your app could call their app (sending
...ocumenting webhooks with FastAPI and OpenAPI With FastAPI , using OpenAPI, you can define the names of these webhooks, the types of HTTP operations that your app can send (e.g. POST , PUT , etc.) and the request bodies that your app would send. This c... - https://man.mtool.work/fastapi/0.115/advanced/openapi-webhooks/
- Global Dependencies 8090
- Global Dependencies Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . For some types of applications you might want to add dependencies to the whole application. Sim
... - https://man.mtool.work/fastapi/0.115/tutorial/dependencies/global-dependencies/
- 機能 7397
- 機能 FastAPIの機能 FastAPI は以下の機能をもちます: オープンスタンダード準拠 API作成のための OpenAPI 。これは、 path operations の宣言、パラメータ、ボディリクエスト、セキュリティなどを含んでいます。 JSONスキーマ を使用したデータモデルのドキュ
...honです。 (FastAPIを使用しない場合でも)Pythonの型の使用方法について簡単な復習が必要な場合は、短いチュートリアル( Python Types )を参照してください。 型を使用した標準的なPythonを記述します: from datetime import date from pydantic import BaseModel #... - https://man.mtool.work/fastapi/0.115/features/
- 追加データ型 7397
- 追加データ型 今までは、以下のような一般的なデータ型を使用してきました: int float str bool しかし、より複雑なデータ型を使用することもできます。 そして、今まで見てきたのと同じ機能を持つことになります: 素晴らしいエディタのサポート 受信したリク
...です。 リクエストやレスポンスでは float と同じように扱います。 Pydanticの全ての有効な型はこちらで確認できます: Pydantic data types 。 例 ここでは、上記の型のいくつかを使用したパラメータを持つ path operation の例を示します。 Python 3.8+ - non-Annotated f... - https://man.mtool.work/fastapi/0.115/tutorial/extra-data-types/