Skip to main content

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

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aio_crud_store-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file aio_crud_store-0.0.2.tar.gz.

File metadata

File hashes

Hashes for aio_crud_store-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8691417a2ac342881417591e93cf059536fb3f74dbe5c83a5a373c0d3a6bc927
MD5 fd52a403ddcba3e6488a49d89688f745
BLAKE2b-256 f942225341da74ae8cedf82f49abbb4b3685fae327625f5713e75d18c4b13b56

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page