Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 77 for 1515 (0.01 sec)

  1. docs/fr/docs/tutorial/debugging.md

    ## Faites appel à `uvicorn`
    
    Dans votre application FastAPI, importez et exécutez directement `uvicorn` :
    
    {* ../../docs_src/debugging/tutorial001.py hl[1,15] *}
    
    ### À propos de `__name__ == "__main__"`
    
    Le but principal de `__name__ == "__main__"` est d'avoir du code qui est exécuté lorsque votre fichier est appelé avec :
    
    <div class="termy">
    
    ```console
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Oct 27 17:31:14 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/debugging.md

    ## Chamar `uvicorn` { #call-uvicorn }
    
    Em sua aplicação FastAPI, importe e execute `uvicorn` diretamente:
    
    {* ../../docs_src/debugging/tutorial001_py39.py hl[1,15] *}
    
    ### Sobre `__name__ == "__main__"` { #about-name-main }
    
    O objetivo principal de `__name__ == "__main__"` é ter algum código que seja executado quando seu arquivo for chamado com:
    
    <div class="termy">
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/debugging.md

    # 디버깅
    
    예를 들면 Visual Studio Code 또는 PyCharm을 사용하여 편집기에서 디버거를 연결할 수 있습니다.
    
    ## `uvicorn` 호출
    
    FastAPI 애플리케이션에서 `uvicorn`을 직접 임포트하여 실행합니다
    
    {* ../../docs_src/debugging/tutorial001.py hl[1,15] *}
    
    ### `__name__ == "__main__"` 에 대하여
    
    `__name__ == "__main__"`의 주요 목적은 다음과 같이 파일이 호출될 때 실행되는 일부 코드를 갖는 것입니다.
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    그러나 다음과 같이 다른 파일을 가져올 때는 호출되지 않습니다.
    
    ```Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/path-operation-configuration.md

    Aber falls Sie sich nicht mehr erinnern, wofür jeder Nummerncode steht, können Sie die Abkürzungs-Konstanten in `status` verwenden:
    
    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    Dieser Statuscode wird in der Response verwendet und zum OpenAPI-Schema hinzugefügt.
    
    /// note | Technische Details
    
    Sie können auch `from starlette import status` verwenden.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/path-operation-configuration.md

    Но если вы не помните, для чего нужен каждый числовой код, вы можете использовать сокращенные константы в параметре `status`:
    
    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    Этот статус-код будет использован в ответе и будет добавлен в схему OpenAPI.
    
    /// note | Технические детали
    
    Вы также можете использовать `from starlette import status`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/path-operation-configuration.md

    You can pass directly the `int` code, like `404`.
    
    But if you don't remember what each number code is for, you can use the shortcut constants in `status`:
    
    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    That status code will be used in the response and will be added to the OpenAPI schema.
    
    /// note | Technical Details
    
    You could also use `from starlette import status`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/path-operation-configuration.md

    Puedes pasar directamente el código `int`, como `404`.
    
    Pero si no recuerdas para qué es cada código numérico, puedes usar las constantes atajo en `status`:
    
    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    Ese código de estado se usará en el response y se añadirá al esquema de OpenAPI.
    
    /// note | Detalles Técnicos
    
    También podrías usar `from starlette import status`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/path-operation-configuration.md

    Mas se você não se lembrar o que cada código numérico significa, pode usar as constantes de atalho em `status`:
    
    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    Esse código de status será usado na resposta e será adicionado ao esquema OpenAPI.
    
    /// note | Detalhes Técnicos
    
    Você também poderia usar `from starlette import status`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_files/test_tutorial002.py

                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
                ),
            )
        assert response.status_code == 200, response.text
        assert response.json() == {"file_sizes": [14, 15]}
    
    
    def test_post_upload_file(tmp_path, app: FastAPI):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/debugging.md

    # デバッグ
    
    Visual Studio CodeやPyCharmなどを使用して、エディター上でデバッガーと連携できます。
    
    ## `uvicorn` の実行
    
    FastAPIアプリケーション上で、`uvicorn` を直接インポートして実行します:
    
    {* ../../docs_src/debugging/tutorial001.py hl[1,15] *}
    
    ### `__name__ == "__main__"` について
    
    `__name__ == "__main__"` の主な目的は、ファイルが次のコマンドで呼び出されたときに実行されるコードを用意することです:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    ただし、次のように、別のファイルからインポートされるときには呼び出されません:
    
    ```Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top