Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for uniqBy (0.16 sec)

  1. docs/en/docs/advanced/generate-clients.md

    In this case you will have to ensure that each operation ID is **unique** in some other way.
    
    For example, you could make sure that each *path operation* has a tag, and then generate the operation ID based on the **tag** and the *path operation* **name** (the function name).
    
    ### Custom Generate Unique ID Function
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. fastapi/utils.py

        )
        operation_id = f"{name}{path}"
        operation_id = re.sub(r"\W", "_", operation_id)
        operation_id = f"{operation_id}_{method.lower()}"
        return operation_id
    
    
    def generate_unique_id(route: "APIRoute") -> str:
        operation_id = f"{route.name}{route.path_format}"
        operation_id = re.sub(r"\W", "_", operation_id)
        assert route.methods
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  3. docs/fr/docs/async.md

    Pour un exemple plus courant dans la "vie rΓ©elle", imaginez une banque.
    
    Jusqu'Γ  rΓ©cemment, la plupart des banques avaient plusieurs caisses (et banquiers) πŸ‘¨β€πŸ’ΌπŸ‘¨β€πŸ’ΌπŸ‘¨β€πŸ’ΌπŸ‘¨β€πŸ’Ό et une unique file d'attente πŸ•™πŸ•™πŸ•™πŸ•™πŸ•™πŸ•™πŸ•™πŸ•™.
    
    Tous les banquiers faisaient l'intΓ©gralitΓ© du travail avec chaque client avant de passer au suivant πŸ‘¨β€πŸ’Όβ―.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 24K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/security/oauth2-jwt.md

    The important thing to keep in mind is that the `sub` key should have a unique identifier across the entire application, and it should be a string.
    
    ## Check it
    
    Run the server and go to the docs: <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

    ## 0.75.0
    
    ### Features
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  6. docs/en/docs/tutorial/body-nested-models.md

        {!> ../../../docs_src/body_nested_models/tutorial002.py!}
        ```
    
    ## Set types
    
    But then we think about it, and realize that tags shouldn't repeat, they would probably be unique strings.
    
    And Python has a special data type for sets of unique items, the `set`.
    
    Then we can declare `tags` as a set of strings:
    
    === "Python 3.10+"
    
        ```Python hl_lines="12"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial004.py

                        "operationId": "create_item_items__post",
                        "requestBody": {
                            "content": {
                                "application/json": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/body-nested-models.md

    λ§ˆμ°¬κ°€μ§€λ‘œ μ˜ˆμ œμ—μ„œ `tags`λ₯Ό ꡬ체적으둜 "λ¬Έμžμ—΄μ˜ 리슀트"둜 λ§Œλ“€ 수 μžˆμŠ΅λ‹ˆλ‹€:
    
    ```Python hl_lines="14"
    {!../../../docs_src/body_nested_models/tutorial002.py!}
    ```
    
    ## 집합 νƒ€μž…
    
    그런데 μƒκ°ν•΄λ³΄λ‹ˆ νƒœκ·ΈλŠ” 반볡되면 μ•ˆ 돼고, κ³ μœ ν•œ(Unique) λ¬Έμžμ—΄μ΄μ–΄μ•Ό ν•  것 κ°™μŠ΅λ‹ˆλ‹€.
    
    그리고 νŒŒμ΄μ¬μ€ 집합을 μœ„ν•œ νŠΉλ³„ν•œ 데이터 νƒ€μž… `set`이 μžˆμŠ΅λ‹ˆλ‹€.
    
    κ·Έλ ‡λ‹€λ©΄ `Set`을 μž„ν¬νŠΈ ν•˜κ³  `tags`λ₯Ό `str`의 `set`으둜 μ„ μ–Έν•  수 μžˆμŠ΅λ‹ˆλ‹€:
    
    ```Python hl_lines="1  14"
    {!../../../docs_src/body_nested_models/tutorial003.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/generate-clients.md

    Hier verwendet sie beispielsweise den ersten Tag (Sie werden wahrscheinlich nur einen Tag haben) und den Namen der *Pfadoperation* (den Funktionsnamen).
    
    Anschließend kânnen Sie diese benutzerdefinierte Funktion als Parameter `generate_unique_id_function` an **FastAPI** übergeben:
    
    === "Python 3.9+"
    
        ```Python hl_lines="6-7  10"
        {!> ../../../docs_src/generate_clients/tutorial003_py39.py!}
        ```
    
    === "Python 3.8+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Apr 03 03:42:11 GMT 2024
    - 12K bytes
    - Viewed (0)
  10. docs/em/docs/advanced/generate-clients.md

    πŸ‘† πŸ’ͺ πŸ›ƒ πŸ‘ˆ πŸ”’. ⚫️ ✊ `APIRoute` &amp; πŸ”’ 🎻.
    
    πŸ–Ό, πŸ“₯ ⚫️ βš™οΈ πŸ₯‡ πŸ”– (πŸ‘† πŸ”œ 🎲 βœ”οΈ πŸ•΄ 1️⃣ πŸ”–) &amp; *➑ πŸ› οΈ* πŸ“› (πŸ”’ πŸ“›).
    
    πŸ‘† πŸ’ͺ ‴️ πŸšΆβ€β™€οΈ πŸ‘ˆ πŸ›ƒ πŸ”’ **FastAPI** `generate_unique_id_function` πŸ”’:
    
    === "🐍 3️⃣.6️⃣ &amp; πŸ”›"
    
        ```Python hl_lines="8-9  12"
        {!> ../../../docs_src/generate_clients/tutorial003.py!}
        ```
    
    === "🐍 3️⃣.9️⃣ &amp; πŸ”›"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Apr 03 03:42:11 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top