CasperProver Python SDK
Synchronous Python client and cp CLI for the CasperProver API.
Install
pip install casperprover-sdk
# or from a local checkout:
pip install -e sdk/python
Library
from casperprover_sdk import ProverClient
client = ProverClient("http://localhost:9090")
print(client.health())
proof = client.submit(
agent_id="agent-1",
input_data="hello",
output_data="world",
model="model-v1",
use_case="inference",
)
print(proof["id"])
assert client.verify(proof["id"])
CLI
Installed entry points: cprover (short) and casperprover (long).
We avoid the name cp because it collides with the built-in Unix copy command.
export CP_BASE_URL=http://localhost:9090 # optional override
cprover health
cprover proofs list
cprover proofs get <proof_id>
cprover proofs verify <proof_id>
cprover proofs submit \
--agent-id agent-1 \
--input "hello" --output "world" --model "model-v1" \
--use-case inference
cprover version
Exit codes: 0 success, 1 user error, 2 API/HTTP error (or verify → invalid).
Full docs
See docs/CLI.md in the repo root for complete reference and demo transcripts.
Metadata
Release files for casperprover 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| casperprover-0.1.2.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| casperprover-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / casperprover-0.1.2.tar.gz
| Download URL | casperprover-0.1.2.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
122bc0fd575b2c1bc4757b1372b476aa7f3af9e023019865fa7f358b793d6417
|
|
BLAKE2b-256 checksum How to use checksums |
d822f6ff3679e5ad1c2b84c404542d3b54167752edc1c244c544fbe75ff16632
|
| 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 Jul 29, 2026.
Transparency logRelease files / casperprover-0.1.2-py3-none-any.whl
| Download URL | casperprover-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a08d332261d8e81e4b020aeb36f129cc669706d43a1a409538fcf52664e42f50
|
|
BLAKE2b-256 checksum How to use checksums |
053d15652afc9de26d12890116d1846a79a6a814c321e532152064ef8fce7738
|
| 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 Jul 29, 2026.
Transparency log