Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for Nelson (0.19 sec)

  1. tests/test_read_with_orm_mode.py

        app = FastAPI()
    
        @app.post("/people/", response_model=PersonRead)
        def create_person(person: PersonCreate) -> Any:
            db_person = Person.model_validate(person)
            return db_person
    
        client = TestClient(app)
    
        person_data = {"name": "Dive", "lastname": "Wilson"}
        response = client.post("/people/", json=person_data)
        data = response.json()
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  2. fastapi/exceptions.py

                    """
                ),
            ],
            reason: Annotated[
                Union[str, None],
                Doc(
                    """
                    The reason to close the WebSocket connection.
    
                    It is UTF-8-encoded data. The interpretation of the reason is up to the
                    application, it is not specified by the WebSocket specification.
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  3. docs/de/docs/help-fastapi.md

    ### Das Problem reproduzieren
    
    In den meisten Fällen und bei den meisten Fragen ist etwas mit dem von der Person erstellten **eigenen Quellcode** los.
    
    In vielen Fällen wird nur ein Fragment des Codes gepostet, aber das reicht nicht aus, um **das Problem zu reproduzieren**.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:29:57 GMT 2024
    - 16K bytes
    - Viewed (0)
  4. docs/vi/docs/python-types.md

    <img src="/img/python-types/image06.png">
    
    Lưu ý rằng, điều này có nghĩa rằng "`one_person`" là một **thực thể** của lớp `Person`.
    
    Nó không có nghĩa "`one_person`" là một **lớp** gọi là `Person`.
    
    ## Pydantic models
    
    <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> là một thư viện Python để validate dữ liệu hiệu năng cao.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  5. docs/zh/docs/python-types.md

        * 这个 `dict` 的所有值为 `float` 类型(可以看作是字典内每个元素的价格)。
    
    ### 类作为类型
    
    你也可以将类声明为变量的类型。
    
    假设你有一个名为 `Person` 的类,拥有 name 属性:
    
    ```Python hl_lines="1-3"
    {!../../../docs_src/python_types/tutorial010.py!}
    ```
    
    接下来,你可以将一个变量声明为 `Person` 类型:
    
    ```Python hl_lines="6"
    {!../../../docs_src/python_types/tutorial010.py!}
    ```
    
    然后,你将再次获得所有的编辑器支持:
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/schema-extra-example.md

        They are more relevant for older versions, before OpenAPI 3.1.0 was available.
    
        You can consider this a brief OpenAPI and JSON Schema **history lesson**. 🤓
    
    !!! warning
        These are very technical details about the standards **JSON Schema** and **OpenAPI**.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  7. docs/ja/docs/python-types.md

    * `Set`
    * `Dict`
    * `Optional`
    * ...など
    
    **ジェネリック型** または **ジェネリクス** と呼びます。
    
    ### 型としてのクラス
    
    変数の型としてクラスを宣言することもできます。
    
    例えば、`Person`クラスという名前のクラスがあるとしましょう:
    
    ```Python hl_lines="1 2 3"
    {!../../../docs_src/python_types/tutorial010.py!}
    ```
    
    変数の型を`Person`として宣言することができます:
    
    ```Python hl_lines="6"
    {!../../../docs_src/python_types/tutorial010.py!}
    ```
    
    そして、再び、すべてのエディタのサポートを得ることができます:
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  8. docs/en/docs/how-to/sql-databases-peewee.md

    Aso, when returning several objects, like in `get_users`, we directly call `list`, like in:
    
    ```Python
    list(models.User.select())
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  9. fastapi/applications.py

                    It can contain several fields.
    
                    * `name`: (`str`) The name of the contact person/organization.
                    * `url`: (`str`) A URL pointing to the contact information. MUST be in
                        the format of a URL.
                    * `email`: (`str`) The email address of the contact person/organization.
                        MUST be in the format of an email address.
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/settings.md

        $ export MY_NAME="Wade Wilson"
    
        // Dann könnten Sie diese mit anderen Programmen verwenden, etwa
        $ echo "Hello $MY_NAME"
    
        Hello Wade Wilson
        ```
    
        </div>
    
    === "Windows PowerShell"
    
        <div class="termy">
    
        ```console
        // Erstelle eine Umgebungsvariable MY_NAME
        $ $Env:MY_NAME = "Wade Wilson"
    
        // Verwende sie mit anderen Programmen, etwa
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:14 GMT 2024
    - 17.8K bytes
    - Viewed (0)
Back to top