Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 362 for same (0.19 sec)

  1. docs/en/docs/advanced/openapi-webhooks.md

    !!! info
        The `app.webhooks` object is actually just an `APIRouter`, the same type you would use when structuring your app with multiple files.
    
    Notice that with webhooks you are actually not declaring a *path* (like `/items/`), the text you pass there is just an **identifier** of the webhook (the name of the event), for example in `@app.webhooks.post("new-subscription")`, the webhook name is `new-subscription`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. docs/en/docs/features.md

    def main(user_id: str):
        return user_id
    
    
    # A Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    That can then be used like:
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    second_user_data = {
        "id": 4,
        "name": "Mary",
        "joined": "2018-11-30",
    }
    
    my_second_user: User = User(**second_user_data)
    ```
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/simple-oauth2.md

    You should never save plaintext passwords, so, we'll use the (fake) password hashing system.
    
    If the passwords don't match, we return the same error.
    
    #### Password hashing
    
    "Hashing" means: converting some content (a password in this case) into a sequence of bytes (just a string) that looks like gibberish.
    
    Whenever you pass exactly the same content (exactly the same password) you get exactly the same gibberish.
    
    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)
  4. docs/em/docs/tutorial/sql-databases.md

    #### ๐Ÿ—’
    
    โŒ:
    
    ```Python
    connect_args={"check_same_thread": False}
    ```
    
    ...๐Ÿ’ช ๐Ÿ•ด `SQLite`. โšซ๏ธ ๐Ÿšซ ๐Ÿ’ช ๐ŸŽ ๐Ÿ’ฝ.
    
    !!! info "๐Ÿ“ก โ„น"
    
        ๐Ÿ”ข ๐Ÿ—„ ๐Ÿ”œ ๐Ÿ•ด โœ” 1๏ธโƒฃ ๐Ÿงต ๐Ÿ”— โฎ๏ธ โšซ๏ธ, ๐Ÿค” ๐Ÿ‘ˆ ๐Ÿ”  ๐Ÿงต ๐Ÿ”œ ๐Ÿต ๐Ÿ”ฌ ๐Ÿ“จ.
    
        ๐Ÿ‘‰ โŽ ๐Ÿ˜ซ ๐Ÿค ๐ŸŽ ๐Ÿ”— ๐ŸŽ ๐Ÿ‘œ (๐ŸŽ ๐Ÿ“จ).
    
        โœ‹๏ธ FastAPI, โš™๏ธ ๐Ÿ˜ ๐Ÿ”ข (`def`) ๐ŸŒ… ๐ŸŒ˜ 1๏ธโƒฃ ๐Ÿงต ๐Ÿ’ช ๐Ÿ”— โฎ๏ธ ๐Ÿ’ฝ ๐ŸŽ ๐Ÿ“จ, ๐Ÿ‘ฅ ๐Ÿ’ช โš’ ๐Ÿ—„ ๐Ÿ’ญ ๐Ÿ‘ˆ โšซ๏ธ ๐Ÿ”œ โœ” ๐Ÿ‘ˆ โฎ๏ธ `connect_args={"check_same_thread": False}`.
    
    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/en/docs/advanced/security/http-basic-auth.md

    #### The time to answer helps the attackers
    
    At that point, by noticing that the server took some microseconds longer to send the "Incorrect username or password" response, the attackers will know that they got _something_ right, some of the initial letters were right.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 14:33:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. docs/en/docs/async.md

    * **Machine Learning**: it normally requires lots of "matrix" and "vector" multiplications. Think of a huge spreadsheet with numbers and multiplying all of them together at the same time.
    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)
  7. docs/en/docs/tutorial/request-files.md

        ```Python hl_lines="7  13"
        {!> ../../../docs_src/request_files/tutorial001_03.py!}
        ```
    
    ## Multiple File Uploads
    
    It's possible to upload several files at the same time.
    
    They would be associated to the same "form field" sent using "form data".
    
    To use that, declare a list of `bytes` or `UploadFile`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="10  15"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/openapi-callbacks.md

    The process that happens when your API app calls the *external API* is named a "callback". Because the software that the external developer wrote sends a request to your API and then your API *calls back*, sending a request to an *external API* (that was probably created by the same developer).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. docs_src/path_operation_advanced_configuration/tutorial007.py

    from typing import List
    
    import yaml
    from fastapi import FastAPI, HTTPException, Request
    from pydantic import BaseModel, ValidationError
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        tags: List[str]
    
    
    @app.post(
        "/items/",
        openapi_extra={
            "requestBody": {
                "content": {"application/x-yaml": {"schema": Item.model_json_schema()}},
                "required": True,
            },
        },
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 822 bytes
    - Viewed (0)
  10. docs/en/docs/advanced/websockets.md

    <img src="/img/tutorial/websockets/image04.png">
    
    And all of them will use the same WebSocket connection.
    
    ## Using `Depends` and others
    
    In WebSocket endpoints you can import from `fastapi` and use:
    
    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    They work the same way as for other FastAPI endpoints/*path operations*:
    
    === "Python 3.10+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top