asyncio compatibility shim for tinydb
import asyncio
from aiotinydb import AIOTinyDB
async def test():
async with AIOTinyDB('test.json') as db:
db.insert(dict(counter=1))
loop = asyncio.new_event_loop()
loop.run_until_complete(test())
loop.close()