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.2

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.2
File Size Uploaded
qosmos_sdk-0.4.2.tar.gz 16.1 kB Details

Built distribution (wheel)

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

Total release size: 28.7 kB

Release files / qosmos_sdk-0.4.2.tar.gz

Download URL qosmos_sdk-0.4.2.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b2f5ecd0202889ad64e8ee44c42e11458ebebe399fdef56f1792d77092ae3f72
BLAKE2b-256 checksum
How to use checksums
14a703d8834ca3983ad084c20301d14963be185587dd5886ee3a5f7784cd3af6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.9.25

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

Download URL qosmos_sdk-0.4.2-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
625e28a3350868b3365aa0d1b13dcc9edafc3431d0ced4e13adcdf44fabaaaa2
BLAKE2b-256 checksum
How to use checksums
6a7224bc233d9e992e4c558a0de6aa9d9cd8b976e614c3f302b15f24cf32082c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

0.5.0

2 release files

This release

0.4.2 This release

2 release files

0.4.1

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