Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 42 for Case (0.16 sec)

  1. docs/en/docs/advanced/security/oauth2-scopes.md

    In this case, we pass a dependency function `get_current_active_user` to `Security` (the same way we would do with `Depends`).
    
    But we also pass a `list` of scopes, in this case with just one scope: `items` (it could have more).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/sql-databases-peewee.md

    If you are starting a project from scratch, you are probably better off with SQLAlchemy ORM ([SQL (Relational) Databases](../tutorial/sql-databases.md){.internal-link target=_blank}), or any other async ORM.
    
    If you already have a code base that uses <a href="https://docs.peewee-orm.com/en/latest/" class="external-link" target="_blank">Peewee ORM</a>, you can check here how to use it with **FastAPI**.
    
    !!! warning "Python 3.7+ required"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
  3. docs/en/docs/deployment/docker.md

    In this case, if you had **multiple containers**, by default, when Prometheus came to **read the metrics**, it would get the ones for **a single container each time** (for the container that handled that particular request), instead of getting the **accumulated metrics** for all the replicated containers.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 34K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/sql-databases.md

    ```
    
    ### โœ `Base` ๐ŸŽ“
    
    ๐Ÿ”œ ๐Ÿ‘ฅ ๐Ÿ”œ โš™๏ธ ๐Ÿ”ข `declarative_base()` ๐Ÿ‘ˆ ๐Ÿ“จ ๐ŸŽ“.
    
    โช ๐Ÿ‘ฅ ๐Ÿ”œ ๐Ÿ˜– โšช๏ธโžก๏ธ ๐Ÿ‘‰ ๐ŸŽ“ โœ ๐Ÿ”  ๐Ÿ’ฝ ๐Ÿท โš–๏ธ ๐ŸŽ“ (๐Ÿœ ๐Ÿท):
    
    ```Python hl_lines="13"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ## โœ ๐Ÿ’ฝ ๐Ÿท
    
    โžก๏ธ ๐Ÿ”œ ๐Ÿ‘€ ๐Ÿ“ `sql_app/models.py`.
    
    ### โœ ๐Ÿ‡ธ๐Ÿ‡ฒ ๐Ÿท โšช๏ธโžก๏ธ `Base` ๐ŸŽ“
    
    ๐Ÿ‘ฅ ๐Ÿ”œ โš™๏ธ ๐Ÿ‘‰ `Base` ๐ŸŽ“ ๐Ÿ‘ฅ โœ โญ โœ ๐Ÿ‡ธ๐Ÿ‡ฒ ๐Ÿท.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 25.2K bytes
    - Viewed (1)
  5. docs/ja/docs/tutorial/security/first-steps.md

    !!! info "ๆŠ€่ก“่ฉณ็ดฐ"
        **FastAPI**ใฏใ€`OAuth2PasswordBearer` ใ‚ฏใƒฉใ‚น (ไพๅญ˜้–ขไฟ‚ใงๅฎฃ่จ€ใ•ใ‚Œใฆใ„ใ‚‹) ใ‚’ไฝฟ็”จใ—ใฆOpenAPIใฎใ‚ปใ‚ญใƒฅใƒชใƒ†ใ‚ฃใ‚นใ‚ญใƒผใƒ ใ‚’ๅฎš็พฉใงใใ‚‹ใ“ใจใ‚’็Ÿฅใฃใฆใ„ใพใ™ใ€‚ใ“ใ‚Œใฏ`fastapi.security.oauth2.OAuth2`ใ€`fastapi.security.base.SecurityBase`ใ‚’็ถ™ๆ‰ฟใ—ใฆใ„ใ‚‹ใ‹ใ‚‰ใงใ™ใ€‚
    
        OpenAPIใจ็ตฑๅˆใ™ใ‚‹ใ‚ปใ‚ญใƒฅใƒชใƒ†ใ‚ฃใƒฆใƒผใƒ†ใ‚ฃใƒชใƒ†ใ‚ฃ (ใŠใ‚ˆใณ่‡ชๅ‹•APIใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆ) ใฏใ™ในใฆ`SecurityBase`ใ‚’็ถ™ๆ‰ฟใ—ใฆใ„ใพใ™ใ€‚ใใ‚Œใซใ‚ˆใ‚Šใ€**FastAPI**ใฏใใ‚Œใ‚‰ใ‚’OpenAPIใซ็ตฑๅˆใ™ใ‚‹ๆ–นๆณ•ใ‚’็Ÿฅใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚
    
    ## ใฉใฎใ‚ˆใ†ใซๅ‹•ไฝœใ™ใ‚‹ใ‹
    
    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)
  6. docs/pt/docs/deployment.md

    ```
    
    #### Raspberry Pi e outras arquiteturas
    
    Se vocรช estiver rodando Docker em um Raspberry Pi (que possui um processador ARM) ou qualquer outra arquitetura, vocรช pode criar um `Dockerfile` do zero, baseado em uma imagem base Python (que รฉ multi-arquitetural) e utilizar Uvicorn sozinho.
    
    Nesse caso, seu `Dockerfile` poderia parecer assim:
    
    ```Dockerfile
    FROM python:3.7
    
    RUN pip install fastapi uvicorn
    
    EXPOSE 80
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Aug 18 16:16:54 GMT 2022
    - 16.8K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/settings.md

    !!! tip
        If you want something quick to copy and paste, don't use this example, use the last one below.
    
    Then, when you create an instance of that `Settings` class (in this case, in the `settings` object), Pydantic will read the environment variables in a case-insensitive way, so, an upper-case variable `APP_NAME` will still be read for the attribute `app_name`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    For example:
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    fluffy = Cat(name="Mr Fluffy")
    ```
    
    In this case, `fluffy` is an instance of the class `Cat`.
    
    And to create `fluffy`, you are "calling" `Cat`.
    
    So, a Python class is also a **callable**.
    
    Then, in **FastAPI**, you could use a Python class as a dependency.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  9. README.md

        * As the `q` parameter is declared with `= None`, it is optional.
        * Without the `None` it would be required (as is the body in the case with `PUT`).
    * For `PUT` requests to `/items/{item_id}`, Read the body as JSON:
        * Check that it has a required attribute `name` that should be a `str`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="4  12  20"
        {!> ../../../docs_src/dependencies/tutorial008.py!}
        ```
    
    And all of them can use `yield`.
    
    In this case `dependency_c`, to execute its exit code, needs the value from `dependency_b` (here named `dep_b`) to still be available.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top