This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import uuid | |
| from dataclasses import dataclass, field, asdict | |
| @dataclass(slots=True, kw_only=True) | |
| class ClientEntity: | |
| id: str = field(default_factory=lambda: str(uuid.uuid4())) | |
| first_name: str | |
| last_name: str | |
| wallet: str |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Litestar | |
| from collections.abc import Callable, AsyncIterator | |
| from sqlalchemy.ext.asyncio import ( | |
| AsyncSession, | |
| async_sessionmaker, | |
| create_async_engine, | |
| ) | |