True quantum randomness from Origin Wukong — one line of code.
Project description
quantumrand-sdk
True quantum randomness from Origin Wukong — one line of code.
Installation
pip install quantumrand-sdk
Quick Start
from quantumrand import QuantumRandClient
client = QuantumRandClient(api_key="qr_your_key_here")
# Generate random bits
bits = client.random_bits(128)
# Generate a random integer
result = client.random_int(1, 100)
# Generate random bytes
result = client.random_bytes(32)
# Check usage
usage = client.usage()
API Reference
QuantumRandClient(api_key, base_url="https://api.quantumrand.dev")
random_bits(num_bits=128)— Generate quantum random bitsrandom_int(min_val=0, max_val=255)— Generate a random integer in rangerandom_bytes(num_bytes=16)— Generate random bytes (hex-encoded)usage()— Get API usage statistics
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quantumrand_sdk-1.0.0.tar.gz
(2.7 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 quantumrand_sdk-1.0.0.tar.gz.
File metadata
- Download URL: quantumrand_sdk-1.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2388f224860319f2711eff89dfd00fc48469795399e935eca9417cdb58f053c2
|
|
| MD5 |
8cb0c4033a73597ecb939abe100bb02c
|
|
| BLAKE2b-256 |
376313b6b1b6dec9819fd387b77e89b7dfcead2ddbe3688198e712927fa3db69
|
File details
Details for the file quantumrand_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: quantumrand_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e05953c58a260f41c58350540950140e028728feb102b88e697ed0c42742a2bd
|
|
| MD5 |
f23ef74cf3af220210cd9b6fc949be92
|
|
| BLAKE2b-256 |
b8fa679a2742f2ef21e831dc9d25a3b95009d123a00fc73fbd3b8756aa4509ec
|