Search Options

Results per page
Sort
Preferred Languages
Advance

Results 831 - 840 of 850 for pydantic (0.05 sec)

  1. docs/ja/docs/project-generation.md

    * UvicornとGunicornを使用した**リリース可能な** Python web サーバ。
    * Python <a href="https://github.com/fastapi/fastapi" class="external-link" target="_blank">**FastAPI**</a> バックエンド:
        * **高速**: **NodeJS** や **Go** 並みのとても高いパフォーマンス (Starlette と Pydantic のおかげ)。
        * **直感的**: 素晴らしいエディタのサポートや <abbr title="自動補完、インテリセンスとも呼ばれる">補完。</abbr> デバッグ時間の短縮。
        * **簡単**: 簡単に利用、習得できるようなデザイン。ドキュメントを読む時間を削減。
        * **短い**: コードの重複を最小限に。パラメータ宣言による複数の機能。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. .github/actions/people/app/main.py

    from datetime import datetime, timedelta, timezone
    from pathlib import Path
    from typing import Any, Container, DefaultDict, Dict, List, Set, Union
    
    import httpx
    import yaml
    from github import Github
    from pydantic import BaseModel, SecretStr
    from pydantic_settings import BaseSettings
    
    github_graphql_url = "https://api.github.com/graphql"
    questions_category_id = "MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMyMDAxNDM0"
    
    discussions_query = """
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:13:50 UTC 2024
    - 19.2K bytes
    - Viewed (1)
  3. docs/zh/docs/tutorial/security/oauth2-jwt.md

    09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7
    ```
    
    </div>
    
    然后,把生成的密钥复制到变量**SECRET_KEY**,注意,不要使用本例所示的密钥。
    
    创建指定 JWT 令牌签名算法的变量 **ALGORITHM**,本例中的值为 `"HS256"`。
    
    创建设置令牌过期时间的变量。
    
    定义令牌端点响应的 Pydantic 模型。
    
    创建生成新的访问令牌的工具函数。
    
    ```Python hl_lines="6  12-14  28-30  78-86"
    {!../../docs_src/security/tutorial004.py!}
    ```
    
    ## 更新依赖项
    
    更新 `get_current_user` 以接收与之前相同的令牌,但这里用的是 JWT 令牌。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. docs/en/docs/deployment/docker.md

    ```
    fastapi[standard]>=0.113.0,<0.114.0
    pydantic>=2.7.0,<3.0.0
    ```
    
    And you would normally install those package dependencies with `pip`, for example:
    
    <div class="termy">
    
    ```console
    $ pip install -r requirements.txt
    ---> 100%
    Successfully installed fastapi pydantic
    ```
    
    </div>
    
    /// info
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Sep 18 16:09:57 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/first-steps.md

    ///
    
    ### Step 5: return the content
    
    {* ../../docs_src/first_steps/tutorial001.py hl[8] *}
    
    You can return a `dict`, `list`, singular values as `str`, `int`, etc.
    
    You can also return Pydantic models (you'll see more about that later).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:48:16 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. fastapi/openapi/utils.py

                route, routing.APIRoute
            ):
                if route.body_field:
                    assert isinstance(
                        route.body_field, ModelField
                    ), "A request body must be a Pydantic Field"
                    body_fields_from_routes.append(route.body_field)
                if route.response_field:
                    responses_from_routes.append(route.response_field)
                if route.response_fields:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/security/simple-oauth2.md

    ```
    
    ////
    
    ### Confira a password (senha)
    
    Neste ponto temos os dados do usuário do nosso banco de dados, mas não verificamos a senha.
    
    Vamos colocar esses dados primeiro no modelo `UserInDB` do Pydantic.
    
    Você nunca deve salvar senhas em texto simples, portanto, usaremos o sistema de hashing de senhas (falsas).
    
    Se as senhas não corresponderem, retornaremos o mesmo erro.
    
    #### Hashing de senha
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 12:17:45 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/security/simple-oauth2.md

    //// tab | 파이썬 3.10 이상
    
    ```Python hl_lines="1  75-77"
    {!> ../../docs_src/security/tutorial003_py310.py!}
    ```
    
    ////
    
    ### 패스워드 확인하기
    
    이 시점에서 데이터베이스의 사용자 데이터 형식을 확인했지만 암호를 확인하지 않았습니다.
    
    먼저 데이터를 Pydantic `UserInDB` 모델에 넣겠습니다.
    
    일반 텍스트 암호를 저장하면 안 되니 (가짜) 암호 해싱 시스템을 사용합니다.
    
    두 패스워드가 일치하지 않으면 동일한 오류가 반환됩니다.
    
    #### 패스워드 해싱
    
    "해싱"은 일부 콘텐츠(이 경우 패스워드)를 횡설수설하는 것처럼 보이는 일련의 바이트(문자열)로 변환하는 것을 의미합니다.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. docs/pt/docs/advanced/custom-response.md

    E se a `Response` tiver um media type JSON (`application/json`), como é o caso com `JSONResponse` e `UJSONResponse`, os dados que você retornar serão automaticamente convertidos (e filtrados) com qualquer `response_model` do Pydantic que for declarado em sua *função de operador de rota*.
    
    /// note | Nota
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 11:47:10 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/first-steps.md

    ///
    
    ### Step 5: コンテンツの返信
    
    ```Python hl_lines="8"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    `dict`、`list`、`str`、`int`などを返すことができます。
    
    Pydanticモデルを返すこともできます(後で詳しく説明します)。
    
    JSONに自動的に変換されるオブジェクトやモデルは他にもたくさんあります(ORMなど)。 お気に入りのものを使ってみてください。すでにサポートされている可能性が高いです。
    
    ## まとめ
    
    * `FastAPI`をインポート
    * `app`インスタンスを生成
    * **パスオペレーションデコレータ**を記述 (`@app.get("/")`)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top