- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 118 for decorate (0.12 sec)
-
docs/zh/docs/tutorial/first-steps.md
{!../../docs_src/first_steps/tutorial001.py!} ``` `@app.get("/")` 告诉 **FastAPI** 在它下方的函数负责处理如下访问请求: * 请求路径为 `/` * 使用 <abbr title="HTTP GET 方法"><code>get</code> 操作</abbr> /// info | "`@decorator` Info" `@something` 语法在 Python 中被称为「装饰器」。 像一顶漂亮的装饰帽一样,将它放在一个函数的上方(我猜测这个术语的命名就是这么来的)。 装饰器接收位于其下方的函数并且用它完成一些工作。 在我们的例子中,这个装饰器告诉 **FastAPI** 位于其下方的函数对应着**路径** `/` 加上 `get` **操作**。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
docs/pt/docs/features.md
* **Extensível**: * Pydantic permite que tipos de dados personalizados sejam definidos ou você pode estender a validação com métodos em um modelo decorado com seu decorador de validador.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 10.3K bytes - Viewed (0) -
tests/test_application.py
"description": "Successful Response", "content": {"application/json": {"schema": {}}}, } }, "summary": "Non Decorated Route", "operationId": "non_decorated_route_non_decorated_route_get", } }, "/text": { "get": { "responses": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 52.2K bytes - Viewed (0) -
docs/vi/docs/features.md
* Bạn có thể có các object **JSON lồng nhau** và tất cả chúng đã validate và annotated. * **Có khả năng mở rộng**: * Pydantic cho phép bạn tùy chỉnh kiểu dữ liệu bằng việc định nghĩa hoặc bạn có thể mở rộng validation với các decorator trong model.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 11.5K bytes - Viewed (0) -
docs/ja/docs/tutorial/first-steps.md
{!../../docs_src/first_steps/tutorial001.py!} ``` `@app.get("/")`は直下の関数が下記のリクエストの処理を担当することを**FastAPI**に伝えます: * パス `/` * <abbr title="an HTTP GET method"><code>get</code> オペレーション</abbr> /// info | "`@decorator` について" Pythonにおける`@something`シンタックスはデコレータと呼ばれます。 「デコレータ」は関数の上に置きます。かわいらしい装飾的な帽子のようです(この用語の由来はそこにあると思います)。 「デコレータ」は直下の関数を受け取り、それを使って何かを行います。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.1K bytes - Viewed (0) -
docs/en/docs/advanced/security/oauth2-scopes.md
But in the end, they are implementing the same OAuth2 standard. /// **FastAPI** includes utilities for all these OAuth2 authentication flows in `fastapi.security.oauth2`. ## `Security` in decorator `dependencies`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 29 11:02:16 UTC 2024 - 13.1K bytes - Viewed (0) -
docs/en/docs/tutorial/bigger-applications.md
* If you also declare dependencies in a specific *path operation*, **they will be executed too**. * The router dependencies are executed first, then the [`dependencies` in the decorator](dependencies/dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, and then the normal parameter dependencies.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.4K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/RepositorySystemSupplier.java
import org.eclipse.aether.named.providers.NoopNamedLockFactory; import org.eclipse.aether.spi.artifact.ArtifactPredicateFactory; import org.eclipse.aether.spi.artifact.decorator.ArtifactDecoratorFactory; import org.eclipse.aether.spi.artifact.generator.ArtifactGeneratorFactory; import org.eclipse.aether.spi.checksums.ProvidedChecksumsSource; import org.eclipse.aether.spi.checksums.TrustedChecksumsSource;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 45.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md
* <a href="https://docs.python.org/3/library/contextlib.html#contextlib.asynccontextmanager" class="external-link" target="_blank">`@contextlib.asynccontextmanager`</a> Para decorar uma função com um único `yield`. Isso é o que o **FastAPI** usa internamente para dependências com `yield`. Mas você não precisa usar esses decoradores para as dependências do FastAPI (e você não deveria).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.5K bytes - Viewed (0) -
docs/pt/docs/advanced/settings.md
#### Detalhes Técnicos de `lru_cache` `@lru_cache` modifica a função decorada para retornar o mesmo valor que foi retornado na primeira vez, em vez de calculá-lo novamente, executando o código da função toda vez.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 17K bytes - Viewed (0)