Skip to main content

qosmos-sdk

Python SDK for Qosmos entropy-as-a-service.

from qosmos_sdk import QosmosClient

client = QosmosClient()
entropy = client.random_hex(4)
print(entropy["value"])

The client reads QOSMOS_KEY_ID, QOSMOS_API_SECRET, QOSMOS_ENV and QOSMOS_BASE_URL by default.

There is no QOSMOS_API_KEY. Qosmos replaced single long-lived API keys with a pair: a public key id (qk_...) sent as x-api-key on every request, and a secret (qs_...) presented only to POST /v1/auth/token in exchange for a short-lived access token. The SDK does that exchange, caches the token and renews it for you; the secret never travels on an entropy request. Keys issued before the change stopped working and must be reissued from the dashboard.

Lengths

The count is raw bytes for every format, including base64 and bin. The StreamLine endpoints accept one shared set of byte lengths:

4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096

Anything else needs a dynamic method, which accepts any positive byte count but draws on your plan's daily dynamic quota.

Metadata

Release files for qosmos-sdk 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qosmos-sdk 0.4.1
File Size Uploaded
qosmos_sdk-0.4.1.tar.gz 16.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qosmos-sdk 0.4.1
File Interpreter ABI Platform
qosmos_sdk-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.8 kB

Release files / qosmos_sdk-0.4.1.tar.gz

Download URL qosmos_sdk-0.4.1.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d57cf7c970a80c12a576de5d12e0fe66ae32e71b466a38e19c2905e34d6eb19f
BLAKE2b-256 checksum
How to use checksums
e23e8b5991140febc3338aebdee9995a0420c4763f68c70e141efcea70fac442
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / qosmos_sdk-0.4.1-py3-none-any.whl

Download URL qosmos_sdk-0.4.1-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b40939b74c4dd958d98323f8714d68919e2c958e009189d44e4c91e425b3dd39
BLAKE2b-256 checksum
How to use checksums
200a6a6629d80c5ba7318d4bb5849f8a5933185985408e047e99b67279017b04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

0.5.0

2 release files

0.4.2

2 release files

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page