Skip to content

A small subset of dbs capabilities to write dbs independent asyncio libs

Notifications You must be signed in to change notification settings

imbolc/aio_crud_store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AsyncIO CRUD Store

A very simple subset of databases capabilities intended to use most of dbs the same way. You can use it to write database independent asyncio libraries.

It currently supports mongodb (through motor) and postrgresql (through aiopg), please feel free to add other dbs implementations.

Install

pip install aio_crud_store

Usage

The api is very simple and obvious (I hope). The working examples are in examples directory.

# create
id = await store.create({'foo': 'bar'})

# read
doc = await store.read(foo='bar')

# update
await store.update(id, {'foo': 'baz', 'spam': 1})

# delete
await store.delete(id)

About

A small subset of dbs capabilities to write dbs independent asyncio libs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages