Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 145 for sectre (0.14 sec)

  1. tests/test_response_model_data_filter_no_inheritance.py

        return [pet1, pet2]
    
    
    client = TestClient(app)
    
    
    def test_filter_top_level_model():
        response = client.post(
            "/users", json={"email": "******@****.***", "password": "secret"}
        )
        assert response.json() == {"email": "******@****.***"}
    
    
    def test_filter_second_level_model():
        response = client.get("/pets/1")
        assert response.json() == {
            "name": "Nibbler",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  2. .github/actions/notify-translations/app/main.py

        discussion_id: Union[str, None] = None,
        comment_id: Union[str, None] = None,
        body: Union[str, None] = None,
    ) -> Dict[str, Any]:
        headers = {"Authorization": f"token {settings.input_token.get_secret_value()}"}
        # some fields are only used by one query, but GraphQL allows unused variables, so
        # keep them here for simplicity
        variables = {
            "after": after,
            "category_id": category_id,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/security/simple-oauth2.md

        如需强制使用固定值 `password`,则不要用 `OAuth2PasswordRequestForm`,而是用 `OAuth2PasswordRequestFormStrict`。
    
    * 可选的 `client_id`(本例未使用)
    * 可选的 `client_secret`(本例未使用)
    
    !!! info "说明"
    
        `OAuth2PasswordRequestForm` 与 `OAuth2PasswordBearer` 一样,都不是 FastAPI 的特殊类。
    
        **FastAPI** 把 `OAuth2PasswordBearer` 识别为安全方案。因此,可以通过这种方式把它添加至 OpenAPI。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/security/oauth2-jwt.md

    次のようなユーザーインターフェイスが表示されます:
    
    <img src="/img/tutorial/security/image07.png">
    
    前回と同じ方法でアプリケーションの認可を行います。
    
    次の認証情報を使用します:
    
    Username: `johndoe`
    Password: `secret`
    
    !!! check "確認"
        コードのどこにも平文のパスワード"`secret`"はなく、ハッシュ化されたものしかないことを確認してください。
    
    <img src="/img/tutorial/security/image08.png">
    
    エンドポイント`/users/me/`を呼び出すと、次のようなレスポンスが得られます:
    
    ```JSON
    {
      "username": "johndoe",
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  5. .github/actions/people/app/main.py

        *,
        settings: Settings,
        query: str,
        after: Union[str, None] = None,
        category_id: Union[str, None] = None,
    ) -> Dict[str, Any]:
        headers = {"Authorization": f"token {settings.input_token.get_secret_value()}"}
        # category_id is only used by one query, but GraphQL allows unused variables, so
        # keep it here for simplicity
        variables = {"after": after, "category_id": category_id}
        response = httpx.post(
    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)
  6. docs/em/docs/tutorial/security/simple-oauth2.md

        🚥 👆 💪 🛠️ ⚫️, ⚙️ `OAuth2PasswordRequestFormStrict` ↩️ `OAuth2PasswordRequestForm`.
    
    * 📦 `client_id` (👥 🚫 💪 ⚫️ 👆 🖼).
    * 📦 `client_secret` (👥 🚫 💪 ⚫️ 👆 🖼).
    
    !!! info
         `OAuth2PasswordRequestForm` 🚫 🎁 🎓 **FastAPI** `OAuth2PasswordBearer`.
    
        `OAuth2PasswordBearer` ⚒ **FastAPI** 💭 👈 ⚫️ 💂‍♂ ⚖. ⚫️ 🚮 👈 🌌 🗄.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  7. docs/pt/docs/deployment.md

    Então, você pode deixar que o **FastAPI** use a versão correta do Starlette.
    
    ### Sobre Pydantic
    
    Pydantic inclui os testes para **FastAPI** em seus próprios testes, então novas versões do Pydantic (acima de `1.0.0`) são sempre compatíveis com FastAPI.
    
    Você pode fixar o Pydantic para qualquer versão acima de `1.0.0` e abaixo de `2.0.0` que funcionará.
    
    Por exemplo:
    
    ```txt
    pydantic>=1.2.0,<2.0.0
    ```
    
    ## Docker
    
    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)
  8. docs/fr/docs/async.md

    * L'apprentissage profond (ou **Deep Learning**) : est un sous-domaine du **Machine Learning**, donc les mêmes raisons s'appliquent. Avec la différence qu'il n'y a pas une unique feuille de calcul de nombres à multiplier, mais une énorme quantité d'entre elles, et dans de nombreux cas, on utilise un processeur spécial pour construire et / ou utiliser ces modèles....
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 24K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_sql_databases/test_sql_databases.py

            test_db.unlink()
        os.chdir(cwd)
    
    
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_create_user(client):
        test_user = {"email": "******@****.***", "password": "secret"}
        response = client.post("/users/", json=test_user)
        assert response.status_code == 200, response.text
        data = response.json()
        assert test_user["email"] == data["email"]
        assert "id" in data
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py

            test_db.unlink()
        os.chdir(cwd)
    
    
    @needs_py310
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_create_user(client):
        test_user = {"email": "******@****.***", "password": "secret"}
        response = client.post("/users/", json=test_user)
        assert response.status_code == 200, response.text
        data = response.json()
        assert test_user["email"] == data["email"]
        assert "id" in data
    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)
Back to top