NiekKeijzer / aiotinydb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aiotinydb

PyPI PyPI PyPI Build Status Say Thanks! 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()

About

License:Other


Languages

Language:Python 97.1%Language:Makefile 2.9%