Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 47 for Case (0.14 sec)

  1. docs/en/docs/tutorial/security/simple-oauth2.md

        Any HTTP (error) status code 401 "UNAUTHORIZED" is supposed to also return a `WWW-Authenticate` header.
    
        In the case of bearer tokens (our case), the value of that header should be `Bearer`.
    
        You can actually skip that extra header and it would still work.
    
        But it's provided here to be compliant with the specifications.
    
    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)
  2. docs/en/docs/tutorial/query-params-str-validations.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/query_params_str_validations/tutorial002.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 25.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. .github/actions/people/app/main.py

        logging.info("Pushing branch")
        subprocess.run(["git", "push", "origin", branch_name], check=True)
        logging.info("Creating PR")
        pr = repo.create_pull(title=message, body=message, base="master", head=branch_name)
        logging.info(f"Created PR: {pr.number}")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  7. 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)
  8. 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)
  9. docs/en/docs/async.md

    ---
    
    If you are using a third party library that communicates with something (a database, an API, the file system, etc.) and doesn't have support for using `await`, (this is currently the case for most database libraries), then declare your *path operation functions* as normally, with just `def`, like:
    
    ```Python hl_lines="2"
    @app.get('/')
    def results():
        results = some_library()
        return results
    ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  10. 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)
Back to top