Python
Python 3.8+. Depends on requests and cryptography.
Install
pip install geckoguard
Quick start
from geckoguard import GeckoGuardClient, LicenseDeniedError
client = GeckoGuardClient("gg_live_...", "your-product-uuid")
try:
auth = client.authorize("LICENSE-KEY-123")
print("Allowed:", auth["allow"])
except LicenseDeniedError as e:
print("Denied:", e.response["reasonCode"])
raise SystemExit(1)
Configuration
GeckoGuardClient(
api_key="gg_live_...",
product_id="your-product-uuid",
base_url="https://api.geckoguard.net",
signing_secret=None, # enable HMAC request signing
timeout=15,
)
For the full method list and endpoint reference, see the API Reference.