- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 4,715 for fromP2 (0.04 seconds)
-
tests/test_additional_responses_custom_validationerror.py
from fastapi import FastAPI from fastapi.responses import JSONResponse from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel app = FastAPI() class JsonApiResponse(JSONResponse): media_type = "application/vnd.api+json" class Error(BaseModel): status: str title: str class JsonApiError(BaseModel): errors: list[Error] @app.get(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 3.2K bytes - Click Count (0) -
tests/test_deprecated_responses.py
import warnings import pytest from fastapi import FastAPI from fastapi.exceptions import FastAPIDeprecationWarning from fastapi.responses import ORJSONResponse, UJSONResponse from fastapi.testclient import TestClient from pydantic import BaseModel class Item(BaseModel): name: str price: float # ORJSON def _make_orjson_app() -> FastAPI: with warnings.catch_warnings():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 22 16:34:59 GMT 2026 - 2K bytes - Click Count (0) -
tests/test_security_api_key_header_optional.py
from fastapi import Depends, FastAPI, Security from fastapi.security import APIKeyHeader from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel app = FastAPI() api_key = APIKeyHeader(name="key", auto_error=False) class User(BaseModel): username: str def get_current_user(oauth_header: str | None = Security(api_key)): if oauth_header is None: return None
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.1K bytes - Click Count (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild.incubation-report-aggregation.gradle.kts
group = "verification" destinationDirectory = layout.buildDirectory.dir("reports/incubation") archiveBaseName = "incubating-apis" from(allIncubationReports.get().htmlReportFile) from(allIncubationReports.get().csvReportFile) from(resolver("html")) } fun resolver(reportType: String) = configurations.create("incubatingReport${reportType.capitalize()}Path") { isCanBeResolved = true
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Jul 02 12:28:02 GMT 2025 - 1.5K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/CoreExtension.java
* The version of the extension. */ private String version; /** * The class loading strategy: 'self-first' (the default), * 'parent-first' (loads classes from the parent, then from the * extension) or 'plugin' (follows the rules from extensions * defined as plugins). */ private String classLoadingStrategy = "self-first"; // -----------/ // - Methods -/ // -----------/Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Oct 27 13:24:03 GMT 2025 - 4.5K bytes - Click Count (0) -
docs_src/settings/app03_an_py310/main.py
from functools import lru_cache from typing import Annotated from fastapi import Depends, FastAPI from . import config app = FastAPI() @lru_cache def get_settings(): return config.Settings() @app.get("/info") async def info(settings: Annotated[config.Settings, Depends(get_settings)]): return { "app_name": settings.app_name, "admin_email": settings.admin_email,
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 451 bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java
} ImmutableSortedMultiset<E> getSubMultiset(int from, int to) { checkPositionIndexes(from, to, length); if (from == to) { return emptyMultiset(comparator()); } else if (from == 0 && to == length) { return this; } else { RegularImmutableSortedSet<E> subElementSet = elementSet.getSubSet(from, to); return new RegularImmutableSortedMultiset<>(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 4.3K bytes - Click Count (0) -
internal/s3select/sql/parser_test.go
"cast(s as DECIMAL)", "extract(YEAR from '2018-01-09')", "extract(month from '2018-01-09')", "extract(hour from '2018-01-09')", "extract(day from '2018-01-09')", "substring('abcd' from 2 for 2)", "substring('abcd' from 2)", "substring('abcd' , 2 , 2)", "substring('abcd' , 22 )", "trim(' aab ')", "trim(leading from ' aab ')", "trim(trailing from ' aab ')", "trim(both from ' aab ')",
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 9.2K bytes - Click Count (0) -
docs_src/bigger_applications/app_an_py310/main.py
from fastapi import Depends, FastAPI from .dependencies import get_query_token, get_token_header 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)],
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 552 bytes - Click Count (0) -
fastapi/routing.py
Any, TypeVar, cast, ) import anyio from annotated_doc import Doc from anyio.abc import ObjectReceiveStream from fastapi import params from fastapi._compat import ( ModelField, Undefined, lenient_issubclass, ) from fastapi.datastructures import Default, DefaultPlaceholder from fastapi.dependencies.models import Dependant from fastapi.dependencies.utils import ( _should_embed_body_fields,Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 193K bytes - Click Count (0)