Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for Bohn (0.23 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-моделей есть метод `.dict()`, который возвращает `dict` с данными модели.
    
    Поэтому, если мы создадим Pydantic-объект `user_in` таким способом:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="john******@****.***")
    ```
    
    и затем вызовем:
    
    ```Python
    user_dict = user_in.dict()
    ```
    
    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. 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)
  6. maven-api-impl/src/test/remote-repo/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.jar

    ******@****.*** http://mail-archives.apache.org/mod_mbox/www-announce/ jvanzyl Jason van Zyl ******@****.*** ASF PMC Chair -5 brett Brett Porter ******@****.*** ASF PMC Member +10 evenisse Emmanuel Venisse ******@****.*** ASF PMC Member +1 jdcasey John Casey ******@****.*** ASF PMC Member -5 kenney Kenney Westerhof ******@****.*** Neonics PMC Member +1 trygvis Trygve Laugstol ******@****.*** ASF PMC Member +1 vmassol Vincent Massol ******@****.*** ASF PMC Member +1 vsiveton Vincent Siveton...
    Archive
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 9.9K 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. chainable_api.go

    	}
    	return
    }
    
    // Or add OR conditions
    //
    // Or is used to chain together queries with an OR.
    //
    //	// Find the first user with name equal to jinzhu or john
    //	db.Where("name = ?", "jinzhu").Or("name = ?", "john").First(&user)
    func (db *DB) Or(query interface{}, args ...interface{}) (tx *DB) {
    	tx = db.getInstance()
    	if conds := tx.Statement.BuildCondition(query, args...); len(conds) > 0 {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  9. 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)
  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