Skip to content

Commit 3f888cb

Browse files
committed
Major AioPynamoDB port
1 parent cc9758e commit 3f888cb

File tree

13 files changed

+561
-919
lines changed

13 files changed

+561
-919
lines changed

fastapi_users_db_dynamodb/__init__.py

Lines changed: 206 additions & 399 deletions
Large diffs are not rendered by default.

fastapi_users_db_dynamodb/_aioboto3_patch.py

Lines changed: 0 additions & 87 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""FastAPI Users DynamoDB generics."""
2+
3+
import uuid
4+
from datetime import datetime, timezone
5+
6+
UUID_ID = uuid.UUID
7+
8+
9+
def now_utc() -> datetime:
10+
"""
11+
Returns the current time in UTC with timezone awareness.
12+
Equivalent to the old implementation.
13+
"""
14+
return datetime.now(timezone.utc)

0 commit comments

Comments
 (0)