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,
)

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.0.tar.gz (11.4 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.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghostgate_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 11.4 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.0.tar.gz
Algorithm Hash digest
SHA256 d124e5f668e41e8ceb940b18389ee60d34b95b5712b787d350c48a7b3ae493de
MD5 6378cff63b4921dc474256317ab34959
BLAKE2b-256 d3a867ea958bfd4224e81db4f4b6be2a64c85cfb0256bd29ce087d0949952f1b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghostgate_sdk-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: ghostgate_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15a28ed6628a57064de15a30507db34e2cab09eeb5fbfd65c0438b5599aae659
MD5 77e0c63465d29e550dc3fea0057a362e
BLAKE2b-256 7c23830bbdb8482fb325e0b2695956ae61b0a64285971af5addd30eb8d1f41be

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghostgate_sdk-0.1.0-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