No project description provided
Project description
Introduction
This library allows you to access blobs via Pythonic dict-like interface.
Note that due to the nature of blob, not all dict methods are implemented.
Therefore, it is not a subclass of MutableMapping type.
Supported Blob Dict Methods
Specifically, for a blob dict d, the following methods are available:
len(d)key in dd.get(key, default)d[key]for key in d:d.pop(key, default)del d[key]d[key] = blob
Supported Blob Dict Types
There are different blob dict implementations:
InMemoryBlobDictfor in-memory storage, with optional TTLPathBlobDictfor specified folder on file system as storage, with relative file path as key- It supports local file systems via
PathLib - It also supports cloud file systems (like AWS S3 (and competible Cloudflare R2), Azure Blob Storage, and Google Cloud Storage) via
CloudPathLib
- It supports local file systems via
VulkeyBlobDictfor Vulkey/Redis-based storage, with optional TTL- Specially,
MultiReplicaBlobDictfor utilizing multiple blob dicts underneath- For example, you can use in-memory or local file system blob dict as cache layer, while any cloud file system blob dict as storage
Supported Blob Types
There as many types of blobs with following class hierarchy relationship:
BytesBlobfor any dataStrBlobfor any stringJsonDictBlobfor any JSONdictobjectJsonModelBlobfor any Pydantic model object
AudioBlobfor any SoundFile audio dataImageBlobfor any PIL/Pillow image dataVideoBlobfor any MoviePy video clip data
Ultimately, all data are persisted as bytes.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blob_dict-0.1.1.tar.gz.
File metadata
- Download URL: blob_dict-0.1.1.tar.gz
- Upload date:
- Size: 99.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83ac0ebe478a5e634ed93bd6c34e804646aefa8715ae26c74ddcc3aea745ea5c
|
|
| MD5 |
035ae3b16d23a99345339d61fa5fd756
|
|
| BLAKE2b-256 |
4417ef7094b82dca56a3720325f1b3294dd9cfddff533dda8ddb1df410c21c2a
|
File details
Details for the file blob_dict-0.1.1-py3-none-any.whl.
File metadata
- Download URL: blob_dict-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a5c540fddb3450684788d4334f9bb438b4ea4ec0effdb1a20263bced3071270
|
|
| MD5 |
a60b8013cdd90e43acd94db04c3c9b9f
|
|
| BLAKE2b-256 |
156a8b39c3f9a8d5df070baaeb8fec6c5fd052952aba766e45d4dae9beed1e4f
|