QbitShield Python SDK for quantum-enhanced cryptography
Project description
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
pip install qbitshield
Quickstart
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
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 endpointtimeout(seconds)verify_ssl(bool)
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qbitshield-2.0.2.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qbitshield-2.0.2.tar.gz.
File metadata
- Download URL: qbitshield-2.0.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b6c65bcf5b55089d06cbddcf856e6eef43592900e4013fa1d9fdd3ea423658d
|
|
| MD5 |
ceaacd1f424d119cd3215ac682785fb0
|
|
| BLAKE2b-256 |
ec6df77365995591deb9711eb7bc4f342ff0e43ac32688701f0c2d24c4063b2e
|
File details
Details for the file qbitshield-2.0.2-py3-none-any.whl.
File metadata
- Download URL: qbitshield-2.0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e33f550a7606a0dccdfa130c3d75250ca09f83666c78c7216462c1e1dd7f040d
|
|
| MD5 |
737a99a7dfec32e7bf14fd0c78bf9c08
|
|
| BLAKE2b-256 |
917cce445e7e5b2ea569e720eb894063d356ba207c7d843d7751573115ac8f26
|