Skip to main content

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-06
  • draft-wang-jep-profiles-00
  • draft-wang-jep-conformance-00
  • hjs-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

  • JEPEvent
  • CreateEventRequest
  • EventResponse
  • VerifyEventRequest
  • ValidationResult
  • HealthResponse

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

Public Drafts

License

MIT

Validation results expose conformance_class from the API. This field may be absent (empty in Python/Go) with older servers; it is never inferred as proof of conformance. Diagnostic maps preserve code, message, level, and recoverable.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jep_sdk_py-0.6.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jep_sdk_py-0.6.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file jep_sdk_py-0.6.2.tar.gz.

File metadata

  • Download URL: jep_sdk_py-0.6.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for jep_sdk_py-0.6.2.tar.gz
Algorithm Hash digest
SHA256 fd4e118e387c0c475daa3dcfa746304725460e36023fd370832076b761c8e4ef
MD5 2d6c1900dcc8792867d4b2226c4a5777
BLAKE2b-256 554de08b244272bd8a61d47fc6be71b62d364fc14099105e616f6b55914a0a2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for jep_sdk_py-0.6.2.tar.gz:

Publisher: release.yml on hjs-spec/sdk-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jep_sdk_py-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: jep_sdk_py-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for jep_sdk_py-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 187f97f2ff7cc931277996b700eba4047ad4a42475cd0d511a4d0bed9feb5974
MD5 ec80d5afe7dc10caca45ea321781b862
BLAKE2b-256 0efd10d62c1e005bc8d173c9efdef02240b4d5166e3db9f5edcf3ce922d405b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for jep_sdk_py-0.6.2-py3-none-any.whl:

Publisher: release.yml on hjs-spec/sdk-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.6.2 This release

2 files

0.6.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page