- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 297 for Poulter (0.2 seconds)
-
docs/en/docs/tutorial/bigger-applications.md
We are importing the submodule `items` directly, instead of importing just its variable `router`. This is because we also have another variable named `router` in the submodule `users`. If we had imported one after the other, like: ```Python from .routers.items import router from .routers.users import router ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 19.2K bytes - Click Count (0) -
tensorflow/c/eager/c_api_experimental.h
// Deletes the Counter object. TF_CAPI_EXPORT extern void TFE_MonitoringDeleteCounter0( TFE_MonitoringCounter0* counter); // Retrieves the cell from the Counter object. The Counter object will manage // lifetime of the cell. TF_CAPI_EXPORT extern TFE_MonitoringCounterCell* TFE_MonitoringGetCellCounter0( TFE_MonitoringCounter0* counter); // APIs for Counter with 1 label.
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 39.5K bytes - Click Count (1) -
docs/zh-hant/docs/tutorial/bigger-applications.md
/// ### 避免名稱衝突 { #avoid-name-collisions } 我們直接匯入子模組 `items`,而不是只匯入它的變數 `router`。 這是因為在子模組 `users` 中也有另一個名為 `router` 的變數。 如果我們像下面這樣一個接一個匯入: ```Python from .routers.items import router from .routers.users import router ``` 來自 `users` 的 `router` 會覆蓋掉 `items` 的 `router`,我們就無法同時使用兩者。 因此,為了能在同一個檔案中同時使用它們,我們直接匯入子模組:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 18.7K bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/SKILL.md
## Including Routers When declaring routers, prefer to add router level parameters like prefix, tags, etc. to the router itself, instead of in `include_router()`. Do this: ```python from fastapi import APIRouter, FastAPI app = FastAPI() router = APIRouter(prefix="/items", tags=["items"]) @router.get("/") async def list_items(): return [] # In main.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 10.1K bytes - Click Count (0) -
docs_src/bigger_applications/app_an_py310/main.py
from .internal import admin from .routers import items, users app = FastAPI(dependencies=[Depends(get_query_token)]) app.include_router(users.router) app.include_router(items.router) app.include_router( admin.router, prefix="/admin", tags=["admin"], dependencies=[Depends(get_token_header)], responses={418: {"description": "I'm a teapot"}}, ) @app.get("/")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 552 bytes - Click Count (0) -
docs_src/bigger_applications/app_an_py310/internal/admin.py
from fastapi import APIRouter router = APIRouter() @router.post("/") async def update_admin():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 147 bytes - Click Count (0) -
docs/ru/docs/tutorial/bigger-applications.md
Это потому, что у нас также есть другая переменная с именем `router` в подмодуле `users`. Если бы мы импортировали их одну за другой, как здесь: ```Python from .routers.items import router from .routers.users import router ``` то `router` из `users` перезаписал бы `router` из `items`, и мы не смогли бы использовать их одновременно.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 29.7K bytes - Click Count (0) -
tests/test_additional_response_extra.py
from fastapi.testclient import TestClient from inline_snapshot import snapshot router = APIRouter() sub_router = APIRouter() app = FastAPI() @sub_router.get("/") def read_item(): return {"id": "foo"} router.include_router(sub_router, prefix="/items") app.include_router(router) client = TestClient(app) def test_path_operation(): response = client.get("/items/")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 1.3K bytes - Click Count (0) -
cmd/crossdomain-xml-handler_test.go
"testing" "github.com/minio/mux" ) // Test cross domain xml handler. func TestCrossXMLHandler(t *testing.T) { // Server initialization. router := mux.NewRouter().SkipClean(true).UseEncodedPath() handler := setCrossDomainPolicyMiddleware(router) srv := httptest.NewServer(handler) resp, err := http.Get(srv.URL + crossDomainXMLEntity) if err != nil { t.Fatal(err) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sat Jul 08 14:31:42 GMT 2023 - 1.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
buffer.putInt((int) counter); } else { // SMB 3.0/3.0.2 CCM: Counter-based approach as per SMB3 specification final long counter = this.nonceCounter.incrementAndGet(); final ByteBuffer buffer = ByteBuffer.wrap(nonce); buffer.order(java.nio.ByteOrder.LITTLE_ENDIAN); buffer.putLong(counter); // Remaining bytes (if any) stay zero-padded
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 35.5K bytes - Click Count (0)