- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 50 for light (0.08 sec)
-
docs/en/docs/tutorial/dependencies/global-dependencies.md
# Global Dependencies For some types of applications you might want to add dependencies to the whole application. Similar to the way you can [add `dependencies` to the *path operation decorators*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, you can add them to the `FastAPI` application. In that case, they will be applied to all the *path operations* in the application: === "Python 3.9+" ```Python hl_lines="16"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Oct 17 05:59:11 UTC 2023 - 1.4K bytes - Viewed (0) -
docs/en/docs/tutorial/encoder.md
# JSON Compatible Encoder There are some cases where you might need to convert a data type (like a Pydantic model) to something compatible with JSON (like a `dict`, `list`, etc). For example, if you need to store it in a database. For that, **FastAPI** provides a `jsonable_encoder()` function. ## Using the `jsonable_encoder` Let's imagine that you have a database `fake_db` that only receives JSON compatible data.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Oct 17 05:59:11 UTC 2023 - 1.8K bytes - Viewed (0) -
docs/en/docs/tutorial/security/first-steps.md
<img src="/img/tutorial/security/image01.png"> !!! check "Authorize button!" You already have a shiny new "Authorize" button. And your *path operation* has a little lock in the top-right corner that you can click. And if you click it, you have a little authorization form to type a `username` and `password` (and other optional fields): <img src="/img/tutorial/security/image02.png"> !!! note
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Jun 03 01:48:20 UTC 2024 - 9.1K bytes - Viewed (0) -
docs/en/docs/css/termynal.css
content: 'bash'; position: absolute; color: var(--color-text-subtle); top: 5px; left: 0; width: 100%; text-align: center; } a[data-terminal-control] { text-align: right; display: block; color: #aebbff; } [data-ty] { display: block; line-height: 2; } [data-ty]:before { /* Set up defaults and ensure empty lines are displayed. */ content: '';
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu May 02 22:37:31 UTC 2024 - 2.2K bytes - Viewed (0) -
SECURITY.md
## Reporting a Vulnerability If you think you found a vulnerability, and even if you are not sure about it, please report it right away by sending an email to: ******@****.***. Please try to be as explicit as possible, describing all the steps and example code to reproduce the security issue.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Sep 11 16:15:49 UTC 2022 - 1.3K bytes - Viewed (0) -
docs/en/docs/how-to/index.md
If something seems interesting and useful to your project, go ahead and check it, but otherwise, you might probably just skip them. !!! tip
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 591 bytes - Viewed (0) -
docs/en/docs/advanced/websockets.md
And to communicate using WebSockets with your backend you would probably use your frontend's utilities. Or you might have a native mobile application that communicates with your WebSocket backend directly, in native code. Or you might have any other way to communicate with the WebSocket endpoint. ---
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu May 02 22:37:31 UTC 2024 - 6.2K bytes - Viewed (0) -
docs/en/docs/tutorial/body.md
As it is discouraged, the interactive docs with Swagger UI won't show the documentation for the body when using `GET`, and proxies in the middle might not support it. ## Import Pydantic's `BaseModel` First, you need to import `BaseModel` from `pydantic`: === "Python 3.10+" ```Python hl_lines="2" {!> ../../../docs_src/body/tutorial001_py310.py!}
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 7.3K bytes - Viewed (0) -
tests/test_compat.py
# For coverage assert UploadFile.__get_pydantic_core_schema__(str, lambda x: None) == {} @needs_pydanticv1 def test_union_scalar_list(): # For coverage # TODO: there might not be a current valid code path that uses this, it would # potentially enable query parameters defined as both a scalar and a list # but that would require more refactors, also not sure it's really useful
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 2.8K bytes - Viewed (0) -
docs/en/docs/features.md
The whole **FastAPI** framework is based to satisfy that. Autocompletion works everywhere. You will rarely need to come back to the docs. Here's how your editor might help you: * in <a href="https://code.visualstudio.com/" class="external-link" target="_blank">Visual Studio Code</a>: ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu May 02 22:37:31 UTC 2024 - 9.3K bytes - Viewed (0)