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 details)
Built Distribution
File details
Details for the file kv_azure_blob-0.1.0.tar.gz
.
File metadata
- Download URL: kv_azure_blob-0.1.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c6d544664fa7abd8099b38ae88c53c675a53cf10212c838246ccdfe8b60580c5
|
|
MD5 |
5d0c3b75fe3d383947cf8ead0fb79cc8
|
|
BLAKE2b-256 |
f3c2c791bb6205f0f638a712cd84c3329f511d7cef8b80322b790dfdd45c7bf5
|
File details
Details for the file kv_azure_blob-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: kv_azure_blob-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.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 |
f794b0639139ed4304cc59a888294ab806865a889e38d429d26529535f410d3b
|
|
MD5 |
7b79b4c97ee219152b1615a50f13ce19
|
|
BLAKE2b-256 |
18075f44715a373ab6bb73aa4219c3a57c497d9284ec27abb53e405d9c24dc98
|