Toolframe local object storage
object-store-local stores private binary files for Toolframe business plugins.
It implements toolframe.object_store v1, so plugins can use local disk or an
S3-compatible provider through the same RuntimeContext.object_store() client.
Quick start
Use Toolframe Core 0.7.0 and SDK 0.4.0. With the application running:
toolframe --home APP plugin add pypi:toolframe-object-store-local==0.2.1 --enable
For a local source-development example with a Dashboard page, see Image Gallery.
Business plugins declare Requirement(service="toolframe.object_store") under
alias objects. Inside an admitted handler:
objects = self.context.object_store()
metadata = await objects.put(
"images/example.png", image_bytes, content_type="image/png"
)
image_bytes = await objects.get(metadata["key"])
page = await objects.list(prefix="images/", limit=20)
await objects.delete(metadata["key"])
Core provides data/objects/object-store-local/. Objects are partitioned by the
application ID and owning plugin, and keys are hashed into filenames. A single
file holds metadata and content; publication uses fsync and atomic replacement.
No filesystem path is accepted from business callers. Symlink object files and
namespace directories are refused. Keep the application ID stable when restoring
a backup. Back up this directory along with the application configuration.
Limits and behavior
- At most 64 MiB per object; optional
max_object_byteslowers the limit. - Transfers use the SDK's 256 KiB chunk protocol with size and SHA-256 validation.
- Temporary uploads expire after ten minutes and do not survive worker restart.
- Completed objects survive reload, disable and uninstall. Delete is explicit.
- One enabled object-store provider per application, independent of SQL storage.
- Replacement is last-writer-wins; there is no transaction with SQL records.
- Listings page by key, return at most 100 items, and scan local object headers. This backend is intended for modest local collections, not large remote stores.
- No public URL or file-serving route is created. Business services own access checks; Dashboard renders bytes through the usual page/service bridge.
Switching providers does not copy objects automatically. Plugin workers are
trusted code, not an operating-system sandbox. The atomic file format assumes a
local filesystem supporting fsync and atomic rename; network filesystems are
not verified.
Development
For sibling source checkouts, with the matching SDK changes checked out:
uv sync --group dev
uv run pytest -q
uv run ruff check src tests
uv build --no-sources
Unit tests exercise persistence, isolation, pagination, failed publication, checksums and path/symlink rejection. The package requires Python 3.14 or later.
Licensed under Apache-2.0; see LICENSE.
For release validation and Trusted Publisher setup, see releasing.
For development hooks and contribution rules, see Contributing.
Plugin dependencies allow compatible SDK 0.x updates from the declared minimum. See the SDK compatibility policy for API guarantees and minimum/latest verification.
Metadata
Release files for toolframe-object-store-local 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toolframe_object_store_local-0.2.1.tar.gz | 34.9 kB | With provenance | Details for toolframe_object_store_local-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toolframe_object_store_local-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for toolframe_object_store_local-0.2.1-py3-none-any.whl |
Total release size: 44.7 kB
Release files / toolframe_object_store_local-0.2.1.tar.gz
| Download URL | toolframe_object_store_local-0.2.1.tar.gz |
|---|---|
| Size | 34.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
579f9671f2d639d7d7fd0ff7ddeb43584613e783f10da8afd821ce4ea1152887
|
|
BLAKE2b-256 checksum How to use checksums |
f39c240b216cf78ec8d54561c451789dbd1a2fc61169a2ec6ba2fe410ec00b54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / toolframe_object_store_local-0.2.1-py3-none-any.whl
| Download URL | toolframe_object_store_local-0.2.1-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67af87939f0a078aed83d2bb308b085bc9fe4fdc797ff04326828ce87db2d24d
|
|
BLAKE2b-256 checksum How to use checksums |
6ffc79130263b42eb60546b9802dbc2dcd615d16af84d7b3808149a9a153f418
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for toolframe-object-store-local 0.2.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for toolframe_object_store_local-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA 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.