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

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.5.0
File Size Uploaded
qosmos_sdk-0.5.0.tar.gz 17.0 kB Details

Built distribution (wheel)

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

Total release size: 30.3 kB

Release files / qosmos_sdk-0.5.0.tar.gz

Download URL qosmos_sdk-0.5.0.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
592ff19430371788f7d25c2f9213995c87dcb5a79d6a49af95c202181e159e66
BLAKE2b-256 checksum
How to use checksums
5804516218052b2f6fb97697f4ff84b872c925a40989ee0403c079ec76b2c3ce
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.5.0-py3-none-any.whl

Download URL qosmos_sdk-0.5.0-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e7ed578c93d5b51045f10302a8a3190dec01dde73ed780ea2b024afe559ba86
BLAKE2b-256 checksum
How to use checksums
c17800eae6ff047f7c0c325ad92aa560e0b36e8435fd1d19e4aca1dbe2481a6c
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

This release

0.5.0 This release

2 release files

0.4.2

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