JEP Python SDK v0.6
Python SDK for the JEP v0.6 API seed.
This SDK targets the current JEP API shape:
POST /events/create
POST /events/verify
GET /health
It is aligned with:
draft-wang-jep-judgment-event-protocol-06draft-wang-jep-profiles-00draft-wang-jep-conformance-00hjs-spec/jep-api
Status
Experimental implementation seed.
This SDK does not define new JEP-Core semantics and does not determine legal liability, factual truth, regulatory compliance, or complete-log availability.
Installation
pip install jep-sdk-py
For local development:
pip install -e ".[dev]"
Quick Start
from jep import JEPClient, CreateEventRequest, Verb
client = JEPClient(base_url="http://127.0.0.1:8000")
created = client.create_event(CreateEventRequest(
verb=Verb.JUDGMENT.value,
who="did:example:agent-789",
what={"claim": "approve"},
))
print(created.event_hash)
verified = client.verify_event({
"event": created.event.to_dict(),
"mode": "archival",
})
print(verified.valid)
Core Types
JEPEventCreateEventRequestEventResponseVerifyEventRequestValidationResultHealthResponse
Supported verbs:
Verb.JUDGMENT
Verb.DELEGATION
Verb.TERMINATION
Verb.VERIFICATION
API
Create event
resp = client.create_event(CreateEventRequest(
verb=Verb.JUDGMENT.value,
who="did:example:agent",
what="sha256:...",
))
Verify event
result = client.verify_event({
"event": resp.event.to_dict(),
"mode": "archival",
})
Convenience helpers
client.judgment("did:example:agent", what)
client.delegation("did:example:agent", what)
client.termination("did:example:agent", what, ref="sha256:parent")
client.verification("did:example:agent", what, ref="sha256:parent")
Health
health = client.health()
Testing
pytest -q
Tests use a local in-process HTTP server and do not require a live JEP API.
Related Repositories
- JEP v0.6: https://github.com/hjs-spec/jep-v06
- JEP API v0.6: https://github.com/hjs-spec/jep-api
- HJS v0.5: https://github.com/hjs-spec/hjs-05
- JAC v0.5: https://github.com/hjs-spec/jac-agent-02
Public Drafts
- JEP-Core: https://datatracker.ietf.org/doc/draft-wang-jep-judgment-event-protocol/
- JEP-Profiles: https://datatracker.ietf.org/doc/draft-wang-jep-profiles/
- JEP-Conformance: https://datatracker.ietf.org/doc/draft-wang-jep-conformance/
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jep_sdk_py-0.6.1.tar.gz.
File metadata
- Download URL: jep_sdk_py-0.6.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cabd2b37ac08103f58c4cd456a5171047b72b9c9ed526337ad7cb62705edf391
|
|
| MD5 |
437a862d057de6e39cab38f7ef4f6202
|
|
| BLAKE2b-256 |
fdfb573bc94854a0050dfb7006089a18ff41f194c0b52f015bd79a3663bf4159
|
Provenance
The following attestation bundles were made for jep_sdk_py-0.6.1.tar.gz:
Publisher:
release.yml on hjs-spec/sdk-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jep_sdk_py-0.6.1.tar.gz -
Subject digest:
cabd2b37ac08103f58c4cd456a5171047b72b9c9ed526337ad7cb62705edf391 - Sigstore transparency entry: 2813823169
- Sigstore integration time:
-
Permalink:
hjs-spec/sdk-py@8a020959e8b77caf2d0227dd7c5963b54941d6a2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/hjs-spec
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8a020959e8b77caf2d0227dd7c5963b54941d6a2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file jep_sdk_py-0.6.1-py3-none-any.whl.
File metadata
- Download URL: jep_sdk_py-0.6.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f70e473328aa0f47ccf10168d36cdcd38a68895a309e372d266a7b37062df73
|
|
| MD5 |
1a2a594d80fa1f0259652034542e8f51
|
|
| BLAKE2b-256 |
b726151b3fbf2be5b930652a02b1920445206605c3d20abe8163ae5263c4834a
|
Provenance
The following attestation bundles were made for jep_sdk_py-0.6.1-py3-none-any.whl:
Publisher:
release.yml on hjs-spec/sdk-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jep_sdk_py-0.6.1-py3-none-any.whl -
Subject digest:
2f70e473328aa0f47ccf10168d36cdcd38a68895a309e372d266a7b37062df73 - Sigstore transparency entry: 2813823182
- Sigstore integration time:
-
Permalink:
hjs-spec/sdk-py@8a020959e8b77caf2d0227dd7c5963b54941d6a2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/hjs-spec
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8a020959e8b77caf2d0227dd7c5963b54941d6a2 -
Trigger Event:
push
-
Statement type: