2024-11-30 11:27:32 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
import aiohttp
|
|
|
|
from aiodynamo.client import Client
|
|
|
|
from aiodynamo.credentials import Credentials
|
|
|
|
from aiodynamo.http.aiohttp import AIOHTTP
|
|
|
|
|
|
|
|
|
|
|
|
class Database:
|
|
|
|
def __init__(self, session: aiohttp.ClientSession):
|
2024-12-09 01:07:26 +00:00
|
|
|
self.client = Client(
|
|
|
|
AIOHTTP(session), Credentials.auto(), os.getenv("AWS_REGION")
|
|
|
|
)
|