Connect to Deno KV cloud and self-hosted databases from Python.
The denokv package is an unofficial Python client for the Deno KV database. It
can connect to both the distributed cloud KV service, or self-hosted denokv
server (which can be a replica of a cloud KV database, or standalone).
It implements version 3 of the KV Connect protocol spec, published by Deno.
The package is under active development and is not yet stable or feature-complete.
Working:
- Reading data with
Kv.get(),Kv.list()- The read APIs are being reworked to improve ergonomics and functionality
- Writing data with with
Kv.set(),Kv.delete(),Kv.sum(),Kv.min(),Kv.max(),Kv.enqueue()andKv.check().- These methods are available on
Kvitself for one-off operations, andKv.atomic()can chain these methods to group write operations to apply together in a transaction.
- These methods are available on
To-do:
- Watching for changes
- Queues
- This is uncertain: The KV Connect protocol does not support Queues, but they could be implemented using watching in theory.