Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 175 for Schack (3.04 sec)

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

    !!! tip
        You might remember that request bodies are also declared with Pydantic models.
    
        Here **FastAPI** won't get confused because you are using `Depends`.
    
    !!! check
        The way this dependency system is designed allows us to have different dependencies (different "dependables") that all return a `User` model.
    
    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/zh/docs/tutorial/dependencies/index.md

    common_parameters(["common_parameters"])
    read_items["/items/"]
    read_users["/users/"]
    
    common_parameters --> read_items
    common_parameters --> read_users
    ```
    
    这样,只编写一次代码,**FastAPI** 就可以为多个*路径操作*共享这段代码 。
    
    !!! check "检查"
    
        注意,无需创建专门的类,并将之传递给 **FastAPI** 以进行「注册」或执行类似的操作。
    
        只要把它传递给 `Depends`,**FastAPI** 就知道该如何执行后续操作。
    
    ## 要不要使用 `async`?
    
    **FastAPI** 调用依赖项的方式与*路径操作函数*一样,因此,定义依赖项函数,也要应用与路径操作函数相同的规则。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 7K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/sql-databases.md

    ```
    
    #### 注意
    
    参数:
    
    ```Python
    connect_args={"check_same_thread": False}
    ```
    
    ...仅用于`SQLite`,在其他数据库不需要它。
    
    !!! info "技术细节"
    
        默认情况下,SQLite 只允许一个线程与其通信,假设有多个线程的话,也只将处理一个独立的请求。
    
        这是为了防止意外地为不同的事物(不同的请求)共享相同的连接。
    
        但是在 FastAPI 中,普遍使用def函数,多个线程可以为同一个请求与数据库交互,所以我们需要使用`connect_args={"check_same_thread": False}`来让SQLite允许这样。
    
        此外,我们将确保每个请求都在依赖项中获得自己的数据库连接会话,因此不需要该默认机制。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27K 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. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py

        user_data = response.json()
        item_to_check = [it for it in user_data["items"] if it["id"] == item_data["id"]][0]
        assert item_to_check["title"] == item["title"]
        assert item_to_check["description"] == item["description"]
        response = client.get("/users/1")
        assert response.status_code == 200, response.text
        user_data = response.json()
        item_to_check = [it for it in user_data["items"] if it["id"] == item_data["id"]][0]
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/security/first-steps.md

    ```
    
    </div>
    
    ## Check it
    
    Go to the interactive docs at: <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>.
    
    You will see something like this:
    
    <img src="/img/tutorial/security/image01.png">
    
    !!! check "Authorize button!"
        You already have a shiny new "Authorize" button.
    
    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)
  8. .github/actions/people/app/main.py

        subprocess.run(["git", "config", "user.name", "github-actions"], check=True)
        subprocess.run(
            ["git", "config", "user.email", "******@****.***"], check=True
        )
        branch_name = "fastapi-people"
        logging.info(f"Creating a new branch {branch_name}")
        subprocess.run(["git", "checkout", "-b", branch_name], check=True)
        logging.info("Adding updated file")
        subprocess.run(
    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)
  9. docs/ja/docs/alternatives.md

    これは**自動的なAPIドキュメント生成**の最初の例であり、これは**FastAPI**に向けた「調査」を触発した最初のアイデアの一つでした。
    
    !!! note "備考"
        Django REST Framework は Tom Christie によって作成されました。StarletteとUvicornの生みの親であり、**FastAPI**のベースとなっています。
    
    !!! check "**FastAPI**へ与えたインスピレーション"
        自動でAPIドキュメントを生成するWebユーザーインターフェースを持っている点。
    
    ### <a href="http://flask.pocoo.org/" class="external-link" target="_blank">Flask</a>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 31.6K bytes
    - Viewed (0)
  10. scripts/format.sh

    #!/bin/sh -e
    set -x
    
    ruff check fastapi tests docs_src scripts --fix
    Shell Script
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 30 00:03:14 GMT 2024
    - 112 bytes
    - Viewed (0)
Back to top