Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 124 for datetime (0.07 seconds)

  1. docs/es/docs/tutorial/encoder.md

    ## Usando el `jsonable_encoder` { #using-the-jsonable-encoder }
    
    Imaginemos que tienes una base de datos `fake_db` que solo recibe datos compatibles con JSON.
    
    Por ejemplo, no recibe objetos `datetime`, ya que no son compatibles con JSON.
    
    Entonces, un objeto `datetime` tendría que ser convertido a un `str` que contenga los datos en [formato ISO](https://en.wikipedia.org/wiki/ISO_8601).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 1.7K bytes
    - Click Count (0)
  2. README.md

        * Convert Python types (`str`, `int`, `float`, `bool`, `list`, etc).
        * `datetime` objects.
        * `UUID` objects.
        * Database models.
        * ...and many more.
    * Automatic interactive API documentation, including 2 alternative user interfaces:
        * Swagger UI.
        * ReDoc.
    
    ---
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 24.3K bytes
    - Click Count (0)
  3. docs/en/docs/index.md

        * Convert Python types (`str`, `int`, `float`, `bool`, `list`, etc).
        * `datetime` objects.
        * `UUID` objects.
        * Database models.
        * ...and many more.
    * Automatic interactive API documentation, including 2 alternative user interfaces:
        * Swagger UI.
        * ReDoc.
    
    ---
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 21.4K bytes
    - Click Count (0)
  4. docs/en/docs/alternatives.md

    conversion">serialization</dfn>" which is taking data from the code (Python) and converting it into something that can be sent through the network. For example, converting an object containing data from a database into a JSON object. Converting `datetime` objects into strings, etc.
    
    Another big feature needed by APIs is data validation, making sure that the data is valid, given certain parameters. For example, that some field is an `int`, and not some random string. This is especially useful...
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  5. docs/ja/docs/index.md

        * ヘッダー。
        * フォーム。
        * ファイル。
    * 出力データの <dfn title="別名: serialization、parsing、marshalling">変換</dfn>: Python のデータや型からネットワークデータへ(JSON として)変換します:
        * Python の型(`str`、`int`、`float`、`bool`、`list` など)の変換。
        * `datetime` オブジェクト。
        * `UUID` オブジェクト。
        * データベースモデル。
        * ...などなど。
    * 2 つの代替ユーザーインターフェースを含む自動対話型 API ドキュメント:
        * Swagger UI。
        * ReDoc。
    
    ---
    
    前のコード例に戻ると、**FastAPI** は次のように動作します。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/index.md

        * 路徑參數。
        * 查詢參數。
        * Cookies。
        * 標頭。
        * 表單。
        * 檔案。
    * 輸出資料的 <dfn title="也稱為:序列化、解析、封送">轉換</dfn>:從 Python 資料與型別轉換為網路資料(JSON):
        * 轉換 Python 型別(`str`、`int`、`float`、`bool`、`list` 等)。
        * `datetime` 物件。
        * `UUID` 物件。
        * 資料庫模型。
        * ...還有更多。
    * 自動生成的互動式 API 文件,包含 2 種替代的使用者介面:
        * Swagger UI。
        * ReDoc。
    
    ---
    
    回到前面的程式碼範例,**FastAPI** 會:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 20.8K bytes
    - Click Count (0)
  7. docs/tr/docs/tutorial/body-updates.md

    Girdi verisini JSON olarak saklanabilecek bir formata (ör. bir NoSQL veritabanı ile) dönüştürmek için `jsonable_encoder` kullanabilirsiniz. Örneğin, `datetime` değerlerini `str`'ye çevirmek gibi.
    
    {* ../../docs_src/body_updates/tutorial001_py310.py hl[28:33] *}
    
    `PUT`, mevcut verinin yerine geçmesi gereken veriyi almak için kullanılır.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  8. docs/zh/docs/alternatives.md

    ### [Marshmallow](https://marshmallow.readthedocs.io/en/stable/) { #marshmallow }
    
    API 系统所需的主要特性之一是数据“<dfn title="也称为:编组、转换">序列化</dfn>”,即将代码(Python)中的数据转换为可通过网络发送的形式。例如,将包含数据库数据的对象转换为 JSON 对象、将 `datetime` 对象转换为字符串等。
    
    API 的另一个重要特性是数据校验,确保数据在给定约束下是有效的。例如,某个字段必须是 `int` 而不是任意字符串。这对传入数据尤其有用。
    
    没有数据校验系统的话,你就得在代码里手写所有检查。
    
    这些正是 Marshmallow 要提供的功能。它是个很棒的库,我之前大量使用过。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  9. docs/de/docs/tutorial/body-updates.md

    Sie können den `jsonable_encoder` verwenden, um die empfangenen Daten in etwas zu konvertieren, das als JSON gespeichert werden kann (z. B. in einer NoSQL-Datenbank). Zum Beispiel, um ein `datetime` in einen `str` zu konvertieren.
    
    {* ../../docs_src/body_updates/tutorial001_py310.py hl[28:33] *}
    
    `PUT` wird verwendet, um Daten zu empfangen, die die existierenden Daten ersetzen sollen.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 5K bytes
    - Click Count (0)
  10. docs/es/docs/tutorial/body-updates.md

    Puedes usar el `jsonable_encoder` para convertir los datos de entrada en datos que se puedan almacenar como JSON (por ejemplo, con una base de datos NoSQL). Por ejemplo, convirtiendo `datetime` a `str`.
    
    {* ../../docs_src/body_updates/tutorial001_py310.py hl[28:33] *}
    
    `PUT` se usa para recibir datos que deben reemplazar los datos existentes.
    
    ### Advertencia sobre el reemplazo { #warning-about-replacing }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 4.4K bytes
    - Click Count (0)
Back to Top