Skip to main content

Key-Value interface over SQLite. Supports any datatype, including JSON and BLOB

Project description

Sqlite Kv (Sync)

Synchronous Key-Value interface over SQLite. Supports any datatype, including JSON and BLOB

Usage

import json
from sqlite_kv import SQLiteKV

api = await SQLiteKV.at(
  db_path='mydb.sqlite', table='my-jsons',
  dtype='JSON', parse=json.loads, dump=json.dumps
)
await api.upsert('my-image', dict(hello='world'))
await api.read('my-image') # dict(hello='world')

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

kv_sqlite_sync-0.1.6.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

kv_sqlite_sync-0.1.6-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

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