Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for extensions (0.19 sec)

  1. fastapi/utils.py

        Validator,
        lenient_issubclass,
    )
    from fastapi.datastructures import DefaultPlaceholder, DefaultType
    from pydantic import BaseModel, create_model
    from pydantic.fields import FieldInfo
    from typing_extensions import Literal
    
    if TYPE_CHECKING:  # pragma: nocover
        from .routing import APIRoute
    
    # Cache for `create_cloned_field`
    _CLONED_TYPES_CACHE: MutableMapping[
        Type[BaseModel], Type[BaseModel]
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  2. fastapi/security/http.py

    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
    from typing_extensions import Annotated, Doc
    
    
    class HTTPBasicCredentials(BaseModel):
        """
        The HTTP Basic credentials given as the result of using `HTTPBasic` in a
        dependency.
    
        Read more about it in the
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Apr 19 15:29:38 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  3. fastapi/params.py

    import warnings
    from enum import Enum
    from typing import Any, Callable, Dict, List, Optional, Sequence, Union
    
    from fastapi.openapi.models import Example
    from pydantic.fields import FieldInfo
    from typing_extensions import Annotated, deprecated
    
    from ._compat import PYDANTIC_V2, PYDANTIC_VERSION, Undefined
    
    _Unset: Any = Undefined
    
    
    class ParamTypes(Enum):
        query = "query"
        header = "header"
        path = "path"
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 27.5K bytes
    - Viewed (1)
  4. pyproject.toml

        "Topic :: Internet :: WWW/HTTP",
    ]
    dependencies = [
        "starlette>=0.37.2,<0.38.0",
        "pydantic>=1.7.4,!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0",
        "typing-extensions>=4.8.0",
    ]
    
    [project.urls]
    Homepage = "https://github.com/tiangolo/fastapi"
    Documentation = "https://fastapi.tiangolo.com/"
    Repository = "https://github.com/tiangolo/fastapi"
    
    [project.optional-dependencies]
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  5. docs/en/mkdocs.yml

      - alternatives.md
      - history-design-future.md
      - benchmarks.md
    - Help:
      - help/index.md
      - help-fastapi.md
      - contributing.md
    - release-notes.md
    markdown_extensions:
      toc:
        permalink: true
      markdown.extensions.codehilite:
        guess_lang: false
      mdx_include:
        base_path: docs
      admonition: null
      codehilite: null
      extra: null
      pymdownx.superfences:
        custom_fences:
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  6. fastapi/openapi/models.py

        JsonSchemaValue,
        _model_rebuild,
        with_info_plain_validator_function,
    )
    from fastapi.logger import logger
    from pydantic import AnyUrl, BaseModel, Field
    from typing_extensions import Annotated, Literal, TypedDict
    from typing_extensions import deprecated as typing_deprecated
    
    try:
        import email_validator
    
        assert email_validator  # make autoflake ignore the unused import
        from pydantic import EmailStr
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  7. fastapi/param_functions.py

    from typing import Any, Callable, Dict, List, Optional, Sequence, Union
    
    from fastapi import params
    from fastapi._compat import Undefined
    from fastapi.openapi.models import Example
    from typing_extensions import Annotated, Doc, deprecated
    
    _Unset: Any = Undefined
    
    
    def Path(  # noqa: N802
        default: Annotated[
            Any,
            Doc(
                """
                Default value if the parameter field is not set.
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  8. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    Vous pouvez étendre le schéma OpenAPI pour une *opération de chemin* en utilisant le paramètre `openapi_extra`.
    
    ### Extensions OpenAPI
    
    Cet `openapi_extra` peut être utile, par exemple, pour déclarer [OpenAPI Extensions](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#specificationExtensions) :
    
    ```Python hl_lines="6"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8K bytes
    - Viewed (0)
  9. docs_src/extra_data_types/tutorial001_an.py

    from datetime import datetime, time, timedelta
    from typing import Union
    from uuid import UUID
    
    from fastapi import Body, FastAPI
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def read_items(
        item_id: UUID,
        start_datetime: Annotated[datetime, Body()],
        end_datetime: Annotated[datetime, Body()],
        process_after: Annotated[timedelta, Body()],
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Apr 19 00:11:40 GMT 2024
    - 830 bytes
    - Viewed (0)
  10. docs/en/docs/python-types.md

        ```Python hl_lines="1  4"
        {!> ../../../docs_src/python_types/tutorial013_py39.py!}
        ```
    
    === "Python 3.8+"
    
        In versions below Python 3.9, you import `Annotated` from `typing_extensions`.
    
        It will already be installed with **FastAPI**.
    
        ```Python hl_lines="1  4"
        {!> ../../../docs_src/python_types/tutorial013.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
Back to top