wow-token-app-bot/token_bot/persistant_database/database.py
Emily Doherty c78ced85ca Very Initial MVP
There is so much more to do, but I think it is time to commit this to VCS
2024-11-30 03:27:32 -08:00

17 lines
423 B
Python

import os
import aiohttp
from aiodynamo.client import Client
from aiodynamo.client import Table
from aiodynamo.credentials import Credentials
from aiodynamo.http.httpx import HTTPX
from aiodynamo.http.aiohttp import AIOHTTP
from httpx import AsyncClient
class Database:
def __init__(self, session: aiohttp.ClientSession):
self.client = Client(AIOHTTP(session), Credentials.auto(), os.getenv('AWS_REGION'))