Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 576 for ditt (0.04 sec)

  1. docs/ru/docs/tutorial/encoder.md

    # JSON кодировщик
    
    В некоторых случаях может потребоваться преобразование типа данных (например, Pydantic-модели) в тип, совместимый с JSON (например, `dict`, `list` и т.д.).
    
    Например, если необходимо хранить его в базе данных.
    
    Для этого **FastAPI** предоставляет функцию `jsonable_encoder()`.
    
    ## Использование `jsonable_encoder`
    
    Представим, что у вас есть база данных `fake_db`, которая принимает только JSON-совместимые данные.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/body-updates.md

    更新部分数据时,可以在 Pydantic 模型的 `.dict()` 中使用 `exclude_unset` 参数。
    
    比如,`item.dict(exclude_unset=True)`。
    
    这段代码生成的 `dict` 只包含创建 `item` 模型时显式设置的数据,而不包括默认值。
    
    然后再用它生成一个只含已设置(在请求中所发送)数据,且省略了默认值的 `dict`:
    
    ```Python hl_lines="34"
    {!../../docs_src/body_updates/tutorial002.py!}
    ```
    
    ### 使用 Pydantic 的 `update` 参数
    
    接下来,用 `.copy()` 为已有模型创建调用 `update` 参数的副本,该参数为包含更新数据的 `dict`。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. src/main/webapp/WEB-INF/view/admin/dict/kuromoji/admin_dict_kuromoji_details.jsp

        <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp">
            <jsp:param name="menuCategoryType" value="system"/>
            <jsp:param name="menuType" value="dict"/>
        </jsp:include>
        <div class="content-wrapper">
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Feb 12 20:25:27 UTC 2020
    - 8K bytes
    - Viewed (0)
  4. docs/tr/docs/python-types.md

    * `items_s` ise her öğesi `bytes` türünde olan bir `set` örneğidir.
    
    #### `Dict`
    
    Bir `dict` tanımlamak için virgülle ayrılmış iki parametre verebilirsiniz.
    
    İlk tip parametresi `dict` değerinin `key` değeri içindir.
    
    İkinci parametre ise `dict` değerinin `value` değeri içindir:
    
    ```Python hl_lines="1  4"
    {!../../docs_src/python_types/tutorial008.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/encoder.md

    # JSON-kompatibler Encoder
    
    Es gibt Fälle, da möchten Sie einen Datentyp (etwa ein Pydantic-Modell) in etwas konvertieren, das kompatibel mit JSON ist (etwa ein `dict`, eine `list`e, usw.).
    
    Zum Beispiel, wenn Sie es in einer Datenbank speichern möchten.
    
    Dafür bietet **FastAPI** eine Funktion `jsonable_encoder()`.
    
    ## `jsonable_encoder` verwenden
    
    Stellen wir uns vor, Sie haben eine Datenbank `fake_db`, die nur JSON-kompatible Daten entgegennimmt.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/CreateBody.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.api.admin.dict.kuromoji;
    
    import org.codelibs.fess.app.web.admin.dict.kuromoji.CreateForm;
    
    public class CreateBody extends CreateForm {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 794 bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/DownloadBody.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.api.admin.dict.mapping;
    
    import org.codelibs.fess.app.web.admin.dict.mapping.DownloadForm;
    
    public class DownloadBody extends DownloadForm {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 798 bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/EditBody.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.api.admin.dict.mapping;
    
    import org.codelibs.fess.app.web.admin.dict.mapping.EditForm;
    
    public class EditBody extends EditForm {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 786 bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/SearchBody.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.api.admin.dict.mapping;
    
    import org.codelibs.fess.app.web.api.admin.dict.BaseSearchDictBody;
    
    public class SearchBody extends BaseSearchDictBody {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 804 bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stopwords/CreateBody.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.api.admin.dict.stopwords;
    
    import org.codelibs.fess.app.web.admin.dict.stopwords.CreateForm;
    
    public class CreateBody extends CreateForm {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 796 bytes
    - Viewed (0)
Back to top