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

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.1.tar.gz (6.7 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.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for jep_sdk_py-0.6.1.tar.gz
Algorithm Hash digest
SHA256 cabd2b37ac08103f58c4cd456a5171047b72b9c9ed526337ad7cb62705edf391
MD5 437a862d057de6e39cab38f7ef4f6202
BLAKE2b-256 fdfb573bc94854a0050dfb7006089a18ff41f194c0b52f015bd79a3663bf4159

See more details on using hashes here.

Provenance

The following attestation bundles were made for jep_sdk_py-0.6.1.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.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

Hashes for jep_sdk_py-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f70e473328aa0f47ccf10168d36cdcd38a68895a309e372d266a7b37062df73
MD5 1a2a594d80fa1f0259652034542e8f51
BLAKE2b-256 b726151b3fbf2be5b930652a02b1920445206605c3d20abe8163ae5263c4834a

See more details on using hashes here.

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

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

Release history Release notifications | RSS feed

0.6.2

2 files

This release

0.6.1 This release

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