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
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.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for kv_azure_blob-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2330aee9bc5411f3a2a067e1728ec8ced25ecdd04cafc30fc905bc0ee111c83e |
|
MD5 | da389fbce370ac83f6342a56ec4105de |
|
BLAKE2b-256 | 3114e0e4b9986827005f86e83fc3dde8724a701df02c4c0f6c11835fc9f2f2aa |