r4sdk
r4sdk is a lightweight Python client for the Re4ctoR high-entropy randomness API.
Supports secure random byte fetching via HTTP with API Key authentication.
Ideal for cryptographic, simulation, and research use.
🚀 Features
- 🔒 API key authentication
- ⚡ Fast local access (
localhostby default) - 📦 Clean Python interface
📦 Installation
Install from PyPI:
pip install r4sdk
Or install locally:
pip install .
🧪 Usage
from r4sdk import R4Client
client = R4Client(api_key="demo", host="http://localhost:8082")
print(client.get_random(16).hex())
🔧 CLI Quick Test
echo 'from r4sdk import R4Client; c=R4Client(api_key="demo", host="http://localhost:8082"); print(c.get_random(16).hex())' | python3
📁 Files
r4sdk/__init__.py — core SDK client
test_sdk.py — standalone test
setup.py — packaging
🛡 License
MIT © Pavlo Tvardovskyi
Metadata
Release files for r4sdk 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| r4sdk-0.1.5.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| r4sdk-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / r4sdk-0.1.5.tar.gz
| Download URL | r4sdk-0.1.5.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6b25d95c77e47ed93c84173531d35ede9b258e66ced9bd0bbc035cc718e9c40
|
|
BLAKE2b-256 checksum How to use checksums |
e1fbf344a1e23db24ecfe8605f705bbc2cd70f9d58248d172250ccfbd5e1ffe5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / r4sdk-0.1.5-py3-none-any.whl
| Download URL | r4sdk-0.1.5-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfa4f1c5d9afe83cd8c4ff3c6cdb2639a3d7d624dfe0c49a314b6ad7047b703c
|
|
BLAKE2b-256 checksum How to use checksums |
1dd45a604ae11e781a4313a680412b740bc660dbc6d7e54de9f64bc381b4e31d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|