Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 170 for Borg (0.29 sec)

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

    Например, он не принимает объекты `datetime`, так как они не совместимы с JSON.
    
    В таком случае объект `datetime` следует преобразовать в строку соответствующую <a href="https://en.wikipedia.org/wiki/ISO_8601" class="external-link" target="_blank">формату ISO</a>.
    
    Точно так же эта база данных не может принять Pydantic модель (объект с атрибутами), а только `dict`.
    
    Для этого можно использовать функцию `jsonable_encoder`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 23 13:56:12 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. docs/uk/docs/tutorial/encoder.md

    Наприклад, вона не приймає об'єкти типу `datetime`, оскільки вони не сумісні з JSON.
    
    Отже, об'єкт типу `datetime` потрібно перетворити в рядок `str`, який містить дані в <a href="https://en.wikipedia.org/wiki/ISO_8601" class="external-link" target="_blank">ISO форматі</a>.
    
    Тим самим способом ця база даних не прийматиме об'єкт типу Pydantic model (об'єкт з атрибутами), а лише `dict`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/request-files.md

    * 使用 `spooled` 文件:
        * 存储在内存的文件超出最大上限时,FastAPI 会把文件存入磁盘;
    * 这种方式更适于处理图像、视频、二进制文件等大型文件,好处是不会占用所有内存;
    * 可获取上传文件的元数据;
    * 自带 <a href="https://docs.python.org/zh-cn/3/glossary.html#term-file-like-object" class="external-link" target="_blank">file-like</a> `async` 接口;
    * 暴露的 Python <a href="https://docs.python.org/zh-cn/3/library/tempfile.html#tempfile.SpooledTemporaryFile" class="external-link" target="_blank">`SpooledTemporaryFile`</a> 对象,可直接传递给其他预期「file-like」对象的库。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_metadata/test_tutorial001.py

                    "email": "******@****.***",
                },
                "license": {
                    "name": "Apache 2.0",
                    "url": "https://www.apache.org/licenses/LICENSE-2.0.html",
                },
                "version": "0.0.1",
            },
            "paths": {
                "/items/": {
                    "get": {
                        "summary": "Read Items",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  5. docs/en/docs/how-to/nosql-databases-couchbase.md

    Any variable that is put inside of `{}` in an f-string will be expanded / injected in the string.
    
    ### `dict` unpacking
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 6K bytes
    - Viewed (0)
  6. docs/en/docs/how-to/conditional-openapi.md

    Hiding the documentation just makes it more difficult to understand how to interact with your API, and could make it more difficult for you to debug it in production. It could be considered simply a form of <a href="https://en.wikipedia.org/wiki/Security_through_obscurity" class="external-link" target="_blank">Security through obscurity</a>.
    
    If you want to secure your API, there are several better things you can do, for example:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  7. docs/de/docs/advanced/websockets.md

    # WebSockets
    
    Sie können <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API" class="external-link" target="_blank">WebSockets</a> mit **FastAPI** verwenden.
    
    ## `WebSockets` installieren
    
    Zuerst müssen Sie `WebSockets` installieren:
    
    <div class="termy">
    
    ```console
    $ pip install websockets
    
    ---> 100%
    ```
    
    </div>
    
    ## WebSockets-Client
    
    ### In Produktion
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/debugging.md

    Следовательно, строка:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    не будет выполнена.
    
    !!! info "Информация"
        Для получения дополнительной информации, ознакомьтесь с <a href="https://docs.python.org/3/library/__main__.html" class="external-link" target="_blank">официальной документацией Python</a>.
    
    ## Запуск вашего кода с помощью отладчика
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/request-forms.md

    **FastAPI** 要确保从正确的位置读取数据,而不是读取 JSON。
    
    !!! note "技术细节"
    
        表单数据的「媒体类型」编码一般为 `application/x-www-form-urlencoded`。
    
        但包含文件的表单编码为 `multipart/form-data`。文件处理详见下节。
    
        编码和表单字段详见 <a href="https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Methods/POST" class="external-link" target="_blank"><abbr title="Mozilla Developer Network">MDN</abbr> Web 文档的 <code>POST</code></a>小节。
    
    !!! warning "警告"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  10. docs/fr/docs/tutorial/debugging.md

    Ainsi, la ligne :
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    ne sera pas exécutée.
    
    !!! info
    Pour plus d'informations, consultez <a href="https://docs.python.org/3/library/__main__.html" class="external-link" target="_blank">la documentation officielle de Python</a>.
    
    ## Exécutez votre code avec votre <abbr title="En anglais: debugger">débogueur</abbr>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Mar 06 16:26:49 GMT 2023
    - 2.9K bytes
    - Viewed (0)
Back to top