Skip to main content

Connect to Deno KV databases from Python.

Project description

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.

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

denokv-0.1.0a0.dev180.tar.gz (58.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

denokv-0.1.0a0.dev180-py3-none-any.whl (66.9 kB view details)

Uploaded Python 3

File details

Details for the file denokv-0.1.0a0.dev180.tar.gz.

File metadata

  • Download URL: denokv-0.1.0a0.dev180.tar.gz
  • Upload date:
  • Size: 58.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for denokv-0.1.0a0.dev180.tar.gz
Algorithm Hash digest
SHA256 1b1f2c62da04e0fbd634be76e6d197ff29fa2ff47bc26ee72d38ccf163041523
MD5 0fd6edb9917accbccc53ed5d6ec66646
BLAKE2b-256 8b60ac42a1a9f7c287550112652c48fae0208caa15bf35aac835a42a9f85cf39

See more details on using hashes here.

Provenance

The following attestation bundles were made for denokv-0.1.0a0.dev180.tar.gz:

Publisher: publish.yml on h4l/denokv-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file denokv-0.1.0a0.dev180-py3-none-any.whl.

File metadata

File hashes

Hashes for denokv-0.1.0a0.dev180-py3-none-any.whl
Algorithm Hash digest
SHA256 9085e38c4d7bda0bc3d660a20cfbd25c3bc2b5c507796068c2318ed7fce12766
MD5 685bca60eaf6b1c66c7231a32c7005e2
BLAKE2b-256 643a633934559a4fc3a005e0a8e10210cc0dfb6b2026d0c8135d6c4646d88d7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for denokv-0.1.0a0.dev180-py3-none-any.whl:

Publisher: publish.yml on h4l/denokv-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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