Skip to main content

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.

Metadata

Release files for hotbits 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hotbits 1.0.1
File Size Uploaded Provenance
hotbits-1.0.1.tar.gz 16.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hotbits 1.0.1
File Interpreter ABI Platform
hotbits-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 32.9 kB

Release files / hotbits-1.0.1.tar.gz

Download URL hotbits-1.0.1.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9ed1f8f4d53415cbb3955df781f686b8e59f4ff84bdd0efb3d0b3b961e7d8f4e
BLAKE2b-256 checksum
How to use checksums
f6e847c56742de12eb027f85b31438961c3a554c1803346b4d4be22da204822c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / hotbits-1.0.1-py3-none-any.whl

Download URL hotbits-1.0.1-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f72c8b163605c4fe95cb1e7c0170f4065df7afa1f6cdb3c2570d44a01797b5eb
BLAKE2b-256 checksum
How to use checksums
f0c6d9fccdc6cadd449e8ae2704aa69f6fe90c4d9a60ce5621438ff834588992
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for hotbits 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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