Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 381 - 390 of 1,169 for item01 (0.06 seconds)

  1. docs_src/dependencies/tutorial004_py310.py

            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: CommonQueryParams = Depends()):
        response = {}
        if commons.q:
            response.update({"q": commons.q})
        items = fake_items_db[commons.skip : commons.skip + commons.limit]
        response.update({"items": items})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 607 bytes
    - Click Count (0)
  2. docs_src/dependencies/tutorial004_an_py310.py

            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[CommonQueryParams, Depends()]):
        response = {}
        if commons.q:
            response.update({"q": commons.q})
        items = fake_items_db[commons.skip : commons.skip + commons.limit]
        response.update({"items": items})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 647 bytes
    - Click Count (0)
  3. docs/ko/docs/python-types.md

    대괄호 안의 내부 타입은 "type parameters"라고 부릅니다.
    
    이 경우 `str`이 `list`에 전달된 타입 매개변수입니다.
    
    ///
    
    이는 "변수 `items`는 `list`이고, 이 `list`의 각 아이템은 `str`이다"라는 뜻입니다.
    
    이렇게 하면, 에디터는 리스트의 아이템을 처리하는 동안에도 지원을 제공할 수 있습니다:
    
    <img src="/img/python-types/image05.png">
    
    타입이 없으면, 이는 거의 불가능합니다.
    
    변수 `item`이 리스트 `items`의 요소 중 하나라는 점에 주목하세요.
    
    그리고 에디터는 여전히 이것이 `str`임을 알고, 그에 대한 지원을 제공합니다.
    
    #### Tuple과 Set { #tuple-and-set }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 13K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        // Each group is a List of items, each item has a list of factory args.
        List<List<List<Object>>> argGroups = new ArrayList<>();
        argGroups.add(ImmutableList.of(args, equalArgs));
        EqualsTester tester =
            new EqualsTester(
                /* itemReporter= */ item -> {
                  List<Object> factoryArgs = argGroups.get(item.groupNumber).get(item.itemNumber);
                  return factory.getName()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  5. docs/changelogs/changelog_2x.md

     * Add ALPN support. Maven will use ALPN on OpenJDK 8.
     * Update NPN dependency to target `jdk7u60-b13` and `Oracle jdk7u55-b13`.
     * Ensure SPDY variants support zero-length DELETE and POST.
     * Prevent leaking a cache item's InputStreams when metadata read fails.
     * Use a string to identify TLS versions in routes.
     * Add frame logger for HTTP/2.
     * Replacing `httpMinorVersion` with `Protocol`. Expose HTTP/1.0 as a potential protocol.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Click Count (0)
  6. docs/uk/docs/tutorial/dependencies/index.md

    Наприклад, припустімо, у вас є 4 кінцеві точки API (*операції шляху*):
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    тоді ви могли б додати різні вимоги до дозволів для кожної з них лише за допомогою залежностей і субзалежностей:
    
    ```mermaid
    graph TB
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  7. docs_src/security/tutorial005_an_py310.py

    password_hash = PasswordHash.recommended()
    
    DUMMY_HASH = password_hash.hash("dummypassword")
    
    oauth2_scheme = OAuth2PasswordBearer(
        tokenUrl="token",
        scopes={"me": "Read information about the current user.", "items": "Read items."},
    )
    
    app = FastAPI()
    
    
    def verify_password(plain_password, hashed_password):
        return password_hash.verify(plain_password, hashed_password)
    
    
    def get_password_hash(password):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 18:10:35 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  8. docs/zh/docs/advanced/security/oauth2-scopes.md

    现在我们声明,路径操作 `/users/me/items/` 需要作用域 `items`。
    
    为此,从 `fastapi` 导入并使用 `Security`。
    
    你可以用 `Security` 来声明依赖(就像 `Depends` 一样),但 `Security` 还接收一个 `scopes` 参数,其值是作用域(字符串)列表。
    
    在这里,我们把依赖函数 `get_current_active_user` 传给 `Security`(就像用 `Depends` 一样)。
    
    同时还传入一个作用域 `list`,此处仅包含一个作用域:`items`(也可以包含更多)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 13K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/advanced/security/oauth2-scopes.md

    現在我們宣告 `/users/me/items/` 這個路徑操作需要 `items` 這個 scope。
    
    為此,我們從 `fastapi` 匯入並使用 `Security`。
    
    你可以使用 `Security` 來宣告相依性(就像 `Depends`),但 `Security` 也能接收參數 `scopes`,其為 scopes(字串)的列表。
    
    在這裡,我們將相依函式 `get_current_active_user` 傳給 `Security`(就像使用 `Depends` 一樣)。
    
    但同時也傳入一個 `list` 的 scopes,這裡只有一個 scope:`items`(當然也可以有更多)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java

                        request.getArtifact(),
                        request.getRemoteRepositories());
            }
        }
    
        private static <T> List<T> toList(Collection<T> items) {
            return (items != null) ? new ArrayList<>(items) : null;
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.7K bytes
    - Click Count (0)
Back to Top