- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 105 for light (0.03 sec)
-
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
So, if you have an object `something` (that might _not_ be a function) and you can "call" it (execute it) like: ```Python something() ``` or ```Python something(some_argument, some_keyword_argument="foo") ``` then it is a "callable". ## Classes as dependencies You might notice that to create an instance of a Python class, you use that same syntax. For example:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 11.4K bytes - Viewed (0) -
docs/en/docs/how-to/sql-databases-peewee.md
We are going to override the internal parts of Peewee that use `threading.local` and replace them with `contextvars`, with the corresponding updates. This might seem a bit complex (and it actually is), you don't really need to completely understand how it works to use it. We will create a `PeeweeConnectionState`: ```Python hl_lines="10-19"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Jan 16 13:23:25 UTC 2024 - 23.6K bytes - Viewed (0) -
.github/DISCUSSION_TEMPLATE/questions.yml
description: | Please add a self-contained, [minimal, reproducible, example](https://stackoverflow.com/help/minimal-reproducible-example) with your use case. If I (or someone) can copy it, run it, and see it right away, there's a much higher chance I (or someone) will be able to help you. placeholder: | from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root():
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Aug 03 15:59:41 UTC 2023 - 5.8K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
```Python UserInDB( username="john", password="secret", email="******@****.***", full_name=None, ) ``` Or more exactly, using `user_dict` directly, with whatever contents it might have in the future: ```Python UserInDB( username = user_dict["username"], password = user_dict["password"], email = user_dict["email"], full_name = user_dict["full_name"], ) ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 7.7K bytes - Viewed (0) -
docs/en/docs/fastapi-people.md
Here I'm also highlighting contributions from sponsors.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 16 23:54:24 UTC 2024 - 8.7K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
```Python hl_lines="2 7" {!../../../docs_src/custom_response/tutorial001.py!} ``` !!! tip It's possible that `ORJSONResponse` might be a faster alternative. ### `RedirectResponse` Returns an HTTP redirect. Uses a 307 status code (Temporary Redirect) by default. You can return a `RedirectResponse` directly: ```Python hl_lines="2 9"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 11.7K bytes - Viewed (0) -
docs/en/docs/contributing.md
# Development - Contributing First, you might want to see the basic ways to [help FastAPI and get help](help-fastapi.md){.internal-link target=_blank}. ## Developing If you already cloned the <a href="https://github.com/tiangolo/fastapi" class="external-link" target="_blank">fastapi repository</a> and you want to deep dive in the code, here are some guidelines to set up your environment. ### Virtual environment with `venv`
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Jan 11 17:42:43 UTC 2024 - 14.1K bytes - Viewed (0) -
docs/en/docs/python-types.md
* Generating **automatic errors** returned to the client when the data is invalid. * **Document** the API using OpenAPI: * which is then used by the automatic interactive documentation user interfaces. This might all sound abstract. Don't worry. You'll see all this in action in the [Tutorial - User Guide](tutorial/index.md){.internal-link target=_blank}.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri May 31 02:38:05 UTC 2024 - 17.1K bytes - Viewed (0) -
docs/en/docs/help-fastapi.md
### Suggest solutions * After being able to understand the question, you can give them a possible **answer**. * In many cases, it's better to understand their **underlying problem or use case**, because there might be a better way to solve it than what they are trying to do.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 13.7K bytes - Viewed (0) -
docs/en/docs/advanced/events.md
And then, right after the `yield`, we unload the model. This code will be executed **after** the application **finishes handling requests**, right before the *shutdown*. This could, for example, release resources like memory or a GPU. !!! tip
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 7.8K bytes - Viewed (0)