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

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.2
File Size Uploaded
gatecore_sdk-0.1.2.tar.gz 8.3 kB Details

Built distribution (wheel)

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

Total release size: 17.5 kB

Release files / gatecore_sdk-0.1.2.tar.gz

Download URL gatecore_sdk-0.1.2.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f31941e89d43f4b565b753d5b75d4c1db36f4e4269e211da8648be6ce55ec575
BLAKE2b-256 checksum
How to use checksums
92482f2314a16bb8669427d9c6ab2d5c2830398015c46606a6b46ae822dc8d37
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 Sep 2, 2026.

Transparency log

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

Download URL gatecore_sdk-0.1.2-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
597c1281c3a6306528528f253b6022b3aa9a53a17248a10541ff0845ad6428e8
BLAKE2b-256 checksum
How to use checksums
9092f2fa373bd2eec64ed68105ebd354d0dfebba907608b3450e5fd340307c06
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 Sep 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

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