Metadata-Version: 2.4
Name: qbitshield
Version: 2.0.2
Summary: QbitShield Python SDK for quantum-enhanced cryptography
Author-email: QbitShield Team <sdk@qbitshield.com>
License: MIT
Project-URL: Homepage, https://github.com/Sensorman/qbitshield-v2
Project-URL: Documentation, https://qbitshield.com/docs
Project-URL: Repository, https://github.com/Sensorman/qbitshield-v2
Project-URL: Issues, https://github.com/Sensorman/qbitshield-v2/issues
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.28.0
Requires-Dist: numpy>=1.21.0
Requires-Dist: cryptography>=3.4.0
Requires-Dist: typing-extensions>=4.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: black>=22.0.0; extra == "dev"
Requires-Dist: isort>=5.10.0; extra == "dev"
Requires-Dist: flake8>=4.0.0; extra == "dev"
Requires-Dist: mypy>=0.950; extra == "dev"

# QbitShield Python SDK (v2)

Quantum-native SDK for the QbitShield v2 API.

- Default base URL: `https://api.qbitshield.com/api/v2`
- Auth header: `X-API-Key: <your key>`

## Install

```bash
pip install qbitshield
```

## Quickstart

```python
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] + "...")

# Validate a key (if you captured qasm/hash_proof)
# val = client.qkd.validate_key(key=res.key, qasm=res.qasm, hash_proof=res.hash_proof)

# Metrics
m = client.qkd.get_metrics(hours=24)
print(m)
```

## Async usage

```python
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())
```

## Configuration
- `base_url` (optional): override API endpoint
- `timeout` (seconds)
- `verify_ssl` (bool)

## License
MIT
