Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 581 - 590 of 713 for modAlt (0.08 seconds)

  1. docs/es/docs/tutorial/first-steps.md

       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    
         <span style="background-color:#007166"><font color="#D3D7CF"> code </font></span>  Importing the FastAPI app object from the module with
                 the following code:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 13.9K bytes
    - Click Count (0)
  2. docs/fr/docs/tutorial/first-steps.md

       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    
         <span style="background-color:#007166"><font color="#D3D7CF"> code </font></span>  Importing the FastAPI app object from the module with
                 the following code:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  3. docs/pt/docs/tutorial/first-steps.md

       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    
         <span style="background-color:#007166"><font color="#D3D7CF"> code </font></span>  Importing the FastAPI app object from the module with
                 the following code:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  4. docs/pt/docs/advanced/security/oauth2-scopes.md

    Nós verificamos que nós obtemos um `username`, e extraímos os escopos.
    
    E depois nós validamos esse dado com o modelo Pydantic (capturando a exceção `ValidationError`), e se nós obtemos um erro ao ler o token JWT ou validando os dados com o Pydantic, nós levantamos a exceção `HTTPException` que criamos anteriormente.
    
    Para isso, nós atualizamos o modelo Pydantic `TokenData` com a nova propriedade `scopes`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 14.9K bytes
    - Click Count (0)
  5. docs/fr/docs/advanced/security/http-basic-auth.md

    ## Vérifier le nom d'utilisateur { #check-the-username }
    
    Voici un exemple plus complet.
    
    Utilisez une dépendance pour vérifier si le nom d'utilisateur et le mot de passe sont corrects.
    
    Pour cela, utilisez le module standard Python [`secrets`](https://docs.python.org/3/library/secrets.html) pour vérifier le nom d'utilisateur et le mot de passe.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  6. docs/pt/docs/tutorial/testing.md

    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Como esse arquivo está no mesmo pacote, você pode usar importações relativas para importar o objeto `app` do módulo `main` (`main.py`):
    
    {* ../../docs_src/app_testing/app_a_py310/test_main.py hl[3] *}
    
    ...e ter o código para os testes como antes.
    
    ## Testando: exemplo estendido { #testing-extended-example }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/tutorial/security/get-current-user.md

    你可能記得,請求體也會用 Pydantic 模型宣告。
    
    這裡因為你使用了 `Depends`,**FastAPI** 不會混淆。
    
    ///
    
    /// check | 檢查
    
    這個依賴系統的設計讓我們可以有不同的依賴(不同的 "dependables"),都回傳 `User` 模型。
    
    我們不受限於只能有一個能回傳該類型資料的依賴。
    
    ///
    
    ## 其他模型 { #other-models }
    
    現在你可以在*路徑操作函式*中直接取得目前使用者,並在**依賴注入**層處理安全機制,使用 `Depends`。
    
    而且你可以為安全需求使用任意模型或資料(本例中是 Pydantic 模型 `User`)。
    
    但你不受限於某個特定的資料模型、類別或型別。
    
    想在模型中只有 `id` 與 `email` 而沒有任何 `username`?當然可以。你可以用同樣的工具達成。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  8. docs/ja/docs/tutorial/sql-databases.md

    <div class="termy">
    
    ```console
    $ pip install sqlmodel
    ---> 100%
    ```
    
    </div>
    
    ## 単一モデルでアプリ作成 { #create-the-app-with-a-single-model }
    
    まずは最も簡単な、単一の SQLModel モデルだけを使うバージョンを作ります。
    
    後で、下記のとおり複数モデルにしてセキュリティと汎用性を高めます。🤓
    
    ### モデルの作成 { #create-models }
    
    `SQLModel` をインポートしてデータベースモデルを作成します:
    
    {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[1:11] hl[7:11] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 18K bytes
    - Click Count (0)
  9. ci/official/utilities/setup_macos.sh

    # a service account that has the right permissions to be able to do so.
    set +x
    if [[ -n "${GOOGLE_APPLICATION_CREDENTIALS:-}" ]]; then
      # Python 3.12 removed the module `imp` which is needed by gcloud CLI so we set
      # `CLOUDSDK_PYTHON` to Python 3.11 which is the system Python on TFCI Mac
      # VMs.
      pyenv install -s "3.11"
      if [[ $? -eq 0 ]]; then
        pyenv local "3.11"
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Mon Oct 06 22:42:26 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  10. docs/zh/docs/tutorial/first-steps.md

       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    
         <span style="background-color:#007166"><font color="#D3D7CF"> code </font></span>  Importing the FastAPI app object from the module with
                 the following code:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 13.3K bytes
    - Click Count (0)
Back to Top