Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for basec (0.13 sec)

  1. docs_src/security/tutorial007_an_py39.py

            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Incorrect username or password",
                headers={"WWW-Authenticate": "Basic"},
            )
        return credentials.username
    
    
    @app.get("/users/me")
    def read_current_user(username: Annotated[str, Depends(get_current_username)]):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  2. fastapi/openapi/models.py

        contentSchema: Optional["SchemaOrBool"] = None
        # Ref: JSON Schema Validation 2020-12: https://json-schema.org/draft/2020-12/json-schema-validation.html#name-a-vocabulary-for-basic-meta
        # A Vocabulary for Basic Meta-Data Annotations
        title: Optional[str] = None
        description: Optional[str] = None
        default: Optional[Any] = None
        deprecated: Optional[bool] = None
        readOnly: Optional[bool] = None
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  3. fastapi/applications.py

                    tools like Swagger UI, used in the automatic path `/docs`.
    
                    It's not required to specify all the tags used.
    
                    The tags that are not declared MAY be organized randomly or based
                    on the tools' logic. Each tag name in the list MUST be unique.
    
                    The value of each item is a `dict` containing:
    
                    * `name`: The name of the tag.
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  4. docs_src/sql_databases/sql_app_py310/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 May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 14:35:33 GMT 2024
    - 710 bytes
    - Viewed (0)
  5. fastapi/security/open_id_connect_url.py

    from typing import Optional
    
    from fastapi.openapi.models import OpenIdConnect as OpenIdConnectModel
    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
    
    
    class OpenIdConnect(SecurityBase):
        """
        OpenID Connect authentication class. An instance of it would be used as a
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  6. configure.py

        write_to_bazelrc('build --copt=-Wno-gnu-offsetof-extensions')
    
    
    def set_tf_cuda_paths(environ_cp):
      """Set TF_CUDA_PATHS."""
      ask_cuda_paths = (
          'Please specify the comma-separated list of base paths to look for CUDA '
          'libraries and headers. [Leave empty to use the default]: ')
      tf_cuda_paths = get_from_env_or_user_or_default(environ_cp, 'TF_CUDA_PATHS',
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
Back to top