Search Options

Results per page
Sort
Preferred Languages
Advance

Results 551 - 560 of 873 for Python (0.07 sec)

  1. docs/ja/docs/advanced/websockets.md

    もちろん、これは最適な方法ではありませんし、本番環境で使うことはないでしょう。
    
    本番環境では、上記の方法のいずれかの選択肢を採用することになるでしょう。
    
    しかし、これはWebSocketのサーバーサイドに焦点を当て、実用的な例を示す最も簡単な方法です。
    
    ```Python hl_lines="2  6-38  41-43"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## `websocket` を作成する
    
    **FastAPI** アプリケーションで、`websocket` を作成します。
    
    ```Python hl_lines="1  46-47"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    /// note | "技術詳細"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. docs/en/docs/reference/exceptions.md

    When you raise an exception, as would happen with normal Python, the rest of the execution is aborted. This way you can raise these exceptions from anywhere in the code to abort a request and show the error to the client.
    
    You can use:
    
    * `HTTPException`
    * `WebSocketException`
    
    These exceptions can be imported directly from `fastapi`:
    
    ```python
    from fastapi import HTTPException, WebSocketException
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 597 bytes
    - Viewed (0)
  3. RELEASE.md

        [`tf.dtypes`](https://www.tensorflow.org/versions/master/api_docs/python/tf/dtypes),
        [`tf.image`](https://www.tensorflow.org/versions/master/api_docs/python/tf/image),
        [`tf.io`](https://www.tensorflow.org/versions/master/api_docs/python/tf/io),
        [`tf.linalg`](https://www.tensorflow.org/versions/master/api_docs/python/tf/linalg),
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Oct 22 14:33:53 UTC 2024
    - 735.3K bytes
    - Viewed (0)
  4. docs/en/docs/deployment/manually.md

    ```
    
    </div>
    
    /// note
    
    The command `uvicorn main:app` refers to:
    
    * `main`: the file `main.py` (the Python "module").
    * `app`: the object created inside of `main.py` with the line `app = FastAPI()`.
    
    It is equivalent to:
    
    ```Python
    from main import app
    ```
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Aug 25 02:44:06 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. docs/pt/docs/advanced/sub-applications.md

    ```Python hl_lines="3  6-8"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### Sub-aplicação
    
    Em seguida, crie sua sub-aplicação e suas *operações de rota*.
    
    Essa sub-aplicação é apenas outra aplicação FastAPI padrão, mas esta é a que será "montada":
    
    ```Python hl_lines="11  14-16"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/middleware.md

        * Dann gibt es die von der entsprechenden *Pfadoperation* generierte `response` zurück.
    * Sie können die `response` dann weiter modifizieren, bevor Sie sie zurückgeben.
    
    ```Python hl_lines="8-9  11  14"
    {!../../docs_src/middleware/tutorial001.py!}
    ```
    
    /// tip | "Tipp"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. docs/pt/docs/advanced/response-cookies.md

    # Cookies de Resposta
    
    ## Usando um parâmetro `Response`
    
    Você pode declarar um parâmetro do tipo `Response` na sua *função de operação de rota*.
    
    E então você pode definir cookies nesse objeto de resposta *temporário*.
    
    ```Python hl_lines="1  8-9"
    {!../../docs_src/response_cookies/tutorial002.py!}
    ```
    
    Em seguida, você pode retornar qualquer objeto que precise, como normalmente faria (um `dict`, um modelo de banco de dados, etc).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 14 09:15:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/response-headers.md

    Você pode declarar um parâmetro do tipo `Response` na sua *função de operação de rota* (assim como você pode fazer para cookies).
    
    Então você pode definir os cabeçalhos nesse objeto de resposta *temporário*.
    
    ```Python hl_lines="1  7-8"
    {!../../docs_src/response_headers/tutorial002.py!}
    ```
    
    Em seguida você pode retornar qualquer objeto que precisar, da maneira que faria normalmente (um `dict`, um modelo de banco de dados, etc.).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 16 07:44:45 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/response-cookies.md

    ## Einen `Response`-Parameter verwenden
    
    Sie können einen Parameter vom Typ `Response` in Ihrer *Pfadoperation-Funktion* deklarieren.
    
    Und dann können Sie Cookies in diesem *vorübergehenden* Response-Objekt setzen.
    
    ```Python hl_lines="1  8-9"
    {!../../docs_src/response_cookies/tutorial002.py!}
    ```
    
    Anschließend können Sie wie gewohnt jedes gewünschte Objekt zurückgeben (ein `dict`, ein Datenbankmodell, usw.).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. tensorflow/build_cleaner_spec.textproto

    # proto-file: devtools/build_cleaner/proto/actions.proto
    # proto-message: ActionSpecs
    
    # Python rules should not have more than one source file.
    action_spec {
      action: CHECK_FILE_COUNT
      file_count_params {
        rule_selector {
          rule_kind_regex: "^.*py(type)?(_strict)?_(binary|library|test).*$"
          generator_function_regex: "^(?!boq_header)$"
        }
        max_source_count: 1
      }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Nov 29 18:16:42 UTC 2023
    - 387 bytes
    - Viewed (0)
Back to top