Skip to main content

gatecore-sdk

gatecore-sdk is GateCore's Python client SDK. It builds a GateCore interaction request, signs it with an Ed25519 private key, and submits it to a GateCore gateway for governed execution. The SDK contains transport and signing only; GateCore services enforce identity, policy, trust, provenance, pricing, funding, delegation, and settlement.

Install from the GateCore monorepo

python -m pip install -e ./libs/sdk

Usage

from gatecore_sdk import GateCoreClient

client = GateCoreClient("https://api.example.com", bearer_token="...")

req = client.build_request(
    origin_entity_id="agent:example",
    target_type="tool",
    target_id="example-tool",
    operation="tool_call",
    payload={"query": "example"},
)
signed = client.sign_request(req, private_key_pem=open("/secure/path/agent-key.pem").read())
decision = client.execute(signed)

build_request auto-attaches provenance.payload_sha256, matching the provenance engine's legacy hash domain (json.dumps(payload, sort_keys=True), default separators). Hand-rolled clients may use either that form or the compact canonical form (separators=(",", ":")); the provenance service accepts both as of 2026-08-17. sign_request signs the canonical request payload with an Ed25519 private key (PEM, PKCS8). mediate() builds, optionally signs, and posts to /v1/mediate in one call; execute() posts an already-signed request to /v1/execute.

Note on internal module layout

The SDK's signing/transport implementation lives at gatecore_sdk._common (private — not part of the public API; import GateCoreClient from gatecore_sdk directly, as shown above). An earlier working copy of this package exposed the same code as a separate top-level gatecore_common module. That name was never published to PyPI, so this rename has no external-consumer impact; it exists to avoid a published package claiming a second, overly generic top-level import name (gatecore_common) alongside gatecore_sdk.

Release files for gatecore-sdk 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gatecore-sdk 0.1.1
File Size Uploaded
gatecore_sdk-0.1.1.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gatecore-sdk 0.1.1
File Interpreter ABI Platform
gatecore_sdk-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / gatecore_sdk-0.1.1.tar.gz

Download URL gatecore_sdk-0.1.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d1839f0272258695dd9968b53f4d1aa7266b6f0c9fe5bdaad4501c263458d2b4
BLAKE2b-256 checksum
How to use checksums
a93c405e0f9716fb1fed3dbaae0ab6403d3de0ac427e7e399d445835e5dbd9b2
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 Aug 20, 2026.

Transparency log

Release files / gatecore_sdk-0.1.1-py3-none-any.whl

Download URL gatecore_sdk-0.1.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ba9a807663bb4ffecb8b2db6864c2fdb3323e7283700d666bd5e3f7ec9fa375
BLAKE2b-256 checksum
How to use checksums
270664437b3c3e37e93357100536a02e1e0601532a286f5df899c8b0f5c49c44
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 Aug 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release 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