- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for uniqBy (0.16 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
docs/em/docs/advanced/generate-clients.md
π πͺ π π π’. β«οΈ β `APIRoute` & π’ π». πΌ, π₯ β«οΈ βοΈ π₯ π (π π π² βοΈ π΄ 1οΈβ£ π) & *β‘ π οΈ* π (π’ π). π πͺ β€΄οΈ πΆββοΈ π π π’ **FastAPI** `generate_unique_id_function` π’: === "π 3οΈβ£.6οΈβ£ & π" ```Python hl_lines="8-9 12" {!> ../../../docs_src/generate_clients/tutorial003.py!} ``` === "π 3οΈβ£.9οΈβ£ & π"
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) -
fastapi/applications.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 172.2K bytes - Viewed (0)