Very Initial MVP
There is so much more to do, but I think it is time to commit this to VCS
This commit is contained in:
16
token_bot/persistant_database/database.py
Normal file
16
token_bot/persistant_database/database.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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'))
|
||||
|
||||
Reference in New Issue
Block a user