- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for Case (0.17 sec)
-
ci/official/utilities/extract_resultstore_links.py
command_type = invocation_results.get('command_type') case_attrib = attrib.copy() if command_type: command_type = command_type.title() case_name = f'{command_type} invocation {invocation_id}' else: case_name = f' Invocation {invocation_id}' case_attrib.update({'name': case_name, 'status': 'run', 'result': 'completed'})
Python - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Nov 08 17:50:27 GMT 2023 - 10.9K bytes - Viewed (0) -
fastapi/param_functions.py
Swagger UI (that provides the `/docs` interface) has better support for the OpenAPI-specific examples than the JSON Schema `examples`, that's the main use case for this. Read more about it in the [FastAPI docs for Declare Request Example Data](https://fastapi.tiangolo.com/tutorial/schema-extra-example/#using-the-openapi_examples-parameter). """
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Wed Oct 18 12:36:40 GMT 2023 - 62.4K bytes - Viewed (0) -
fastapi/security/http.py
from typing import Optional from fastapi.exceptions import HTTPException from fastapi.openapi.models import HTTPBase as HTTPBaseModel from fastapi.openapi.models import HTTPBearer as HTTPBearerModel from fastapi.security.base import SecurityBase from fastapi.security.utils import get_authorization_scheme_param from pydantic import BaseModel from starlette.requests import Request from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Tue Oct 24 20:26:06 GMT 2023 - 13.2K bytes - Viewed (0) -
fastapi/dependencies/utils.py
from fastapi.concurrency import ( asynccontextmanager, contextmanager_in_threadpool, ) from fastapi.dependencies.models import Dependant, SecurityRequirement from fastapi.logger import logger from fastapi.security.base import SecurityBase from fastapi.security.oauth2 import OAuth2, SecurityScopes from fastapi.security.open_id_connect_url import OpenIdConnect from fastapi.utils import create_response_field, get_path_param_names
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Mon Dec 25 17:57:35 GMT 2023 - 29.5K bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial002.py
names. Should be called only after all routes have been added. """ for route in app.routes: if isinstance(route, APIRoute): route.operation_id = route.name # in this case, 'read_items'
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 572 bytes - Viewed (0) -
docs_src/sql_databases/sql_app/database.py
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker SQLALCHEMY_DATABASE_URL = "sqlite:///./sql_app.db" # SQLALCHEMY_DATABASE_URL = "postgresql://user:password@postgresserver/db" engine = create_engine( SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False} ) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sun Apr 05 11:53:09 GMT 2020 - 461 bytes - Viewed (0) -
docs_src/sql_databases/sql_app_py39/models.py
from sqlalchemy.orm import relationship from .database import Base class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True) email = Column(String, unique=True, index=True) hashed_password = Column(String) is_active = Column(Boolean, default=True) items = relationship("Item", back_populates="owner") class Item(Base): __tablename__ = "items"
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Tue Jan 09 14:35:33 GMT 2024 - 710 bytes - Viewed (0) -
docs_src/sql_databases/sql_app/tests/test_sql_app.py
from sqlalchemy.pool import StaticPool from ..database import Base from ..main import app, get_db SQLALCHEMY_DATABASE_URL = "sqlite://" engine = create_engine( SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}, poolclass=StaticPool, ) TestingSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) Base.metadata.create_all(bind=engine) def override_get_db():
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Thu Jun 22 11:20:12 GMT 2023 - 1.2K bytes - Viewed (0) -
docs_src/sql_databases/sql_app_py310/main.py
from fastapi import Depends, FastAPI, HTTPException from sqlalchemy.orm import Session from . import crud, models, schemas from .database import SessionLocal, engine models.Base.metadata.create_all(bind=engine) app = FastAPI() # Dependency def get_db(): db = SessionLocal() try: yield db finally: db.close() @app.post("/users/", response_model=schemas.User)
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 1.6K bytes - Viewed (0) -
fastapi/security/api_key.py
from typing import Optional from fastapi.openapi.models import APIKey, APIKeyIn from fastapi.security.base import SecurityBase from starlette.exceptions import HTTPException from starlette.requests import Request from starlette.status import HTTP_403_FORBIDDEN from typing_extensions import Annotated, Doc # type: ignore [attr-defined] class APIKeyBase(SecurityBase): pass class APIKeyQuery(APIKeyBase): """
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Wed Oct 18 12:36:40 GMT 2023 - 9.2K bytes - Viewed (0)