This release is a pre-release and may not be stable for production use.
storage-kernel-factory
Dynamic provider factory for Storage Kernel.
The factory normalizes provider aliases and imports provider packages only when a client is requested. It does not force every provider to be installed by applications.
Install
uv add storage-kernel-factory storage-kernel-provider-local-filesystem
Usage
from storage_kernel.contracts import StorageLocation
from storage_kernel.factory import CreateStorageClientConfig, create_storage_client
storage = await create_storage_client(
CreateStorageClientConfig(
provider_name="filesystem",
location=StorageLocation(directory=".storage"),
)
)
provider_name is mandatory. provider_class optionally accepts a class that
follows StorageClientClass; instances are rejected. The created client always
receives the shared observability and error-normalization behavior, even when
the custom class does not inherit a kernel base class.
Use extras such as storage-kernel-factory[aws-s3] when published packages are
available.
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 storage_kernel_factory-0.1.0a1.tar.gz.
File metadata
- Download URL: storage_kernel_factory-0.1.0a1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a12dfd9d0a3928c43c4b77fa152e2f7e0ef30ac3969159e876eed4b8a458654
|
|
| MD5 |
43484d4acb2fbda8d23feac3fafdd482
|
|
| BLAKE2b-256 |
c7e3962af446820f9be8a3722fbf1188b08749f27f2087a2af539ffcc49a4970
|
File details
Details for the file storage_kernel_factory-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: storage_kernel_factory-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e392fda37bcda2dd605882d8db88e72d654eaf02dc91cdb437ca8d8430bc76a4
|
|
| MD5 |
36164665e67930737f96d6258dad1ab5
|
|
| BLAKE2b-256 |
02e21d1adc136dab971ed9b812d99e5807435d7008774648ede4ed6213ed282e
|