Python SDK
Official Python client library for CyberAPI.
Installation
Currently, the SDK is available as a single file drop-in.
- Download
cyberapi.py - Place it in your project directory
- Install dependencies:
bash
pip install requestsUsage
python
from cyberapi import CyberAPI
# Initialize
client = CyberAPI(api_key="your_api_key")
# Check a domain
result = client.check(domain="example.com")
if result["risk_score"] > 80:
print("Dangerous domain!")
else:
print("Safe domain")Features
- Async Support: Native
asynciocompatibility - Type Hints: Full PEP 484 support
- Retries: Automatic retry on network failure
