Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 47 for Fontaine (0.15 sec)

  1. docs/zh/docs/deployment/concepts.md

         另外,请记住,根据您的设置,在某些情况下,您在开始应用程序之前**可能甚至不需要任何先前的步骤**。
    
         在这种情况下,您就不必担心这些。 🤷
    
    
    ### 前面步骤策略的示例
    
    这将在**很大程度上取决于您部署系统的方式**,并且可能与您启动程序、处理重启等的方式有关。
    
    以下是一些可能的想法:
    
    * Kubernetes 中的“Init Container”在应用程序容器之前运行
    * 一个 bash 脚本,运行前面的步骤,然后启动您的应用程序
         * 您仍然需要一种方法来启动/重新启动 bash 脚本、检测错误等。
    
    !!! tip
    
         我将在以后的章节中为您提供使用容器执行此操作的更具体示例:[容器中的 FastAPI - Docker](docker.md){.internal-link target=_blank}。
    
    ## 资源利用率
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  2. docs/zh/docs/deployment/docker.md

    !!! info
        如果你使用 Kubernetes,这可能是 <a href="https://kubernetes.io/docs/concepts/workloads/pods/init-containers/" class="external-link" target="_blank">Init Container</a>。
    
    如果在你的用例中,运行前面的步骤**并行多次**没有问题(例如,如果你没有运行数据库迁移,而只是检查数据库是否已准备好),那么你也可以将它们放在开始主进程之前在每个容器中。
    
    ### 单容器
    
    如果你有一个简单的设置,使用一个**单个容器**,然后启动多个**工作进程**(或者也只是一个进程),那么你可以在启动进程之前在应用程序同一个容器中运行先前的步骤。 官方 Docker 镜像内部支持这一点。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 31.2K bytes
    - Viewed (0)
  3. fastapi/applications.py

                        corresponding JSON.
                    * Filtering: the JSON sent to the client will only contain the data
                        (fields) defined in the `response_model`. If you returned an object
                        that contains an attribute `password` but the `response_model` does
                        not include that field, the JSON sent to the client would not have
    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/en/docs/advanced/security/oauth2-scopes.md

                                * `security_scopes.scopes` will contain `["me", "items"]` for the *path operation* `read_own_items`.
                                * `security_scopes.scopes` will contain `["me"]` for the *path operation* `read_users_me`, because it is declared in the dependency `get_current_active_user`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/security/http-basic-auth.md

    # HTTP Basic Auth
    
    For the simplest cases, you can use HTTP Basic Auth.
    
    In HTTP Basic Auth, the application expects a header that contains a username and a password.
    
    If it doesn't receive it, it returns an HTTP 401 "Unauthorized" error.
    
    And returns a header `WWW-Authenticate` with a value of `Basic`, and an optional `realm` parameter.
    
    That tells the browser to show the integrated prompt for a username and password.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 14:33:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. docs/de/docs/deployment/server-workers.md

    !!! info
        Wenn Sie Container verwenden, beispielsweise mit Docker oder Kubernetes, erzähle ich Ihnen mehr darüber im nächsten Kapitel: [FastAPI in Containern – Docker](docker.md){.internal-link target=_blank}.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:19:25 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/response-headers.md

    **FastAPI** will use that *temporal* response to extract the headers (also cookies and status code), and will put them in the final response that contains the value you returned, filtered by any `response_model`.
    
    You can also declare the `Response` parameter in dependencies, and set headers (and cookies) in them.
    
    ## Return a `Response` directly
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  8. docs/en/docs/how-to/sql-databases-peewee.md

    Most of the code is actually the same.
    
    So, we are going to focus only on the differences.
    
    ## File structure
    
    Let's say you have a directory named `my_super_project` that contains a sub-directory called `sql_app` with a structure like this:
    
    ```
    .
    └── sql_app
        ├── __init__.py
        ├── crud.py
        ├── database.py
        ├── main.py
        └── schemas.py
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  9. fastapi/openapi/models.py

        # It generales a list of schemas for tuples, before prefixItems was available
        # items: Optional["SchemaOrBool"] = None
        items: Optional[Union["SchemaOrBool", List["SchemaOrBool"]]] = None
        contains: Optional["SchemaOrBool"] = None
        properties: Optional[Dict[str, "SchemaOrBool"]] = None
        patternProperties: Optional[Dict[str, "SchemaOrBool"]] = None
        additionalProperties: Optional["SchemaOrBool"] = 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)
  10. docs/en/docs/advanced/custom-response.md

    ```{ .python .annotate hl_lines="2  10-12  14" }
    {!../../../docs_src/custom_response/tutorial008.py!}
    ```
    
    1. This is the generator function. It's a "generator function" because it contains `yield` statements inside.
    2. By using a `with` block, we make sure that the file-like object is closed after the generator function is done. So, after it finishes sending the response.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top