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.

Description

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.

Usage

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='https://example.com')

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

result = generator.generate(
    length='256',
    apikey='exampleAPIkey'
)

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.

Versioning

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

License

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.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hotbits-1.0.0-py3.7.egg (6.6 kB view details)

Uploaded Egg

hotbits-1.0.0-py3.6.egg (6.6 kB view details)

Uploaded Egg

hotbits-1.0.0-py3.5.egg (6.7 kB view details)

Uploaded Egg

hotbits-1.0.0-py3.4.egg (6.7 kB view details)

Uploaded Egg

hotbits-1.0.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file hotbits-1.0.0.tar.gz.

File metadata

  • Download URL: hotbits-1.0.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for hotbits-1.0.0.tar.gz
Algorithm Hash digest
SHA256 72e38b425ed86db8886a5314df9306ab8f288d974d34c6934fd24e741a8f3299
MD5 bfeae9ea2e8974f827fbd4e3c69ba702
BLAKE2b-256 234e221a21645772c555f6f2359998be471023c4f76906681597469e118736c8

See more details on using hashes here.

File details

Details for the file hotbits-1.0.0-py3.7.egg.

File metadata

  • Download URL: hotbits-1.0.0-py3.7.egg
  • Upload date:
  • Size: 6.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for hotbits-1.0.0-py3.7.egg
Algorithm Hash digest
SHA256 4239cadb792b373d36080f0aeccec47bfeb6faed0d4466e37c94722f7cdfca3e
MD5 1df2240e3f3995d8976651448f5d2eca
BLAKE2b-256 6136d6461bb528ce69632f4efa668ba6f51c51856822ca088611dd82843dca6b

See more details on using hashes here.

File details

Details for the file hotbits-1.0.0-py3.6.egg.

File metadata

  • Download URL: hotbits-1.0.0-py3.6.egg
  • Upload date:
  • Size: 6.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for hotbits-1.0.0-py3.6.egg
Algorithm Hash digest
SHA256 af50c14bc3ebf7721bfdfac9ec00901d647089c911b438bc578edbd1a09ea70e
MD5 10e9c8338a855096ad9315d7a4a889c3
BLAKE2b-256 1db417858307712a303372d7cb1c76ed95f4aa3c196c473c4d612370a9e12c6b

See more details on using hashes here.

File details

Details for the file hotbits-1.0.0-py3.5.egg.

File metadata

  • Download URL: hotbits-1.0.0-py3.5.egg
  • Upload date:
  • Size: 6.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for hotbits-1.0.0-py3.5.egg
Algorithm Hash digest
SHA256 5d90f3791b0575d1d3190fddcc43bdc5c7079092ccbd027cf7a48d8e47c3d0df
MD5 ecfcd3041c9f1bbfa2cfe0acee8bbe82
BLAKE2b-256 3e0af08b821f850fff3a1fac9d95c8527214265e978abfe3987482f46190b6e9

See more details on using hashes here.

File details

Details for the file hotbits-1.0.0-py3.4.egg.

File metadata

  • Download URL: hotbits-1.0.0-py3.4.egg
  • Upload date:
  • Size: 6.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.4.8

File hashes

Hashes for hotbits-1.0.0-py3.4.egg
Algorithm Hash digest
SHA256 7787b0eeefe5a7aa80cb5ac85c540e0bc2bb821cea7a8641cab1d40a0aacd33c
MD5 6fce6294e87943d2108d755f5dde4481
BLAKE2b-256 1ea74d3cec3e39b9ae6275ddf1939453a2734cd8c92dcdd7d7268289032cb9b8

See more details on using hashes here.

File details

Details for the file hotbits-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: hotbits-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.4.8

File hashes

Hashes for hotbits-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ec3e4dd14dc12a13f0f3adff05328c01662ff985d2846cb56d54e9c56509996
MD5 32768c6096c8c383690891831d9df4b3
BLAKE2b-256 0fe8e6e1a51037d2fda414acd3a7a177b0f1f89a94b66a79c32139367ccb4913

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page