chp-adapter-filesystem
Governed file operations as CHP capabilities — read, write, list, and search, scoped to an allowlist of roots, with every call admission-gated and recorded as signed, replayable evidence.
pip install chp-adapter-filesystem
Compose it onto any CHP host, or onto chp-server:
from chp_server import CapabilityServer
from chp_adapter_filesystem import FilesystemAdapter, FilesystemConfig
app = CapabilityServer("my-host")
app.compose(FilesystemAdapter(FilesystemConfig(
allowed_roots=["./data"]))) # nothing outside these roots is reachable
app.run(port=8800)
Capabilities
chp.adapters.filesystem.read_file,write_file,list_directory,glob_files,grep,extract— each denied outsideallowed_roots, each replayable at/replay/{correlation}.
A path outside the allowlist is denied by the pipeline before the handler runs — the same governance your own capabilities get, applied to the filesystem.
Part of the Capability Host Protocol — one governed implementation of a capability, consumed everywhere. Apache-2.0.
Metadata
Release files for chp-adapter-filesystem 0.53.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chp_adapter_filesystem-0.53.0.tar.gz | 15.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chp_adapter_filesystem-0.53.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.1 kB
Release files / chp_adapter_filesystem-0.53.0.tar.gz
| Download URL | chp_adapter_filesystem-0.53.0.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be9368c110f4694f6b5fd07010e0286ebd64bc2d7d730bf85dcd1741e97e9f07
|
|
BLAKE2b-256 checksum How to use checksums |
21336fe1241bd8142f97ec76a5e2d473898a8289f5cdcfec62bdcdc8761e4f30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.7
|
Release files / chp_adapter_filesystem-0.53.0-py3-none-any.whl
| Download URL | chp_adapter_filesystem-0.53.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76bfe05542efbd4821786b3f2235124395f1d17fc001fce73ba84036dbb225ce
|
|
BLAKE2b-256 checksum How to use checksums |
2e5e2f569d089c38196a4cd6dd66f44f82c0da39a8f58f3df28e2d6a6aefdf66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.7
|