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
Metadata
Release files for storage-kernel-core 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| storage_kernel_core-0.1.0a1.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| storage_kernel_core-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.9 kB
Release files / storage_kernel_core-0.1.0a1.tar.gz
| Download URL | storage_kernel_core-0.1.0a1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49ee36939ca515704b0b321a70ecfc87cf82a6cd12e2a19abbc46957e26cce83
|
|
BLAKE2b-256 checksum How to use checksums |
6e2cf916f5d334e35473e94cdfc281d0097a0d8477d47433f63ab0116977c445
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / storage_kernel_core-0.1.0a1-py3-none-any.whl
| Download URL | storage_kernel_core-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e769a0add143cc95e78d41b1706bbefadfe37af6beb33dd812007ec0e3da092
|
|
BLAKE2b-256 checksum How to use checksums |
01f9f71755cfedc709d0257b1e77c517be6a1ea876514cad08f17bd2886e2da2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|