- Sort Score
- Result 10 results
- Languages All
Results 1041 - 1050 of 1,169 for def2 (0.02 sec)
-
docs_src/path_operation_configuration/tutorial005.py
tax: Union[float, None] = None tags: Set[str] = set() @app.post( "/items/", response_model=Item, summary="Create an item", response_description="The created item", ) async def create_item(item: Item): """ Create an item with all the information: - **name**: each item must have a name - **description**: a long description - **price**: required
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 741 bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/CleanAcceptedApiChanges.groovy
@PathSensitive(PathSensitivity.ABSOLUTE) @InputDirectory abstract DirectoryProperty getJsonFileDirectory() @TaskAction void clean() { def jsonFileManager = new AcceptedApiChangesJsonFileManager() jsonFileDirectory.asFile.get().listFiles() ?.findAll { it.name.endsWith(".json") } ?.each { jsonFileManager.emptyAcceptedApiChanges(it) }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jun 05 08:27:29 UTC 2024 - 1.6K bytes - Viewed (0) -
docs/fr/docs/deployment/docker.md
* Créez un fichier `main.py` avec : ```Python from typing import Optional from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Optional[str] = None): return {"item_id": item_id, "q": q} ``` * Vous devriez maintenant avoir une structure de répertoire telle que : ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 7.5K bytes - Viewed (0) -
tests/test_tutorial/test_templates/test_tutorial001.py
import os import shutil from fastapi.testclient import TestClient def test_main(): if os.path.isdir("./static"): # pragma: nocover shutil.rmtree("./static") if os.path.isdir("./templates"): # pragma: nocover shutil.rmtree("./templates") shutil.copytree("./docs_src/templates/templates/", "./templates") shutil.copytree("./docs_src/templates/static/", "./static") from docs_src.templates.tutorial001 import app
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jan 11 22:25:37 UTC 2024 - 910 bytes - Viewed (0) -
scripts/playwright/separate_openapi_schemas/image05.py
import subprocess from playwright.sync_api import Playwright, sync_playwright # Run playwright codegen to generate the code below, copy paste the sections in run() def run(playwright: Playwright) -> None: browser = playwright.chromium.launch(headless=False) # Update the viewport manually context = browser.new_context(viewport={"width": 960, "height": 1080}) page = context.new_page() page.goto("http://localhost:8000/docs")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 13 09:14:46 UTC 2024 - 984 bytes - Viewed (0) -
scripts/playwright/separate_openapi_schemas/image02.py
import subprocess from playwright.sync_api import Playwright, sync_playwright # Run playwright codegen to generate the code below, copy paste the sections in run() def run(playwright: Playwright) -> None: browser = playwright.chromium.launch(headless=False) # Update the viewport manually context = browser.new_context(viewport={"width": 960, "height": 1080}) page = context.new_page() page.goto("http://localhost:8000/docs")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 13 09:14:46 UTC 2024 - 1K bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial005_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 26 18:03:13 UTC 2023 - 1.5K bytes - Viewed (0) -
scripts/playwright/sql_databases/image02.py
import subprocess import time import httpx from playwright.sync_api import Playwright, sync_playwright # Run playwright codegen to generate the code below, copy paste the sections in run() def run(playwright: Playwright) -> None: browser = playwright.chromium.launch(headless=False) # Update the viewport manually context = browser.new_context(viewport={"width": 960, "height": 1080}) page = context.new_page()
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 1.1K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc
std::unique_ptr<TFE_Context, decltype(&TFE_DeleteContext)> context( TFE_NewContext(opts.get(), status.get()), TFE_DeleteContext); tensorflow::ServerDef server_def = GetServerDef("worker", 3); // This server def has the task index set to 0. std::string serialized = server_def.SerializeAsString(); server_def.set_task_index(1); std::unique_ptr<tensorflow::GrpcServer> worker_server1; ASSERT_TRUE(tensorflow::GrpcServer::Create(
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Jul 10 07:18:05 UTC 2024 - 6.8K bytes - Viewed (0) -
scripts/playwright/cookie_param_models/image01.py
import subprocess import time import httpx from playwright.sync_api import Playwright, sync_playwright # Run playwright codegen to generate the code below, copy paste the sections in run() def run(playwright: Playwright) -> None: browser = playwright.chromium.launch(headless=False) # Update the viewport manually context = browser.new_context(viewport={"width": 960, "height": 1080}) browser = playwright.chromium.launch(headless=False)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 1.2K bytes - Viewed (0)