Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1041 - 1050 of 1,364 for main (0.18 seconds)

  1. docs/fr/docs/advanced/websockets.md

    Ou vous pouvez avoir toute autre façon de communiquer avec l'endpoint WebSocket.
    
    ---
    
    Mais pour cet exemple, nous utiliserons un document HTML très simple avec un peu de JavaScript, le tout dans une longue chaîne.
    
    Cela, bien entendu, n'est pas optimal et vous ne l'utiliseriez pas en production.
    
    En production, vous auriez l'une des options ci-dessus.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 5.9K bytes
    - Click Count (0)
  2. docs/ko/docs/tutorial/schema-extra-example.md

    * [`Parameter Object` (명세서에 있는)](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-object)는 FastAPI의 다음 기능에서 쓰였습니다:
        * `Path()`
        * `Query()`
        * `Header()`
        * `Cookie()`
    * [`Request Body Object`, `Media Type Object` (명세서에 있는)의 `content` 필드에 있는](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#media-type-object)는 FastAPI의 다음 기능에서 쓰였습니다:
        * `Body()`
        * `File()`
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  3. docs/es/docs/virtual-environments.md

    <div class="termy">
    
    ```console
    $ cd ~/code/prisoner-of-azkaban
    
    $ python main.py
    
    // Error importando sirius, no está instalado 😱
    Traceback (most recent call last):
        File "main.py", line 1, in <module>
            import sirius
    ```
    
    </div>
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 22.6K bytes
    - Click Count (0)
  4. docs/zh/docs/index.md

    ```console
    $ pip install "fastapi[standard]"
    
    ---> 100%
    ```
    
    </div>
    
    **Note**: 请确保把 `"fastapi[standard]"` 用引号包起来,以保证在所有终端中都能正常工作。
    
    ## 示例 { #example }
    
    ### 创建 { #create-it }
    
    创建文件 `main.py`,内容如下:
    
    ```Python
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 20.7K bytes
    - Click Count (0)
  5. docs/ko/docs/advanced/behind-a-proxy.md

    ### `root_path` 제공하기 { #providing-the-root-path }
    
    이를 달성하려면 다음처럼 커맨드 라인 옵션 `--root-path`를 사용할 수 있습니다:
    
    <div class="termy">
    
    ```console
    $ fastapi run main.py --forwarded-allow-ips="*" --root-path /api/v1
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  6. docs/uk/docs/advanced/websockets.md

    {* ../../docs_src/websockets_/tutorial001_py310.py hl[48:52] *}
    
    Ви можете отримувати та надсилати бінарні, текстові та JSON-дані.
    
    ## Спробуйте { #try-it }
    
    Розмістіть код у файлі `main.py`, а потім запустіть ваш застосунок:
    
    <div class="termy">
    
    ```console
    $ fastapi dev
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 7.9K bytes
    - Click Count (0)
  7. docs/es/docs/advanced/behind-a-proxy.md

    ### Proporcionando el `root_path` { #providing-the-root-path }
    
    Para lograr esto, puedes usar la opción de línea de comandos `--root-path` como:
    
    <div class="termy">
    
    ```console
    $ fastapi run main.py --forwarded-allow-ips="*" --root-path /api/v1
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 16.5K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

        // parallelism, check to see if previously submitted tasks are
        // done before submitting more of them. This interleaving
        // plus the exception mechanics account for messiness of main
        // loop.
    
        try {
          // Record exceptions so that if we fail to obtain any
          // result, we can throw the last exception we got.
          ExecutionException ee = null;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 45.6K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/virtual-environments.md

    如果你不去停用 `philosophers-stone` 的虛擬環境,當你在終端中執行 `python` 時,它會嘗試使用 `philosophers-stone` 中的 Python。
    
    <div class="termy">
    
    ```console
    $ cd ~/code/prisoner-of-azkaban
    
    $ python main.py
    
    // 匯入 sirius 錯誤,未安裝 😱
    Traceback (most recent call last):
        File "main.py", line 1, in <module>
            import sirius
    ```
    
    </div>
    
    但如果你停用虛擬環境並啟用 `prisoner-of-azkaban` 的新虛擬環境,那麼當你執行 `python` 時,它會使用 `prisoner-of-azkaban` 中虛擬環境的 Python。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 21K bytes
    - Click Count (0)
  10. docs/zh/docs/virtual-environments.md

    如果你不去停用 `philosophers-stone` 的虚拟环境,当你在终端中运行 `python` 时,它会尝试使用 `philosophers-stone` 中的 Python。
    
    <div class="termy">
    
    ```console
    $ cd ~/code/prisoner-of-azkaban
    
    $ python main.py
    
    // 导入 sirius 报错,它没有安装 😱
    Traceback (most recent call last):
        File "main.py", line 1, in <module>
            import sirius
    ```
    
    </div>
    
    但是如果你停用虚拟环境并激活 `prisoner-of-askaban` 的新虚拟环境,那么当你运行 `python` 时,它会使用 `prisoner-of-askaban` 中的虚拟环境中的 Python。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 21.4K bytes
    - Click Count (0)
Back to Top