Skip to main content
Pre-release

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_provider_error

key = normalize_storage_path("./reports//2026.csv")

try:
    read_object(key)
except Exception as error:
    raise normalize_provider_error(error, "aws-s3", key) from error

What it provides

Module Responsibility
options client option defaults, location and overwrite resolution
path portable path normalization, traversal rejection, path and URL joins
text text encoding and line handling
content_type content type inferred from the path extension
directory recursive and non-recursive directory entry selection
streams the readable stream providers return, the shared send_stream, stream collection, buffered upload stream
logging one log line written to the logger's method for its level
error_normalization provider failures mapped onto the kernel error contract
client_behavior client decoration with observability and error normalization

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.0a7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for storage-kernel-core 0.1.0a7
File Size Uploaded Provenance
storage_kernel_core-0.1.0a7.tar.gz 13.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for storage-kernel-core 0.1.0a7
File Interpreter ABI Platform
storage_kernel_core-0.1.0a7-py3-none-any.whl Python 3 none any Details

Total release size: 30.3 kB

Release files / storage_kernel_core-0.1.0a7.tar.gz

Download URL storage_kernel_core-0.1.0a7.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2ea2dee52e20ca5b0368aeda69520d91d55fb8456f0c7c7c67525d5e9c80ce04
BLAKE2b-256 checksum
How to use checksums
0bdde05af80d4e060b4052a8e207e5291e6595def86f4e9df6e45babd54a7038
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.0a7-py3-none-any.whl

Download URL storage_kernel_core-0.1.0a7-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30d2376828c41cbbc9a259f5360ffb9001d46f76229e6608a591d6999b709d45
BLAKE2b-256 checksum
How to use checksums
a2c98b989ac1b6e57608e8383137cc9514de195ed6e3cd83a4098f10192a68ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for storage-kernel-core 0.1.0a7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page