- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for timedelta (0.23 sec)
-
.github/actions/people/app/main.py
one_year_commenters = Counter() authors: Dict[str, Author] = {} now = datetime.now(tz=timezone.utc) one_month_ago = now - timedelta(days=30) three_months_ago = now - timedelta(days=90) six_months_ago = now - timedelta(days=180) one_year_ago = now - timedelta(days=365) for discussion in discussion_nodes: discussion_author_name = None if discussion.author:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 17:38:21 GMT 2024 - 19.2K bytes - Viewed (1) -
fastapi/encoders.py
ENCODERS_BY_TYPE: Dict[Type[Any], Callable[[Any], Any]] = { bytes: lambda o: o.decode(), Color: str, datetime.date: isoformat, datetime.datetime: isoformat, datetime.time: isoformat, datetime.timedelta: lambda td: td.total_seconds(), Decimal: decimal_encoder, Enum: lambda o: o.value, frozenset: list, deque: list, GeneratorType: list, IPv4Address: str, IPv4Interface: str,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 21:56:59 GMT 2024 - 10.8K bytes - Viewed (0) -
docs/de/docs/tutorial/security/oauth2-jwt.md
```Python hl_lines="89-106" {!> ../../../docs_src/security/tutorial004.py!} ``` ## Die *Pfadoperation* `/token` aktualisieren Erstellen Sie ein <abbr title="Zeitdifferenz">`timedelta`</abbr> mit der Ablaufzeit des Tokens. Erstellen Sie einen echten JWT-Zugriffstoken und geben Sie ihn zurück. === "Python 3.10+" ```Python hl_lines="117-132"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:27:06 GMT 2024 - 15.1K bytes - Viewed (0) -
docs/en/docs/tutorial/security/oauth2-jwt.md
Prefer to use the `Annotated` version if possible. ```Python hl_lines="89-106" {!> ../../../docs_src/security/tutorial004.py!} ``` ## Update the `/token` *path operation* Create a `timedelta` with the expiration time of the token. Create a real JWT access token and return it. === "Python 3.10+" ```Python hl_lines="117-132" {!> ../../../docs_src/security/tutorial004_an_py310.py!}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 13K bytes - Viewed (0) -
docs/ja/docs/tutorial/security/oauth2-jwt.md
受け取ったトークンを復号して検証し、現在のユーザーを返します。 トークンが無効な場合は、すぐにHTTPエラーを返します。 ```Python hl_lines="89-106" {!../../../docs_src/security/tutorial004.py!} ``` ## `/token` パスオペレーションの更新 トークンの有効期限を表す`timedelta`を作成します。 JWTアクセストークンを作成し、それを返します。 ```Python hl_lines="115-130" {!../../../docs_src/security/tutorial004.py!} ``` ### JWTの"subject" `sub` についての技術的な詳細 JWTの仕様では、トークンのsubjectを表すキー`sub`があるとされています。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 21:21:35 GMT 2024 - 14.1K bytes - Viewed (0)