Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for re (0.23 sec)

  1. docs/en/docs/tutorial/security/get-current-user.md

    But you can have thousands of endpoints (*path operations*) using the same security system.
    
    And all of them (or any portion of them that you want) can take the advantage of re-using these dependencies or any other dependencies you create.
    
    And all these thousands of *path operations* can be as small as 3 lines:
    
    === "Python 3.10+"
    
        ```Python hl_lines="30-32"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/nosql-databases-couchbase.md

    * Put the contents of the document in a `UserInDB` model.
    
    By creating a function that is only dedicated to getting your user from a `username` (or any other parameter) independent of your *path operation function*, you can more easily re-use it in multiple parts and also add <abbr title="Automated test, written in code, that checks if another piece of code is working correctly.">unit tests</abbr> for it:
    
    ```Python hl_lines="36-42"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/async-tests.md

    Being able to use asynchronous functions in your tests could be useful, for example, when you're querying your database asynchronously. Imagine you want to test sending requests to your FastAPI application and then verify that your backend successfully wrote the correct data in the database, while using an async database library.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 12:07:15 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. docs/pl/docs/index.md

    ---
    
    "_If you're looking to learn one **modern framework** for building REST APIs, check out **FastAPI** [...] It's fast, easy to use and easy to learn [...]_"
    
    "_We've switched over to **FastAPI** for our **APIs** [...] I think you'll like it [...]_"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  5. docs/it/docs/index.md

    ---
    
    "_If you're looking to learn one **modern framework** for building REST APIs, check out **FastAPI** [...] It's fast, easy to use and easy to learn [...]_"
    
    "_We've switched over to **FastAPI** for our **APIs** [...] I think you'll like it [...]_"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/handling-errors.md

    ```Python
    from starlette.exceptions import HTTPException as StarletteHTTPException
    ```
    
    ### Re-use os manipulares de exceção do **FastAPI**
    
    Se você quer usar a exceção em conjunto com o mesmo manipulador de exceção *default* do **FastAPI**, você pode importar e re-usar esses manipuladores de exceção do `fastapi.exception_handlers`:
    
    ```Python hl_lines="2-5  15  21"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        ```Python hl_lines="8  13"
        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    ### Return values
    
    And they can return values or not, the values won't be used.
    
    So, you can re-use a normal dependency (that returns a value) you already use somewhere else, and even though the value won't be used, the dependency will be executed:
    
    === "Python 3.9+"
    
        ```Python hl_lines="11  16"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/bigger-applications.md

        This is because we want to include their *path operations* in the OpenAPI schema and the user interfaces.
    
        As we cannot just isolate them and "mount" them independently of the rest, the *path operations* are "cloned" (re-created), not included directly.
    
    ## Check the automatic API docs
    
    Now, run `uvicorn`, using the module `app.main` and the variable `app`:
    
    <div class="termy">
    
    ```console
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  9. docs/en/docs/release-notes.md

    * 🔧 Fix Ruff configuration unintentionally enabling and re-disabling mccabe complexity check. PR [#10893](https://github.com/tiangolo/fastapi/pull/10893) by [@jiridanek](https://github.com/jiridanek).
    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)
  10. docs/hu/docs/index.md

    ---
    
    "_If you're looking to learn one **modern framework** for building REST APIs, check out **FastAPI** [...] It's fast, easy to use and easy to learn [...]_"
    
    "_We've switched over to **FastAPI** for our **APIs** [...] I think you'll like it [...]_"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 20.2K bytes
    - Viewed (0)
Back to top