- Sort Score
- Num 10 results
- Language All
Results 561 - 570 of 2,994 for Class1 (0.15 seconds)
-
docs/zh/docs/advanced/templates.md
# 模板 **FastAPI** 支持多种模板引擎。 Flask 等工具使用的 Jinja2 是最用的模板引擎。 在 Starlette 的支持下,**FastAPI** 应用可以直接使用工具轻易地配置 Jinja2。 ## 安装依赖项 安装 `jinja2`: <div class="termy"> ```console $ pip install jinja2 ---> 100% ``` </div> ## 使用 `Jinja2Templates` * 导入 `Jinja2Templates` * 创建可复用的 `templates` 对象 * 在返回模板的*路径操作*中声明 `Request` 参数
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 2.7K bytes - Click Count (0) -
docs_src/body_multiple_params/tutorial004_py39.py
from typing import Union from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None class User(BaseModel): username: str full_name: Union[str, None] = None @app.put("/items/{item_id}") async def update_item( *, item_id: int,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 653 bytes - Click Count (0) -
docs/ja/docs/alternatives.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 31.5K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java
* TODO: this is session scoped as SPI can contribute. */ @Named @Singleton public class DefaultLifecycleRegistry implements LifecycleRegistry { private static final String MAVEN_PLUGINS = "org.apache.maven.plugins:"; public static final String DEFAULT_LIFECYCLE_MODELID = "org.apache.maven:maven-core:" + DefaultLifecycleRegistry.class.getPackage().getImplementationVersion() + ":default-lifecycle-bindings";Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Sep 29 14:45:25 GMT 2025 - 20.1K bytes - Click Count (0) -
docs/pt/docs/tutorial/cookie-params.md
{* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[9] *} /// note | Detalhes Técnicos `Cookie` é uma classe "irmã" de `Path` e `Query`. Ela também herda da mesma classe em comum `Param`. Mas lembre-se que quando você importa `Query`, `Path`, `Cookie` e outras de `fastapi`, elas são na verdade funções que retornam classes especiais. ///Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 1.8K bytes - Click Count (0) -
tests/test_dependency_class.py
("/callable-dependency-class", "callable-dependency-class"), ("/callable-gen-dependency-class", "callable-gen-dependency-class"), ("/async-callable-dependency-class", "async-callable-dependency-class"), ("/async-callable-gen-dependency-class", "async-callable-gen-dependency-class"), ], ) def test_class_dependency(route, value):Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 4.4K bytes - Click Count (0) -
fastapi/datastructures.py
) -> Mapping[str, Any]: from ._compat.v2 import with_info_plain_validator_function return with_info_plain_validator_function(cls._validate) class DefaultPlaceholder: """ You shouldn't use this class directly. It's used internally to recognize when a default value has been overwritten, even if the overridden default value was truthy. """
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 5.1K bytes - Click Count (0) -
.teamcity/src/main/kotlin/model/FunctionalTestBucketGenerator.kt
const val MASTER_CHECK_CONFIGURATION = "Gradle_Master_Check" const val MAX_PROJECT_NUMBER_IN_BUCKET = 11 /** * Process test-class-data.json and generates test-buckets.json * * Usage: `mvn compile exec:java@update-test-buckets -DinputTestClassDataJson=/path/to/test-class-data.json`. * You can get the JSON file as an artifacts of the "autoUpdateTestSplitJsonOnGradleMaster" pipeline in TeamCity. */ fun main() {
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Apr 10 15:09:32 GMT 2025 - 7.3K bytes - Click Count (0) -
docs_src/path_operation_configuration/tutorial001_py39.py
from typing import Union from fastapi import FastAPI, status from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: set[str] = set() @app.post("/items/", response_model=Item, status_code=status.HTTP_201_CREATED) async def create_item(item: Item):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 401 bytes - Click Count (0) -
docs/en/docs/js/termynal.js
* @returns {string} - String of attributes. */ _attributes(line) { let attrs = ''; for (let prop in line) { // Custom add class if (prop === 'class') { attrs += ` class=${line[prop]} ` continue } if (prop === 'type') { attrs += `${this.pfx}="${line[prop]}" `Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 10:32:57 GMT 2025 - 9.3K bytes - Click Count (0)