Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 645 for Pythons (0.05 sec)

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

    ---
    
    接下来要考虑的概念都是关于运行实际 API 的程序(例如 Uvicorn)。
    
    ## 程序和进程
    
    我们将讨论很多关于正在运行的“**进程**”的内容,因此弄清楚它的含义以及与“**程序**”这个词有什么区别是很有用的。
    
    ### 什么是程序
    
    **程序**这个词通常用来描述很多东西:
    
    * 您编写的 **代码**,**Python 文件**。
    * 操作系统可以**执行**的**文件**,例如:`python`、`python.exe`或`uvicorn`。
    * 在操作系统上**运行**、使用CPU 并将内容存储在内存上的特定程序。 这也被称为**进程**。
    
    ### 什么是进程
    
    **进程** 这个词通常以更具体的方式使用,仅指在操作系统中运行的东西(如上面的最后一点):
    
    * 在操作系统上**运行**的特定程序。
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun May 11 13:37:26 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/query-params.md

    * `skip` : avec une valeur de`0`
    * `limit` : avec une valeur de `10`
    
    Faisant partie de l'URL, ces valeurs sont des chaînes de caractères (`str`).
    
    Mais quand on les déclare avec des types Python (dans l'exemple précédent, en tant qu'`int`), elles sont converties dans les types renseignés.
    
    Toutes les fonctionnalités qui s'appliquent aux paramètres de chemin s'appliquent aussi aux paramètres de requête :
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/handling-errors.md

    向客户端返回 HTTP 错误响应,可以使用 `HTTPException`。
    
    ### 导入 `HTTPException`
    
    {* ../../docs_src/handling_errors/tutorial001.py hl[1] *}
    
    ### 触发 `HTTPException`
    
    `HTTPException` 是额外包含了和 API 有关数据的常规 Python 异常。
    
    因为是 Python 异常,所以不能 `return`,只能 `raise`。
    
    如在调用*路径操作函数*里的工具函数时,触发了 `HTTPException`,FastAPI 就不再继续执行*路径操作函数*中的后续代码,而是立即终止请求,并把 `HTTPException` 的 HTTP 错误发送至客户端。
    
    在介绍依赖项与安全的章节中,您可以了解更多用 `raise` 异常代替 `return` 值的优势。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  4. docs/pt/docs/advanced/advanced-dependencies.md

    Vamos imaginar que queremos ter uma dependência que verifica se o parâmetro de consulta `q` possui um valor fixo.
    
    Porém nós queremos poder parametrizar o conteúdo fixo.
    
    ## Uma instância "chamável" { #a-callable-instance }
    
    Em Python existe uma maneira de fazer com que uma instância de uma classe seja um "chamável".
    
    Não propriamente a classe (que já é um chamável), mas a instância desta classe.
    
    Para fazer isso, nós declaramos o método `__call__`:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 20:32:40 UTC 2025
    - 10K bytes
    - Viewed (0)
  5. docs/en/docs/external-links.md

    /// info
    
    Before, this page used to list links to external articles.
    
    But now that FastAPI is the backend framework with the most GitHub stars across languages, and the most starred and used framework in Python, it no longer makes sense to attempt to list all articles written about it.
    
    ///
    
    ## GitHub Repositories
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 12:28:40 UTC 2025
    - 917 bytes
    - Viewed (0)
  6. docs/en/docs/how-to/configure-swagger-ui.md

    ```JavaScript
    presets: [
        SwaggerUIBundle.presets.apis,
        SwaggerUIBundle.SwaggerUIStandalonePreset
    ]
    ```
    
    These are **JavaScript** objects, not strings, so you can't pass them from Python code directly.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/response-model.md

    ```Python hl_lines="3  5"
    {
        "name": "Bar",
        "description": "The bartenders",
        "price": 62,
        "tax": 20.2
    }
    ```
    вони будуть включені у відповідь.
    
    #### Дані з тими самими значеннями, що й типові
    
    Якщо дані мають ті самі значення, що й типові, як у елемента з item_id `baz`:
    
    ```Python hl_lines="3  5-6"
    {
        "name": "Baz",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Jun 24 19:14:01 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    /// note | 備考
    
    `uvicorn main:app`は以下を示します:
    
    * `main`: `main.py`ファイル (Python "module")。
    * `app`:  `main.py`内部で作られるobject(`app = FastAPI()`のように記述される)。
    * `--reload`: コードの変更時にサーバーを再起動させる。開発用。
    
    ///
    
    出力には次のような行があります:
    
    ```hl_lines="4"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 11K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial002_py310.py hl[7,9] *}
    
    /// info | Информация
    
    Чтобы использовать `EmailStr`, сначала установите <a href="https://github.com/JoshData/python-email-validator" class="external-link" target="_blank">`email-validator`</a>.
    
    Создайте [виртуальное окружение](../virtual-environments.md){.internal-link target=_blank}, активируйте его и затем установите пакет, например:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  10. fastapi/applications.py

        """
        `FastAPI` app class, the main entrypoint to use FastAPI.
    
        Read more in the
        [FastAPI docs for First Steps](https://fastapi.tiangolo.com/tutorial/first-steps/).
    
        ## Example
    
        ```python
        from fastapi import FastAPI
    
        app = FastAPI()
        ```
        """
    
        def __init__(
            self: AppType,
            *,
            debug: Annotated[
                bool,
                Doc(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 176.3K bytes
    - Viewed (0)
Back to top