Skip to main content

randomapi

PyPI version

Python implementation of the RANDOM.org JSON-RPC API: http://api.random.org/json-rpc/2/

RANDOM.org generates true random numbers using a seed based on atmospheric radio noise. This is useful for applications where pseudo-random generators are not good enough, such as cryptography.

Features

  • Implements all basic methods and signed methods
  • Downloads random data over a 4096-bit SSL connection
  • Respects advisory delay requests from the server
  • Has no external dependencies
  • Optional: Verifies signed data with RANDOM.org, using SHA-512 hashes to ensure that it's legitimate

Requirements

Example Usage

from randomapi import RandomJSONRPC

# Returns a list of 5 true random numbers between 0 and 10

random_client = RandomJSONRPC(api_key) # Requires a valid API key
nums = random_client.generate_integers(n=5, min=0, max=10).parse()

Metadata

Release files for randomapi 0.3.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 randomapi 0.3.2
File Size Uploaded Provenance
randomapi-0.3.2.tar.gz 5.4 kB Without provenance Details

Release files / randomapi-0.3.2.tar.gz

Download URL randomapi-0.3.2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4242ca5733cbd5436cd18d611545fc7cf841613280ef6501a3f2a0b626ada8ed
BLAKE2b-256 checksum
How to use checksums
55e74994ad275929a13e187ea4afed8437987255a03bdc6b61ee64803c07faab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

Security for randomapi 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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