- Sort Score
- Num 10 results
- Language All
Results 471 - 480 of 1,675 for tone (0.02 seconds)
-
docs_src/schema_extra_example/tutorial005_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 @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Item = Body( openapi_examples={ "normal": {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.4K bytes - Click Count (0) -
docs_src/dependencies/tutorial004_py39.py
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: Union[str, None] = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: CommonQueryParams = Depends()): response = {}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 639 bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/ArtifactStatus.java
* */ @Deprecated public final class ArtifactStatus implements Comparable<ArtifactStatus> { /** * No trust - no information about status. */ public static final ArtifactStatus NONE = new ArtifactStatus("none", 0); /** * No trust - information was generated with defaults. */ public static final ArtifactStatus GENERATED = new ArtifactStatus("generated", 1); /**
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 3K bytes - Click Count (0) -
docs_src/dependencies/tutorial013_an_py310.py
from sqlmodel import Field, Session, SQLModel, create_engine engine = create_engine("postgresql+psycopg://postgres:postgres@localhost/db") class User(SQLModel, table=True): id: int | None = Field(default=None, primary_key=True) name: str app = FastAPI() def get_session(): with Session(engine) as session: yield session
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Sep 29 03:29:38 GMT 2025 - 937 bytes - Click Count (0) -
arm_compiler.BUILD
"lib/gcc/arm-rpi-linux-gnueabihf/**", "include/**", ]), ) filegroup( name = "aarch64_compiler_pieces", srcs = glob([ "aarch64-none-linux-gnu/**", "libexec/**", "lib/gcc/aarch64-none-linux-gnu/**", "include/**", ]), ) filegroup( name = "compiler_components", srcs = [ ":ar", ":as", ":gcc",Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Mon Apr 12 11:17:46 GMT 2021 - 1.2K bytes - Click Count (0) -
tests/test_param_include_in_schema.py
app = FastAPI() @app.get("/hidden_cookie") async def hidden_cookie( hidden_cookie: Optional[str] = Cookie(default=None, include_in_schema=False), ): return {"hidden_cookie": hidden_cookie} @app.get("/hidden_header") async def hidden_header( hidden_header: Optional[str] = Header(default=None, include_in_schema=False), ): return {"hidden_header": hidden_header} @app.get("/hidden_path/{hidden_path}")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 7.4K bytes - Click Count (0) -
docs_src/dependencies/tutorial004_an_py39.py
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: Union[str, None] = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: Annotated[CommonQueryParams, Depends()]):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 660 bytes - Click Count (0) -
docs_src/background_tasks/tutorial002_an_py39.py
app = FastAPI() def write_log(message: str): with open("log.txt", mode="a") as log: log.write(message) def get_query(background_tasks: BackgroundTasks, q: Union[str, None] = None): if q: message = f"found query: {q}\n" background_tasks.add_task(write_log, message) return q @app.post("/send-notification/{email}") async def send_notification(
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 696 bytes - Click Count (0) -
cmd/shared-lock.go
ctx, cancel := context.WithCancel(context.Background()) go func() { select { case <-ctx1.Done(): case <-ctx2.Done(): // The lock acquirer decides to cancel, exit this goroutine case <-ctx.Done(): } cancel() }() return ctx, cancel } func (ld sharedLock) GetLock(ctx context.Context) (context.Context, context.CancelFunc) {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Feb 13 09:26:38 GMT 2023 - 2.3K bytes - Click Count (0) -
src/main/assemblies/files/fess
if expr "$link" : '/.*' > /dev/null; then SCRIPT="$link" else SCRIPT=`dirname "$SCRIPT"`/"$link" fi done # determine fess home FESS_HOME=`dirname "$SCRIPT"`/.. # make FESS_HOME absolute FESS_HOME=`cd "$FESS_HOME"; pwd` # If an include wasn't specified in the environment, then search for one... if [ "x$FESS_INCLUDE" = "x" ]; then # Locations (in order) to use when searching for an include file.
Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Sun Jan 15 06:32:15 GMT 2023 - 5.4K bytes - Click Count (0)