chp-adapter-http
A governed HTTP client as CHP capabilities — every outbound request is admission-gated, origin-allowlisted, and recorded as signed, replayable evidence.
pip install chp-adapter-http
Compose it onto any CHP host, or onto chp-server:
from chp_server import CapabilityServer
from chp_adapter_http import HttpAdapter, HttpConfig
app = CapabilityServer("my-host")
app.compose(HttpAdapter(HttpConfig(
allowed_origins=["https://api.example.com"]))) # sandbox to explicit scheme://host[:port]
app.run(port=8800)
Capabilities
chp.adapters.http.request— a governed HTTP request (method, url, headers, body).chp.adapters.http.stream— a streamed response.
Requests are constrained to allowed_origins. Header values support ${secret:KEY} and ${ENV}
placeholders resolved at call time — so an auth secret never lives in config or evidence — and
request header values and response bodies are kept out of evidence by default.
Part of the Capability Host Protocol — one governed implementation of a capability, consumed everywhere. Apache-2.0.
Metadata
Release files for chp-adapter-http 0.54.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_http-0.54.0.tar.gz | 15.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chp_adapter_http-0.54.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.8 kB
Release files / chp_adapter_http-0.54.0.tar.gz
| Download URL | chp_adapter_http-0.54.0.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a90c7503867df915e66bdf3836d6ae2e398c6eeb02e4f3958e921d7eda3dc922
|
|
BLAKE2b-256 checksum How to use checksums |
ecdefe1af8789199450d3a8c2c828c4f4f7ddf89af0bed89a291a1d228f819ed
|
| 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_http-0.54.0-py3-none-any.whl
| Download URL | chp_adapter_http-0.54.0-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4d485d5bfc0906b34fcb47300af524a833c064a6f65e2b74a695b935a52814d
|
|
BLAKE2b-256 checksum How to use checksums |
80366c3c2c757bbbbef2df8fa474ce84a31f51a73092e31312aafeca4aa69376
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.7
|