Skip to content

h4l/denokv-python

Repository files navigation

Deno KV Python

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.

Status

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() and Kv.check().
    • These methods are available on Kv itself for one-off operations, and Kv.atomic() can chain these methods to group write operations to apply together in a transaction.

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.

About

Deno KV database client for Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages