- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for special (0.23 sec)
-
docs/en/docs/tutorial/body-fields.md
Remember that when you import `Query`, `Path`, and others from `fastapi`, those are actually functions that return special classes. !!! tip Notice how each model's attribute with a type, default value and `Field` has the same structure as a *path operation function's* parameter, with `Field` instead of `Path`, `Query` and `Body`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 3.6K bytes - Viewed (0) -
docs/en/docs/deployment/manually.md
---> 100% ``` </div> ...or any other ASGI server. ## Run the Server Program If you installed an ASGI server manually, you would normally need to pass an import string in a special format for it to import your FastAPI application: === "Uvicorn" <div class="termy"> ```console $ uvicorn main:app --host 0.0.0.0 --port 80
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 9.2K bytes - Viewed (0) -
fastapi/security/oauth2.py
) else: return None # pragma: nocover return param class SecurityScopes: """ This is a special class that you can define in a parameter in a dependency to obtain the OAuth2 scopes required by all the dependencies in the same chain. This way, multiple dependencies can have different scopes, even when used in the
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 21.1K bytes - Viewed (1) -
docs/en/docs/tutorial/cookie-params.md
But remember that when you import `Query`, `Path`, `Cookie` and others from `fastapi`, those are actually functions that return special classes. !!! info To declare cookies, you need to use `Cookie`, because otherwise the parameters would be interpreted as query parameters. ## Recap
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 2.4K bytes - Viewed (0) -
docs/en/docs/python-types.md
# Python Types Intro Python has support for optional "type hints" (also called "type annotations"). These **"type hints"** or annotations are a special syntax that allow declaring the <abbr title="for example: str, int, float, bool">type</abbr> of a variable. By declaring types for your variables, editors and tools can give you better support.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17K bytes - Viewed (0) -
docs/en/docs/tutorial/body-multiple-params.md
By default, **FastAPI** will then expect its body directly. But if you want it to expect a JSON with a key `item` and inside of it the model contents, as it does when you declare extra body parameters, you can use the special `Body` parameter `embed`: ```Python item: Item = Body(embed=True) ``` as in: === "Python 3.10+" ```Python hl_lines="17"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 7.7K bytes - Viewed (0) -
docs/en/docs/deployment/versions.md
For example, let's say you are using version `0.45.0` in your app. If you use a `requirements.txt` file you could specify the version with: ```txt fastapi==0.45.0 ``` that would mean that you would use exactly the version `0.45.0`. Or you could also pin it with: ```txt fastapi>=0.45.0,<0.46.0 ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Nov 05 20:50:37 GMT 2020 - 3.3K bytes - Viewed (0) -
docs/ko/docs/deployment/docker.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 42.6K bytes - Viewed (0) -
docs/en/docs/img/github-social-preview.png
github-social-preview.png...
PNG Image - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Feb 04 20:56:59 GMT 2024 - 60.8K bytes - Viewed (0) -
docs/pt/docs/tutorial/query-params-str-validations.md
```Python hl_lines="7" {!../../../docs_src/query_params_str_validations/tutorial006.py!} ``` !!! info "Informação" Se você nunca viu os `...` antes: é um valor único especial, faz <a href="https://docs.python.org/3/library/constants.html#Ellipsis" class="external-link" target="_blank">parte do Python e é chamado "Ellipsis"</a>. Dessa forma o **FastAPI** saberá que o parâmetro é obrigatório.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 9.3K bytes - Viewed (0)