Quantum-native SDK for the QbitShield v2 API (PB-QKD, metrics, validation).
pip install qbitshield
from qbitshield import QbitShieldClient client = QbitShieldClient(api_key="qs_your_api_key") # Generate a key res = client.qkd.generate_key(security_level=256) print(res.key_id, res.key[:16] + "...") # Metrics a = client.qkd.get_metrics(hours=24) print(a)
# Health status = client.system.health() print(status['status']) # Enterprise-only (requires enterprise API key) tc = client.enterprise.tier_comparison() print(tc)
import asyncio from qbitshield import QbitShieldClient async def main(): client = QbitShieldClient(api_key="qs_your_api_key") res = await client.qkd.generate_key_async(security_level=256) print(res.key_id) asyncio.run(main())
base_url
(default: https://api.qbitshield.com/api/v2)timeout
(seconds)verify_ssl
(bool)X-API-Key