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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be41b8689485da771c54aaf8aefcff1e3444323edd83439e8b41094d2e6722fb
|
|
| MD5 |
4812d30444777117d7cd412e2a984402
|
|
| BLAKE2b-256 |
a90c2caf7ed061cd2eedd8b09a47c0a2a038724b41a49ac290ac8298679f828b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ghostgate_sdk-0.1.1.tar.gz -
Subject digest:
be41b8689485da771c54aaf8aefcff1e3444323edd83439e8b41094d2e6722fb - Sigstore transparency entry: 1089906556
- Sigstore integration time:
-
Permalink:
Ghost-Protocol-Infrastructure/GHOST_PROTOCOL@ad1fe759d13cd4f1c45a5fc5f085913f8bd3cdaf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Ghost-Protocol-Infrastructure
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@ad1fe759d13cd4f1c45a5fc5f085913f8bd3cdaf -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac9a5f593e0a6b7f180b67f65cee8d39809265af0eb086ce362bff08d7d9fb6c
|
|
| MD5 |
1406944bac0e37284f144b058390bbbb
|
|
| BLAKE2b-256 |
a4ec089582e3626a9c32d1883c803600e0e338559f427a4fcfdddf1c049114f0
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ghostgate_sdk-0.1.1-py3-none-any.whl -
Subject digest:
ac9a5f593e0a6b7f180b67f65cee8d39809265af0eb086ce362bff08d7d9fb6c - Sigstore transparency entry: 1089906558
- Sigstore integration time:
-
Permalink:
Ghost-Protocol-Infrastructure/GHOST_PROTOCOL@ad1fe759d13cd4f1c45a5fc5f085913f8bd3cdaf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Ghost-Protocol-Infrastructure
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@ad1fe759d13cd4f1c45a5fc5f085913f8bd3cdaf -
Trigger Event:
workflow_dispatch
-
Statement type: