Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

storage-kernel-contracts

Provider-agnostic contracts for Storage Kernel.

This package owns the portable public API: storage paths, locations, operation options, async client protocols, provider aliases, shared helpers and normalized errors.

Install

uv add storage-kernel-contracts

Usage

from storage_kernel.contracts import StorageLocation

location = StorageLocation(bucket="files", prefix="production")
path = "documents/readme.md"

Provider packages depend on this package. This package does not import provider SDKs.

Directory reads default to recursive=True and include_directories=True. StorageClientClass describes provider classes accepted by the generic factory. STORAGE_PROVIDER_ALIASES and STORAGE_PROVIDER_TARGET_BY_NAME are the canonical built-in registries. StorageStreamSource is what a streaming write accepts: text, bytes or an async byte iterable.

Observability

Clients write to StorageClientOptions.logger and nowhere else. Without one, or without the method for a line's level, the line is dropped, so a client with no logger is silent. logger=logging.getLogger("my-app") is a drop-in: a log line is one descriptive string, with no identifier and no context argument.

ObservedStorageClient applies the common behavior once at the public client boundary. Each line says what happened and where — Reading invoices/2026.pdf from aws-s3 bucket reports — and the two languages write the same sentences. Provider SDK paths and location metadata are not logged by this boundary.

decorate_client(client, options, provider) is the direct Python equivalent of the JavaScript client decorator. It is idempotent, preserves provider extension attributes, and lets the generic factory apply the same behavior to injected provider classes without requiring inheritance.

Metadata

Release files for storage-kernel-contracts 0.1.0a4

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-contracts 0.1.0a4
File Size Uploaded Provenance
storage_kernel_contracts-0.1.0a4.tar.gz 8.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 19.9 kB

Release files / storage_kernel_contracts-0.1.0a4.tar.gz

Download URL storage_kernel_contracts-0.1.0a4.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4b556bd9638379ac5c2481ba617588f7bed1784005177532661d32223762b1fb
BLAKE2b-256 checksum
How to use checksums
09a1757512b93d93535d23f566a2378e996660d247546c47aeb0483158a7d858
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_contracts-0.1.0a4-py3-none-any.whl

Download URL storage_kernel_contracts-0.1.0a4-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7523f713f8c9f075554ffbfb81e51a69eaa92dc1d210c1526a9a356e7a1068f8
BLAKE2b-256 checksum
How to use checksums
e891a6876f90097fe718f07da3b3a36ea776199263f6c2a9cbf19d3976afac9f
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-contracts 0.1.0a4

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