- Sort Score
- Result 10 results
- Languages All
Results 4401 - 4410 of 7,967 for aclass (0.04 sec)
-
docs_src/response_model/tutorial002.py
from typing import Union from fastapi import FastAPI from pydantic import BaseModel, EmailStr app = FastAPI() class UserIn(BaseModel): username: str password: str email: EmailStr full_name: Union[str, None] = None # Don't do this in production! @app.post("/user/") async def create_user(user: UserIn) -> UserIn:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jan 07 13:45:48 UTC 2023 - 350 bytes - Viewed (0) -
.teamcity/src/main/kotlin/util/UtilProject.kt
buildType(RerunFlakyTest(Os.MACOS, Arch.AARCH64)) buildType(WarmupEc2Agent) buildType(PublishKotlinDslPlugin) params { param("env.DEVELOCITY_ACCESS_KEY", "%ge.gradle.org.access.key%") }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Apr 24 03:34:53 UTC 2024 - 521 bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/Collections2Test.java
* * @author Chris Povirk * @author Jared Levy */ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public class Collections2Test extends TestCase { @J2ktIncompatible @GwtIncompatible // suite public static Test suite() { TestSuite suite = new TestSuite(Collections2Test.class.getSimpleName()); suite.addTest(testsForFilter()); suite.addTest(testsForFilterAll());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 21 10:16:44 UTC 2024 - 19.7K bytes - Viewed (0) -
guava/src/com/google/common/graph/GraphsBridgeMethods.java
* changed. This provides binary compatibility for users who compiled against the old signatures. */ @Beta @ElementTypesAreNonnullByDefault abstract class GraphsBridgeMethods { @SuppressWarnings("PreferredInterfaceType") public static <N> Graph<N> transitiveClosure(Graph<N> graph) { return Graphs.transitiveClosure(graph); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 14 19:31:40 UTC 2024 - 707 bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial001_an_py310.py
from typing import Annotated from fastapi import FastAPI, Path from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None @app.put("/items/{item_id}") async def update_item( item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)], q: str | None = None, item: Item | None = None,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 579 bytes - Viewed (0) -
docs_src/dependencies/tutorial002_an_py310.py
from typing import Annotated from fastapi import Depends, FastAPI app = FastAPI() fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}] class CommonQueryParams: def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 664 bytes - Viewed (0) -
docs_src/encoder/tutorial001_py310.py
from datetime import datetime from fastapi import FastAPI from fastapi.encoders import jsonable_encoder from pydantic import BaseModel fake_db = {} class Item(BaseModel): title: str timestamp: datetime description: str | None = None app = FastAPI() @app.put("/items/{id}") def update_item(id: str, item: Item): json_compatible_item_data = jsonable_encoder(item)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 430 bytes - Viewed (0) -
samples/static-server/build.gradle.kts
plugins { kotlin("jvm") id("com.github.johnrengelman.shadow") } tasks.compileJava { options.isWarnings = false } tasks.jar { manifest { attributes("Main-Class" to "okhttp3.sample.SampleServer") } } dependencies { implementation(projects.mockwebserver) } tasks.shadowJar { mergeServiceFiles()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Feb 08 20:01:28 UTC 2022 - 316 bytes - Viewed (0) -
docs/em/docs/advanced/testing-websockets.md
๐, ๐ โ๏ธ `TestClient` `with` ๐, ๐*๏ธโฃ: ```Python hl_lines="27-31" {!../../docs_src/app_testing/tutorial002.py!} ``` /// note ๐ โน, โ ๐ ๐งพ <a href="https://www.starlette.io/testclient/#testing-websocket-sessions" class="external-link" target="_blank">๐ฌ *๏ธโฃ </a>.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 371 bytes - Viewed (0) -
docs/en/docs/reference/httpconnection.md
# `HTTPConnection` class When you want to define dependencies that should be compatible with both HTTP and WebSockets, you can define a parameter that takes an `HTTPConnection` instead of a `Request` or a `WebSocket`. You can import it from `fastapi.requests`: ```python from fastapi.requests import HTTPConnection ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 359 bytes - Viewed (0)