Skip to main content

Ghost Protocol Python SDK for gate access and telemetry.

Project description

GhostGate Python SDK

Python SDK for Ghost Protocol gate access and telemetry.

Install

pip install ghostgate-sdk

Quickstart

import os
from ghostgate import GhostGate

sdk = GhostGate(
    api_key=os.environ["GHOST_API_KEY"],
    private_key=os.environ["GHOST_SIGNER_PRIVATE_KEY"],
    base_url=os.getenv("GHOST_GATE_BASE_URL", "https://ghostprotocol.cc"),
    chain_id=8453,
    service_slug="agent-18755",
    credit_cost=1,
    # Optional x402 compatibility mode:
    # auth_mode="x402",
    # x402_scheme="ghost-eip712-credit-v1",
)

result = sdk.connect()
print(result)

Canonical methods

  • connect(...)
  • pulse(...)
  • outcome(...)
  • start_heartbeat(...)

Backward-compatible aliases are also available:

  • send_pulse(...)
  • report_consumer_outcome(...)

Security note

Use signer private keys only in trusted backend/server/CLI environments. Never expose private keys in frontend code.

Project details


Download files

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

Source Distribution

ghostgate_sdk-0.1.1.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

ghostgate_sdk-0.1.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file ghostgate_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: ghostgate_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ghostgate_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 be41b8689485da771c54aaf8aefcff1e3444323edd83439e8b41094d2e6722fb
MD5 4812d30444777117d7cd412e2a984402
BLAKE2b-256 a90c2caf7ed061cd2eedd8b09a47c0a2a038724b41a49ac290ac8298679f828b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghostgate_sdk-0.1.1.tar.gz:

Publisher: publish-python-sdk.yml on Ghost-Protocol-Infrastructure/GHOST_PROTOCOL

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

File details

Details for the file ghostgate_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ghostgate_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ghostgate_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac9a5f593e0a6b7f180b67f65cee8d39809265af0eb086ce362bff08d7d9fb6c
MD5 1406944bac0e37284f144b058390bbbb
BLAKE2b-256 a4ec089582e3626a9c32d1883c803600e0e338559f427a4fcfdddf1c049114f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghostgate_sdk-0.1.1-py3-none-any.whl:

Publisher: publish-python-sdk.yml on Ghost-Protocol-Infrastructure/GHOST_PROTOCOL

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page