wow-token-app-bot/token_bot/persistant_database/database.py
Emily Doherty 34badf17eb Once and for all reformat.
Will be using black code formatter
2024-12-08 17:07:26 -08:00

14 lines
339 B
Python

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):
self.client = Client(
AIOHTTP(session), Credentials.auto(), os.getenv("AWS_REGION")
)