Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 420 for tutorial003_an_py310 (0.12 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/fr/docs/how-to/authentication-error-status-code.md

    Par exemple, vous pouvez créer une sous-classe de `HTTPBearer` qui renvoie une erreur `403 Forbidden` au lieu de l'erreur par défaut `401 Unauthorized` :
    
    {* ../../docs_src/authentication_error_status_code/tutorial001_an_py310.py hl[9:13] *}
    
    /// tip | Astuce
    
    Remarquez que la fonction renvoie l'instance de l'exception, elle ne la lève pas. La levée est effectuée dans le reste du code interne.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  2. docs/es/docs/tutorial/security/first-steps.md

    Primero solo usemos el código y veamos cómo funciona, y luego volveremos para entender qué está sucediendo.
    
    ## Crea `main.py` { #create-main-py }
    
    Copia el ejemplo en un archivo `main.py`:
    
    {* ../../docs_src/security/tutorial001_an_py310.py *}
    
    ## Ejecútalo { #run-it }
    
    /// info | Información
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/dependencies/index.md

    ### Import `Depends` { #import-depends }
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[3] *}
    
    ### Declare the dependency, in the "dependant" { #declare-the-dependency-in-the-dependant }
    
    The same way you use `Body`, `Query`, etc. with your *path operation function* parameters, use `Depends` with a new parameter:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[13,18] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  4. docs/pt/docs/tutorial/security/first-steps.md

    Vamos primeiro usar o código e ver como funciona, e depois voltaremos para entender o que está acontecendo.
    
    ## Crie um `main.py` { #create-main-py }
    
    Copie o exemplo em um arquivo `main.py`:
    
    {* ../../docs_src/security/tutorial001_an_py310.py *}
    
    ## Execute-o { #run-it }
    
    /// info | Informação
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  5. docs/tr/docs/tutorial/security/first-steps.md

    Önce kodu kullanıp nasıl çalıştığına bakalım, sonra neler olup bittiğini anlamak için geri döneriz.
    
    ## `main.py` Oluşturun { #create-main-py }
    
    Örneği `main.py` adlı bir dosyaya kopyalayın:
    
    {* ../../docs_src/security/tutorial001_an_py310.py *}
    
    ## Çalıştırın { #run-it }
    
    /// info | Bilgi
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  6. docs/ru/docs/tutorial/security/oauth2-jwt.md

    {* ../../docs_src/security/tutorial004_an_py310.py hl[93:110] *}
    
    ## Обновление *операции пути* `/token` { #update-the-token-path-operation }
    
    Создайте `timedelta` со временем истечения срока действия токена.
    
    Создайте реальный токен доступа JWT и верните его
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[121:136] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 19.7K bytes
    - Click Count (0)
  7. scripts/tests/test_translation_fixer/test_code_includes/data/translated_doc_number_lt.md

    # Header
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    Some text
    
    {* ../../docs_src/bigger_applications/app_an_py310/internal/admin.py hl[3] title["app/internal/admin.py"] *}
    
    Some more text
    
    ...
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 08:08:04 GMT 2026
    - 240 bytes
    - Click Count (0)
  8. docs/ja/docs/tutorial/request-forms.md

    ```
    
    ///
    
    ## `Form`のインポート { #import-form }
    
    `fastapi`から`Form`をインポートします:
    
    {* ../../docs_src/request_forms/tutorial001_an_py310.py hl[3] *}
    
    ## `Form`のパラメータの定義 { #define-form-parameters }
    
    `Body`や`Query`の場合と同じようにフォームパラメータを作成します:
    
    {* ../../docs_src/request_forms/tutorial001_an_py310.py hl[9] *}
    
    例えば、OAuth2仕様が使用できる方法の1つ(「パスワードフロー」と呼ばれる)では、フォームフィールドとして`username`と`password`を送信する必要があります。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  9. docs/zh/docs/how-to/authentication-error-status-code.md

    但如果由于某些原因你的客户端依赖旧行为,你可以在你的安全类中重写方法 `make_not_authenticated_error` 来回退到旧行为。
    
    例如,你可以创建一个 `HTTPBearer` 的子类,使其返回 `403 Forbidden` 错误,而不是默认的 `401 Unauthorized` 错误:
    
    {* ../../docs_src/authentication_error_status_code/tutorial001_an_py310.py hl[9:13] *}
    
    /// tip | 提示
    
    注意该函数返回的是异常实例,而不是直接抛出它。抛出操作由其余的内部代码完成。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_additional_status_codes/test_tutorial001.py

    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial001_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.additional_status_codes.{request.param}")
    
        client = TestClient(mod.app)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 934 bytes
    - Click Count (0)
Back to Top