Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 68 for unicode (0.27 sec)

  1. docs_src/security/tutorial005_py310.py

    
    def create_access_token(data: dict, expires_delta: timedelta | None = None):
        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    async def get_current_user(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. docs_src/security/tutorial005_an_py310.py

    
    def create_access_token(data: dict, expires_delta: timedelta | None = None):
        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    async def get_current_user(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/websockets.md

        If you need something easy to integrate with FastAPI but that is more robust, supported by Redis, PostgreSQL or others, check <a href="https://github.com/encode/broadcaster" class="external-link" target="_blank">encode/broadcaster</a>.
    
    ## More info
    
    To learn more about the options, check Starlette's documentation for:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/extra-data-types.md

            * Nas requisições, uma lista será lida, eliminando duplicadas e convertendo-a em um `set`.
            * Nas respostas, o `set` será convertido para uma `list`.
            * O esquema gerado vai especificar que os valores do `set` são unicos (usando o `uniqueItems` do JSON Schema).
    * `bytes`:
        * O `bytes` padrão do Python.
        * Em requisições e respostas será representado como uma `str`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3K bytes
    - Viewed (0)
  5. docs/en/mkdocs.yml

      redirects:
        redirect_maps:
          deployment/deta.md: deployment/cloud.md
          advanced/sql-databases-peewee.md: how-to/sql-databases-peewee.md
          advanced/async-sql-databases.md: how-to/async-sql-encode-databases.md
          advanced/nosql-databases.md: how-to/nosql-databases-couchbase.md
          advanced/graphql.md: how-to/graphql.md
          advanced/custom-request-and-route.md: how-to/custom-request-and-route.md
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  6. docs/zh/docs/help-fastapi.md

    您还可以赞助:
    
    * <a href="https://github.com/sponsors/samuelcolvin" class="external-link" target="_blank">Samuel Colvin (Pydantic)</a>
    * <a href="https://github.com/sponsors/encode" class="external-link" target="_blank">Encode (Starlette, Uvicorn)</a>
    
    ---
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  7. docs/en/docs/help-fastapi.md

    You can also sponsor:
    
    * <a href="https://github.com/sponsors/samuelcolvin" class="external-link" target="_blank">Samuel Colvin (Pydantic)</a>
    * <a href="https://github.com/sponsors/encode" class="external-link" target="_blank">Encode (Starlette, Uvicorn)</a>
    
    ---
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/handling-errors.md

    {!../../../docs_src/handling_errors/tutorial003.py!}
    ```
    
    Nesse cenário, se você fizer uma requisição para `/unicorns/yolo`, a *operação de caminho* vai lançar (`raise`) o `UnicornException`.
    
    Essa exceção será manipulada, contudo, pelo `unicorn_exception_handler`.
    
    Dessa forma você receberá um erro "limpo", com o HTTP status code `418` e um JSON com o conteúdo:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
  9. docs/zh/docs/advanced/openapi-callbacks.md

    因此,我们下一步要做的就是添加代码,为从 API 接收回调的*外部 API*存档。
    
    这部分文档在 `/docs` 下的 Swagger API 文档中显示,并且会告诉外部开发者如何构建*外部 API*。
    
    本例没有实现回调本身(只是一行代码),只有文档部分。
    
    !!! tip "提示"
    
        实际的回调只是 HTTP 请求。
    
        实现回调时,要使用 <a href="https://www.encode.io/httpx/" class="external-link" target="_blank">HTTPX</a> 或 <a href="https://requests.readthedocs.io/" class="external-link" target="_blank">Requests</a>。
    
    ## 编写回调文档代码
    
    应用不执行这部分代码,只是用它来*记录 外部 API* 。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:46:28 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  10. docs/en/docs/features.md

    With **FastAPI** you get all of **Starlette**'s features (as FastAPI is just Starlette on steroids):
    
    * Seriously impressive performance. It is <a href="https://github.com/encode/starlette#performance" class="external-link" target="_blank">one of the fastest Python frameworks available, on par with **NodeJS** and **Go**</a>.
    * **WebSocket** support.
    * In-process background tasks.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top