Python SDK
Verify brands, check ops feeds, and scan MCP servers from Python.
Installation
bluefox-edge 0.0.4 is on PyPI as the offline receipt checker only — the API client this page documents arrives at 0.6+. Until then, the REST API works with zero dependencies: the quickstart curl examples cover the same calls this SDK wraps.
Initialization
Unreleased: the client this example imports is not on the registry yet, so the code below does not run today. It is documented ahead of its publish; the curl examples on the quickstart work now.
# UNRELEASED: the bluefox_edge API client is not on PyPI yet (bluefox-edge 0.0.4 is the offline receipt checker only; the client arrives at 0.6+). This import raises ImportError today — use the curl examples on /docs/quickstart.
from bluefox_edge import BlueFoxClient
client = BlueFoxClient(api_key="YOUR_KEY")Brand Verification
Unreleased: the client this example imports is not on the registry yet, so the code below does not run today. It is documented ahead of its publish; the curl examples on the quickstart work now.
# UNRELEASED: the bluefox_edge API client is not on PyPI yet (bluefox-edge 0.0.4 is the offline receipt checker only; the client arrives at 0.6+). This import raises ImportError today — use the curl examples on /docs/quickstart.
result = client.check_brand("nike", ["Free returns for Nike Members"])
print(result.verdict) # first claim's verdict, e.g. "accurate"
print(result.confidence) # first claim's confidence, e.g. 0.95
for claim in result.results:
print(claim.verdict, claim.confidence, claim.evidence)Ops Feeds & MCP Scanner
The ops feeds and MCP scanner endpoints are not yet wrapped by the Python SDK — call them over REST with the same key:
curl -H "Authorization: Bearer YOUR_KEY" \
"https://api.bluefoxedge.ai/v1/ops/security_ops?limit=5"Error Handling
Unreleased: the client this example imports is not on the registry yet, so the code below does not run today. It is documented ahead of its publish; the curl examples on the quickstart work now.
# UNRELEASED: the bluefox_edge API client is not on PyPI yet (bluefox-edge 0.0.4 is the offline receipt checker only; the client arrives at 0.6+). This import raises ImportError today — use the curl examples on /docs/quickstart.
from bluefox_edge import BlueFoxClient, BlueFoxError, BlueFoxAPIError
client = BlueFoxClient(api_key="YOUR_KEY")
try:
result = client.check_brand("nike", ["Free returns for Nike Members"])
except BlueFoxAPIError as e:
# e.status_code / e.code / e.message — 429 means a rate limit was hit
print(f"API error: {e.status_code} — {e.message}")
except BlueFoxError as e:
print(f"Client error: {e}")