Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for regenerate (0.19 sec)

  1. fastapi/dependencies/utils.py

        Type,
        Union,
        cast,
    )
    
    import anyio
    from fastapi import params
    from fastapi._compat import (
        PYDANTIC_V2,
        ErrorWrapper,
        ModelField,
        Required,
        Undefined,
        _regenerate_error_with_loc,
        copy_field_info,
        create_body_model,
        evaluate_forwardref,
        field_annotation_is_scalar,
        get_annotation_from_field_info,
        get_missing_field_error,
        is_bytes_field,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/generate-clients.md

        {!> ../../../docs_src/generate_clients/tutorial002_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="23  28  36"
        {!> ../../../docs_src/generate_clients/tutorial002.py!}
        ```
    
    ### Generate a TypeScript Client with Tags
    
    If you generate a client for a FastAPI app using tags, it will normally also separate the client code based on the tags.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. fastapi/_compat.py

                        self._type_adapter.validate_python(value, from_attributes=True),
                        None,
                    )
                except ValidationError as exc:
                    return None, _regenerate_error_with_loc(
                        errors=exc.errors(include_url=False), loc_prefix=loc
                    )
    
            def serialize(
                self,
                value: Any,
                *,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  4. docs_src/dependencies/tutorial009.py

    
    async def dependency_a():
        dep_a = generate_dep_a()
        try:
            yield dep_a
        finally:
            dep_a.close()
    
    
    async def dependency_b(dep_a=Depends(dependency_a)):
        dep_b = generate_dep_b()
        try:
            yield dep_b
        finally:
            dep_b.close(dep_a)
    
    
    async def dependency_c(dep_b=Depends(dependency_b)):
        dep_c = generate_dep_c()
        try:
            yield dep_c
        finally:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 455 bytes
    - Viewed (0)
  5. .github/actions/people/action.yml

    name: "Generate FastAPI People"
    description: "Generate the data for the FastAPI People page"
    author: "Sebastián Ramírez <******@****.***>"
    inputs:
      token:
        description: 'User token, to read the GitHub API. Can be passed in using {{ secrets.FASTAPI_PEOPLE }}'
        required: true
    runs:
      using: 'docker'
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jul 09 15:44:40 GMT 2023
    - 333 bytes
    - Viewed (0)
  6. docs_src/custom_response/tutorial004.py

    from fastapi import FastAPI
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    def generate_html_response():
        html_content = """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
        """
        return HTMLResponse(content=html_content, status_code=200)
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 491 bytes
    - Viewed (0)
  7. fastapi/dependencies/models.py

            self.security_scopes_param_name = security_scopes_param_name
            self.name = name
            self.call = call
            self.use_cache = use_cache
            # Store the path to be able to re-generate a dependable from it in overrides
            self.path = path
            # Save the cache key at creation to optimize performance
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/generate-clients.md

    frontend-app@1.0.0 generate-client /home/user/code/frontend-app
    > openapi-ts --input http://localhost:8000/openapi.json --output ./src/client --client axios
    ```
    
    </div>
    
    此命令将在 `./src/client` 中生成代码,并将在其内部使用 `axios`(前端HTTP库)。
    
    ### 尝试客户端代码
    
    现在您可以导入并使用客户端代码,它可能看起来像这样,请注意,您可以为这些方法使用自动补全:
    
    <img src="/img/tutorial/generate-clients/image02.png">
    
    您还将自动补全要发送的数据:
    
    <img src="/img/tutorial/generate-clients/image03.png">
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Apr 03 03:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/oauth2-jwt.md

    If you want to play with JWT tokens and see how they work, check <a href="https://jwt.io/" class="external-link" target="_blank">https://jwt.io</a>.
    
    ## Install `python-jose`
    
    We need to install `python-jose` to generate and verify the JWT tokens in Python:
    
    <div class="termy">
    
    ```console
    $ pip install "python-jose[cryptography]"
    
    ---> 100%
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/custom-request-and-route.md

    ```
    
    In this example, the *path operations* under the `router` will use the custom `TimedRoute` class, and will have an extra `X-Response-Time` header in the response with the time it took to generate the response:
    
    ```Python hl_lines="13-20"
    {!../../../docs_src/custom_request_and_route/tutorial003.py!}
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top