CommandLayer Python SDK
Official Python SDK for CommandLayer Commons v1.1.0.
The Python package mirrors the TypeScript SDK's protocol model:
- client methods return
{ "receipt": ..., "runtime_metadata": ... }, - the signed
receiptis the canonical verification payload, runtime_metadatais optional execution context, and- verification can use an explicit Ed25519 key or ENS discovery.
Install
pip install commandlayer
Supported Python versions: 3.10+.
Quick start
from commandlayer import create_client, verify_receipt
client = create_client(actor="docs-example")
response = client.summarize(
content="CommandLayer makes agent execution verifiable.",
style="bullet_points",
)
print(response["receipt"]["result"]["summary"])
print(response["receipt"]["metadata"]["receipt_id"])
print(response.get("runtime_metadata", {}).get("duration_ms"))
verification = verify_receipt(
response["receipt"],
public_key="ed25519:BASE64_PUBLIC_KEY",
)
print(verification["ok"])
Verification
result = verify_receipt(
response["receipt"],
ens={
"name": "summarizeagent.eth",
"rpcUrl": "https://mainnet.infura.io/v3/YOUR_KEY",
},
)
Development
cd python-sdk
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
ruff check .
mypy commandlayer
pytest
Metadata
Release files for commandlayer 1.1.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 | Provenance | Actions |
|---|---|---|---|---|
| commandlayer-1.1.0.tar.gz | 13.3 kB | Without provenance | Details for commandlayer-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| commandlayer-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for commandlayer-1.1.0-py3-none-any.whl |
Total release size: 23.1 kB
Release files / commandlayer-1.1.0.tar.gz
| Download URL | commandlayer-1.1.0.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08b9557042cebbc4d03b1143f6b64a24fda08fa4b15de873b648126925be6bfe
|
|
BLAKE2b-256 checksum How to use checksums |
3eb2b092fdf4fbe606bc441f6dc9b20b49dc77eedb4fb1d3b91de429fbed43bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / commandlayer-1.1.0-py3-none-any.whl
| Download URL | commandlayer-1.1.0-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f844798cc7d94bf375a3ee7d7895214105cf26f8c661c758389a8bbb6ebcb627
|
|
BLAKE2b-256 checksum How to use checksums |
6a67876e132a21e3d358297a37541cec27dc717758c072a83b993b5af6f81d46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for commandlayer 1.1.0
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.