Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for utilities (0.54 sec)

  1. docs/en/docs/reference/openapi/index.md

    # OpenAPI
    
    There are several utilities to handle OpenAPI.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 158 bytes
    - Viewed (0)
  2. docs/en/docs/reference/openapi/docs.md

    # OpenAPI `docs`
    
    Utilities to handle OpenAPI automatic UI documentation, including Swagger UI (by default at `/docs`) and ReDoc (by default at `/redoc`).
    
    ::: fastapi.openapi.docs.get_swagger_ui_html
    
    ::: fastapi.openapi.docs.get_redoc_html
    
    ::: fastapi.openapi.docs.get_swagger_ui_oauth2_redirect_html
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 360 bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/first-steps.md

        All the security utilities that integrate with OpenAPI (and the automatic API docs) inherit from `SecurityBase`, that's how **FastAPI** can know how to integrate them in OpenAPI.
    
    ## What it does
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  4. docs/en/docs/alternatives.md

    That's one of the main things that **FastAPI** adds on top, all based on Python type hints (using Pydantic). That, plus the dependency injection system, security utilities, OpenAPI schema generation, etc.
    
    !!! note "Technical Details"
        ASGI is a new "standard" being developed by Django core team members. It is still not a "Python standard" (a PEP), although they are in the process of doing that.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    !!! info
        In this example we use invented custom headers `X-Key` and `X-Token`.
    
        But in real cases, when implementing security, you would get more benefits from using the integrated [Security utilities (the next chapter)](../security/index.md){.internal-link target=_blank}.
    
    ## Dependencies errors and return values
    
    You can use the same dependency *functions* you use normally.
    
    ### Dependency requirements
    
    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)
  6. docs/en/docs/tutorial/security/oauth2-jwt.md

    ## Install `passlib`
    
    PassLib is a great Python package to handle password hashes.
    
    It supports many secure hashing algorithms and utilities to work with them.
    
    The recommended algorithm is "Bcrypt".
    
    So, install PassLib with Bcrypt:
    
    <div class="termy">
    
    ```console
    $ pip install "passlib[bcrypt]"
    
    ---> 100%
    ```
    
    </div>
    
    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)
  7. docs/en/docs/tutorial/security/index.md

        The most complex problem is building an authentication/authorization provider like those, but **FastAPI** gives you the tools to do it easily, while doing the heavy lifting for you.
    
    ## **FastAPI** utilities
    
    FastAPI provides several tools for each of these security schemes in the `fastapi.security` module that simplify using these security mechanisms.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/bigger-applications.md

        ```
    
    !!! tip
        We are using an invented header to simplify this example.
    
        But in real cases you will get better results using the integrated [Security utilities](security/index.md){.internal-link target=_blank}.
    
    ## Another module with `APIRouter`
    
    Let's say you also have the endpoints dedicated to handling "items" from your application in the module at `app/routers/items.py`.
    
    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/tutorial/security/simple-oauth2.md

    # Simple OAuth2 with Password and Bearer
    
    Now let's build from the previous chapter and add the missing parts to have a complete security flow.
    
    ## Get the `username` and `password`
    
    We are going to use **FastAPI** security utilities to get the `username` and `password`.
    
    OAuth2 specifies that when using the "password flow" (that we are using) the client/user must send a `username` and `password` fields as form data.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/templates.md

    # Templates
    
    You can use any template engine you want with **FastAPI**.
    
    A common choice is Jinja2, the same one used by Flask and other tools.
    
    There are utilities to configure it easily that you can use directly in your **FastAPI** application (provided by Starlette).
    
    ## Install dependencies
    
    Install `jinja2`:
    
    <div class="termy">
    
    ```console
    $ pip install jinja2
    
    ---> 100%
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 22:25:37 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top