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 details)
Built Distribution
File details
Details for the file kv_azure_blob-0.1.2.tar.gz
.
File metadata
- Download URL: kv_azure_blob-0.1.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c02a60165c4a741509e47341c4549ccce6d798a4de3229c63e250791a9507ec0
|
|
MD5 |
40e3a5fd46fc07079896a71cfc1c4853
|
|
BLAKE2b-256 |
e26c66977dfc62a7e169f5f421a42ccde75b690b7d10ad926b533f6e7ce21bff
|
File details
Details for the file kv_azure_blob-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: kv_azure_blob-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
61fae4e015e6294561ad06220160b472d171316072d3dcbcf4f603998832d44b
|
|
MD5 |
5eb4c9f8034fd01c0a97f7727e7fb3f8
|
|
BLAKE2b-256 |
f815ccd0852bce7241945bd6bf757308539675de48a82523b318b30d4c29a1de
|