Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for doe (0.12 sec)

  1. tests/test_response_model_as_return_annotation.py

        return User(name="John", surname="Doe")
    
    
    @app.get("/no_response_model-no_annotation-return_dict")
    def no_response_model_no_annotation_return_dict():
        return {"name": "John", "surname": "Doe"}
    
    
    @app.get("/response_model-no_annotation-return_same_model", response_model=User)
    def response_model_no_annotation_return_same_model():
        return User(name="John", surname="Doe")
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Aug 14 09:49:57 GMT 2023
    - 47.7K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/extra-models.md

    Поэтому, если мы создадим Pydantic-объект `user_in` таким способом:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="john.doe@example.com")
    ```
    
    и затем вызовем:
    
    ```Python
    user_dict = user_in.dict()
    ```
    
    то теперь у нас есть `dict` с данными модели в переменной `user_dict` (это `dict` вместо объекта Pydantic-модели).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  3. docs/ru/docs/python-types.md

    ## Мотивация
    
    Давайте начнем с простого примера:
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Вызов этой программы выводит:
    
    ```
    John Doe
    ```
    
    Функция делает следующее:
    
    * Принимает `first_name` и `last_name`.
    * Преобразует первую букву содержимого каждой переменной в верхний регистр с `title()`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. docs/uk/docs/python-types.md

    ## Мотивація
    
    Давайте почнемо з простого прикладу:
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Виклик цієї програми виводить:
    
    ```
    John Doe
    ```
    
    Функція виконує наступне:
    
    * Бере `first_name` та `last_name`.
    * Конвертує кожну літеру кожного слова у верхній регістр за допомогою `title()`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  5. tests/test_schema_extra_examples.py

        #             "example1": {"summary": "last name summary", "value": "Doe"},
        #             "example2": {"value": "Doesn't"},
        #         },
        #     ),
        # ):
        #     return lastname
    
        # @app.post("/form_example_examples")
        # def form_example_examples(
        #     lastname: str = Form(
        #         ...,
        #         example="Doe overridden",
        #         examples={
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 37.7K bytes
    - Viewed (0)
  6. docs/fr/docs/python-types.md

    ## Motivations
    
    Prenons un exemple simple :
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Exécuter ce programe affiche :
    
    ```
    John Doe
    ```
    
    La fonction :
    
    * Prend un `first_name` et un `last_name`.
    * Convertit la première lettre de chaque paramètre en majuscules grâce à `title()`.
    * Concatène les résultats avec un espace entre les deux.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  7. docs/ko/docs/python-types.md

    !!! note "참고"
        파이썬에 능숙하셔서 타입 힌트에 대해 모두 아신다면, 다음 챕터로 건너뛰세요.
    
    ## 동기 부여
    
    간단한 예제부터 시작해봅시다:
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    이 프로그램을 실행한 결과값:
    
    ```
    John Doe
    ```
    
    함수는 아래와 같이 실행됩니다:
    
    * `first_name`과 `last_name`를 받습니다.
    * `title()`로 각 첫 문자를 대문자로 변환시킵니다.
    * 두 단어를 중간에 공백을 두고 <abbr title="두 개를 하나로 차례차례 이어지게 하다">연결</abbr>합니다.
    
    ```Python hl_lines="2"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. docs/vi/docs/python-types.md

    ## Động lực
    
    Hãy bắt đầu với một ví dụ đơn giản:
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Kết quả khi gọi chương trình này:
    
    ```
    John Doe
    ```
    
    Hàm thực hiện như sau:
    
    * Lấy một `first_name` và `last_name`.
    * Chuyển đổi kí tự đầu tiên của mỗi biến sang kiểu chữ hoa với `title()`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  9. docs/en/docs/python-types.md

    ## Motivation
    
    Let's start with a simple example:
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Calling this program outputs:
    
    ```
    John Doe
    ```
    
    The function does the following:
    
    * Takes a `first_name` and `last_name`.
    * Converts the first letter of each one to upper case with `title()`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_security/test_tutorial005_an.py

            "/users/me", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "johndoe",
            "full_name": "John Doe",
            "email": "******@****.***",
            "disabled": False,
        }
    
    
    def test_incorrect_token():
        response = client.get("/users/me", headers={"Authorization": "Bearer nonexistent"})
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top