This release is a pre-release and may not be stable for production use.
storage-kernel-core
Shared Storage Kernel implementation: portable path handling, directory selection, stream helpers, observability and provider error normalization.
This distribution belongs to the Storage Kernel package family. It sits
between storage-kernel-contracts and the provider distributions.
Install it when you build a provider or reuse the kernel helpers directly. If you
only need to type a storage client or catch storage errors, depend on
storage-kernel-contracts alone.
Install
pip install storage-kernel-core storage-kernel-contracts
Usage
from storage_kernel.contracts import StoragePathNotFoundError
from storage_kernel.core import normalize_storage_path, normalize_storage_provider_error
key = normalize_storage_path("./reports//2026.csv")
try:
read_object(key)
except Exception as error:
raise normalize_storage_provider_error(error, "aws-s3", key) from error
What it provides
| Module | Responsibility |
|---|---|
utils |
path normalization and joins, directory selection, event emission |
streams |
buffered writable stream used when multipart upload is disabled |
observability |
client decoration with lifecycle events and error normalization |
error_normalization |
provider failures mapped onto the kernel error contract |
Error normalization
Not-found and permission failures are normalized, because a caller must branch on
them without knowing which provider is behind the contract. Every other failure
keeps the provider message and gains provider, path and code, with the
original exception preserved in cause and in the exception chain.
An exception that already is a StorageKernelError keeps its class and instance.
Only the context it is missing is filled in.
License
MIT
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_core-0.1.0a1.tar.gz.
File metadata
- Download URL: storage_kernel_core-0.1.0a1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49ee36939ca515704b0b321a70ecfc87cf82a6cd12e2a19abbc46957e26cce83
|
|
| MD5 |
373fffeda663f382f7c71dd3f6a43f0e
|
|
| BLAKE2b-256 |
6e2cf916f5d334e35473e94cdfc281d0097a0d8477d47433f63ab0116977c445
|
File details
Details for the file storage_kernel_core-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: storage_kernel_core-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 10.2 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 |
0e769a0add143cc95e78d41b1706bbefadfe37af6beb33dd812007ec0e3da092
|
|
| MD5 |
900975a5ddeb55ccd8747b0df165ae8f
|
|
| BLAKE2b-256 |
01f9f71755cfedc709d0257b1e77c517be6a1ea876514cad08f17bd2886e2da2
|