Skip to main content
Pre-release

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

storage-kernel-provider-local-filesystem

Local filesystem provider for Storage Kernel.

This provider is useful for local development, tests, CI without cloud infrastructure, and projects that intentionally store files on disk.

Install

uv add storage-kernel-contracts storage-kernel-provider-local-filesystem

Usage

from storage_kernel.contracts import StorageClientOptions, StorageLocation, StoragePath
from storage_kernel.provider_local_filesystem import create_local_filesystem_storage_client

storage = create_local_filesystem_storage_client(
    StorageClientOptions(location=StorageLocation(directory=".storage"))
)

await storage.send_content(StoragePath("docs/readme.txt"), "Hello")

StorageLocation.directory is mandatory and non-empty. Paths are resolved safely inside it, and empty logical paths are rejected.

Provider Options

Option Purpose
public_base_url Enables get_public_url for files served by an external static/file server

Capabilities

  • full binary and text reads/writes
  • read streams and writable upload streams
  • recursive directory reads and deletes
  • same-provider native copy
  • safe path resolution inside StorageLocation.directory
  • public URLs when public_base_url is configured

Signed URLs are not supported by the local filesystem provider and raise a normalized capability error.

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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file storage_kernel_provider_local_filesystem-0.1.0a1.tar.gz.

File metadata

File hashes

Hashes for storage_kernel_provider_local_filesystem-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 96d2a5d485186d47e3a82d417a24d285f8aec0e1e17dbc777148c353892c16d8
MD5 e5bb13f2c3ef73933d99aeaa72ee6dc2
BLAKE2b-256 a54859378fb76f3925aa9fd0d029db4c7df462cb2405e9b275e9c1279ecfe9c7

See more details on using hashes here.

File details

Details for the file storage_kernel_provider_local_filesystem-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for storage_kernel_provider_local_filesystem-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 2630ee74784d143aefccce27d94d089a4f61f5da73e86692d0559063f368361f
MD5 389f2f3c54188161cb5ebd275ebee896
BLAKE2b-256 baa742a7d90ae916d0acfe3aca2ccc4c3a76edad654258ba5ff5ddfb6b9c404b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0a1 This release

2 files

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