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.2.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for kv_azure_blob-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61fae4e015e6294561ad06220160b472d171316072d3dcbcf4f603998832d44b |
|
MD5 | 5eb4c9f8034fd01c0a97f7727e7fb3f8 |
|
BLAKE2b-256 | f815ccd0852bce7241945bd6bf757308539675de48a82523b318b30d4c29a1de |