Skip to main content

Python API for HotBits random data generator

Project description

HotBits Python API

Latest Version Total Downloads License Build Status

Python API for HotBits random data generator.


This project is random data generator. It uses is HotBits API web service for radioactively-generated random data.

The web service generates random data. Without API token, only pseudorandom data will be returned. For radioactively-generated random data, you would need to request free API key.

The project is not part of the HotBits. It is just API client for it, made by community. For any information about HotBits, you should use the official website.


First, you need to import the generator class:

from hotbits import RandomDataGenerator

Then you need to init the generator client, with default service URL:

generator = RandomDataGenerator()

Custom URL can be changed with parameters:

generator = RandomDataGenerator(custom_url='')

You can then generate data with specific length and API key:

result = generator.generate(

Length of 128 bytes is used by default. If no API key is specified, pseudorandom data will be returned.

Random data are returned as list:

print(result[0]) # First byte
print(result[1]) # Second byte
print(result[3]) # Third byte

You can also look to example file for more examples.


This library uses SemVer for versioning. For the versions available, see the tags on this repository.


This library is licensed under the GPLv3+ license. See the LICENSE file for details.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hotbits-1.0.1.tar.gz (16.4 kB view hashes)

Uploaded source

Built Distribution

hotbits-1.0.1-py3-none-any.whl (16.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page