Skip to main content

KV API implementation on Azure Blob Storage

Project description

Key-Value: Azure Blob

Implementation of the KV[T] async Key-Value ABC, over Azure Blob Storage

(kv-api)

pip install kv-azure-blob

Usage

Raw

from azure.storage.blob.aio import ContainerClient
from kv.azure.blob import BlobKV

cc: ContainerClient = ...
kv = BlobKV[bytes](cc)
await kv.insert('img1', b'...')
await kv.read('img2')
await kv.keys()
# etc.

Pydantic-validated

from dataclasses import dataclass

@dataclass
class User:
  username: str
  email: str

cc: ContainerClient = ...
kv = BlobKV.validated(User, cc)
await kv.insert('user1', User(username='user1', email='...'))
# etc.

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_azure_blob-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

kv_azure_blob-0.1.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file kv_azure_blob-0.1.1.tar.gz.

File metadata

  • Download URL: kv_azure_blob-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for kv_azure_blob-0.1.1.tar.gz
Algorithm Hash digest
SHA256 141b188fe8565d1d23389adbb7402fc8afe3f8098d86909a3ae311bf369d5a5b
MD5 25dbb37df8a571a603fed2b6f4e33d7e
BLAKE2b-256 7d90aab8099604d566ab08ed345342bba5020a099d50b020e970d5b28d439f91

See more details on using hashes here.

File details

Details for the file kv_azure_blob-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kv_azure_blob-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for kv_azure_blob-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2330aee9bc5411f3a2a067e1728ec8ced25ecdd04cafc30fc905bc0ee111c83e
MD5 da389fbce370ac83f6342a56ec4105de
BLAKE2b-256 3114e0e4b9986827005f86e83fc3dde8724a701df02c4c0f6c11835fc9f2f2aa

See more details on using hashes here.

Supported by

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