KV API implementation on Azure Blob Storage
Project description
Key-Value: Azure Blob
Implementation of the
KV[T]
async Key-Value ABC, over HTTP
(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
Release history Release notifications | RSS feed
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.0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for kv_azure_blob-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f794b0639139ed4304cc59a888294ab806865a889e38d429d26529535f410d3b |
|
MD5 | 7b79b4c97ee219152b1615a50f13ce19 |
|
BLAKE2b-256 | 18075f44715a373ab6bb73aa4219c3a57c497d9284ec27abb53e405d9c24dc98 |