Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 561 - 570 of 752 for dependency (0.23 seconds)

  1. docs/zh-hant/docs/tutorial/dependencies/sub-dependencies.md

    你可以建立具有「子相依」的相依項。
    
    它們可以按你的需要,層級任意加深。
    
    **FastAPI** 會負責解析它們。
    
    ## 第一個相依項 "dependable" { #first-dependency-dependable }
    
    你可以建立第一個相依項("dependable")如下:
    
    {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *}
    
    它宣告了一個可選的查詢參數 `q`(型別為 `str`),然後直接回傳它。
    
    這很簡單(不太實用),但有助於我們專注於子相依如何運作。
    
    ## 第二個相依,同時是 "dependable" 也是 "dependant" { #second-dependency-dependable-and-dependant }
    
    接著你可以建立另一個相依函式("dependable"),同時它也宣告了自己的相依(因此它同時也是 "dependant"):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  2. compat/maven-compat/src/test/resources/inheritance-repo/t06/maven-test/poms/t06-a-1.0.pom

          <url>file://dummy</url>
        </repository>
      </repositories>
      <dependencies>
        <dependency>
          <groupId>maven-test</groupId>
          <artifactId>t06-b</artifactId>
          <version>1.0</version>
          <type>jar</type>
          <scope>compile</scope>
        </dependency>
      </dependencies>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 572 bytes
    - Click Count (0)
  3. compat/maven-compat/src/test/resources/inheritance-repo/t07/maven-test/poms/t07-a-1.0.pom

          <url>file://dummy</url>
        </repository>
      </repositories>
      <dependencies>
        <dependency>
          <groupId>maven-test</groupId>
          <artifactId>t07-b</artifactId>
          <version>1.0</version>
          <type>jar</type>
          <scope>compile</scope>
        </dependency>
      </dependencies>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 572 bytes
    - Click Count (0)
  4. tests/test_exception_handlers.py

        }
    )
    
    client = TestClient(app)
    
    
    def raise_value_error():
        raise ValueError()
    
    
    def dependency_with_yield():
        yield raise_value_error()
    
    
    @app.get("/dependency-with-yield", dependencies=[Depends(dependency_with_yield)])
    def with_yield(): ...
    
    
    @app.get("/http-exception")
    def route_with_http_exception():
        raise HTTPException(status_code=400)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 03 22:37:12 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  5. docs/ja/docs/tutorial/sql-databases.md

    `SQLModel.metadata.create_all(engine)` を使って、すべてのテーブルモデルのテーブルを作成する関数を追加します。
    
    {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[21:22] hl[21:22] *}
    
    ### Session 依存関係の作成 { #create-a-session-dependency }
    
    `Session` は、メモリ上でオブジェクトを保持して変更を追跡し、`engine` を使ってデータベースと通信します。
    
    各リクエストごとに新しい `Session` を提供する、`yield` を使った FastAPI の依存関係を作成します。これにより、1 リクエストにつき 1 つのセッションを使うことが保証されます。🤓
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 18K bytes
    - Click Count (0)
  6. docs/tr/docs/tutorial/background-tasks.md

    * Görev fonksiyonuna sırayla geçirilecek argümanlar (`email`).
    * Görev fonksiyonuna geçirilecek keyword argümanlar (`message="some notification"`).
    
    ## Dependency Injection { #dependency-injection }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 5K bytes
    - Click Count (0)
  7. docs/ja/docs/tutorial/dependencies/sub-dependencies.md

    **FastAPI** はそれらを解決してくれます。
    
    ## 最初の依存関係「依存可能なもの」 { #first-dependency-dependable }
    
    以下のような最初の依存関係(「依存可能なもの」)を作成することができます:
    
    {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *}
    
    これはオプショナルのクエリパラメータ`q`を`str`として宣言し、それを返すだけです。
    
    これは非常にシンプルです(あまり便利ではありません)が、サブ依存関係がどのように機能するかに焦点を当てるのに役立ちます。
    
    ## 第二の依存関係 「依存可能なもの」と「依存」 { #second-dependency-dependable-and-dependant }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 15:24:30 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  8. docs/tr/docs/tutorial/security/simple-oauth2.md

    Şimdi dependency’lerimizi güncelleyeceğiz.
    
    `current_user`’ı *sadece* kullanıcı aktifse almak istiyoruz.
    
    Bu yüzden, `get_current_user`’ı dependency olarak kullanan ek bir dependency olan `get_current_active_user`’ı oluşturuyoruz.
    
    Bu iki dependency de kullanıcı yoksa veya pasifse sadece HTTP hatası döndürecek.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

                logScriptExecutionCalled = true;
                lastLoggedScript = script;
                lastLoggedResult = result;
                // Don't call super to avoid dependency on ComponentUtil
            }
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  10. docs/es/docs/tutorial/dependencies/index.md

    Pero de esta manera podemos enfocarnos en cómo funciona el sistema de **Inyección de Dependencias**.
    
    ### Crear una dependencia, o "dependable" { #create-a-dependency-or-dependable }
    
    Primero enfoquémonos en la dependencia.
    
    Es solo una función que puede tomar todos los mismos parámetros que una *path operation function* puede tomar:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 10K bytes
    - Click Count (0)
Back to Top