Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 873 for Python3 (0.1 sec)

  1. docs/zh/docs/how-to/configure-swagger-ui.md

    但是你可以通过设置 `syntaxHighlight` 为 `False` 来禁用 Swagger UI 中的语法高亮:
    
    ```Python hl_lines="3"
    {!../../docs_src/configure_swagger_ui/tutorial001.py!}
    ```
    
    ...在此之后,Swagger UI 将不会高亮代码:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    ## 改变主题
    
    同样地,你也可以通过设置键 `"syntaxHighlight.theme"` 来设置语法高亮主题(注意中间有一个点):
    
    ```Python hl_lines="3"
    {!../../docs_src/configure_swagger_ui/tutorial002.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/security/first-steps.md

    ## Crie um `main.py`
    Copie o exemplo em um arquivo `main.py`:
    
    ```Python
    {!../../docs_src/security/tutorial001.py!}
    ```
    
    ## Execute-o
    
    /// info | "informação"
    
    
    
    ///
    
    	Primeiro, instale <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
    
    	Ex: `pip install python-multipart`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/encoder.md

    이를 위해 `jsonable_encoder` 를 사용할 수 있습니다.
    
    Pydantic 모델과 같은 객체를 받고 JSON 호환 가능한 버전으로 반환합니다:
    
    ```Python hl_lines="5  22"
    {!../../docs_src/encoder/tutorial001.py!}
    ```
    
    이 예시는 Pydantic 모델을 `dict`로, `datetime` 형식을 `str`로 변환합니다.
    
    이렇게 호출한 결과는 파이썬 표준인 <a href="https://docs.python.org/3/library/json.html#json.dumps" class="external-link" target="_blank">`json.dumps()`</a>로 인코딩 할 수 있습니다.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. docs/ja/docs/advanced/custom-response.md

    /// warning | "注意"
    
    `ujson` は、いくつかのエッジケースの取り扱いについて、Pythonにビルトインされた実装よりも作りこまれていません。
    
    ///
    
    ```Python hl_lines="2  7"
    {!../../docs_src/custom_response/tutorial001.py!}
    ```
    
    /// tip | "豆知識"
    
    `ORJSONResponse` のほうが高速な代替かもしれません。
    
    ///
    
    ### `RedirectResponse`
    
    HTTPリダイレクトを返します。デフォルトでは307ステータスコード (Temporary Redirect) となります。
    
    ```Python hl_lines="2  9"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/testing.md

    これらの *path operation* には `X-Token` ヘッダーが必要です。
    
    //// tab | Python 3.10+
    
    ```Python
    {!> ../../docs_src/app_testing/app_b_py310/main.py!}
    ```
    
    ////
    
    //// tab | Python 3.6+
    
    ```Python
    {!> ../../docs_src/app_testing/app_b/main.py!}
    ```
    
    ////
    
    ### 拡張版テストファイル
    
    次に、先程のものに拡張版のテストを加えた、`test_main_b.py` を作成します。
    
    ```Python
    {!> ../../docs_src/app_testing/app_b/test_main.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/dependencies/classes-as-dependencies.md

    重要なのは、依存関係が「呼び出し可能」なものであることです。
    
    Pythonにおける「**呼び出し可能**」とは、Pythonが関数のように「呼び出す」ことができるものを指します。
    
    そのため、`something`オブジェクト(関数ではないかもしれませんが)を持っていて、それを次のように「呼び出す」(実行する)ことができるとします:
    
    ```Python
    something()
    ```
    
    または
    
    ```Python
    something(some_argument, some_keyword_argument="foo")
    ```
    
    これを「呼び出し可能」なものと呼びます。
    
    ## 依存関係としてのクラス
    
    Pythonのクラスのインスタンスを作成する際に、同じ構文を使用していることに気づくかもしれません。
    
    例えば:
    
    ```Python
    class Cat:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/query-params.md

    * `limit=10`: ↩️ 👈 🔢 💲
    
    ## 📦 🔢
    
    🎏 🌌, 👆 💪 📣 📦 🔢 🔢, ⚒ 👫 🔢 `None`:
    
    //// tab | 🐍 3️⃣.6️⃣ &amp; 🔛
    
    ```Python hl_lines="9"
    {!> ../../docs_src/query_params/tutorial002.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ &amp; 🔛
    
    ```Python hl_lines="7"
    {!> ../../docs_src/query_params/tutorial002_py310.py!}
    ```
    
    ////
    
    👉 💼, 🔢 🔢 `q` 🔜 📦, &amp; 🔜 `None` 🔢.
    
    /// check
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. .github/workflows/docs.yml

              fetch-depth: 0
    
          - name: Configure JDK
            uses: actions/setup-java@v4
            with:
              distribution: 'zulu'
              java-version: 17
    
          - uses: actions/setup-python@v5
            with:
              python-version: 3.x
    
          - run: pip install mkdocs-material mkdocs-redirects
    
          - name: Generate Docs
            run: ./test_docs.sh
    
          - uses: actions/upload-artifact@v4
            with:
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 04 06:13:36 UTC 2024
    - 1K bytes
    - Viewed (0)
  9. docs/en/docs/reference/status.md

    # Status Codes
    
    You can import the `status` module from `fastapi`:
    
    ```python
    from fastapi import status
    ```
    
    `status` is provided directly by Starlette.
    
    It contains a group of named constants (variables) with integer status codes.
    
    For example:
    
    * 200: `status.HTTP_200_OK`
    * 403: `status.HTTP_403_FORBIDDEN`
    * etc.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 871 bytes
    - Viewed (0)
  10. docs/pt/docs/how-to/extending-openapi.md

    ### **FastAPI** Normal
    
    Primeiro, escreva toda a sua aplicação **FastAPI** normalmente:
    
    ```Python hl_lines="1  4  7-9"
    {!../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### Gerar o esquema OpenAPI
    
    Em seguida, use a mesma função utilitária para gerar o esquema OpenAPI, dentro de uma função `custom_openapi()`:
    
    ```Python hl_lines="2  15-21"
    {!../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 17:40:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top