Kitten Random Number Generator
What?
It's a wonderfully practical python module that generates random numbers based off a kitten livestream.
Installation
Make sure you have a 3.* version of python installed along with pip. Then you install via pip from pypi:
python -m pip install --upgrade kitten-rng
Usage
The Command Line Tool
To get a massive random number based off the kitten livestream:
python -m KRNG
The Module
To get a random number from the cat livestream:
from KRNG import RNGs
number = RNGs.KRN()
print(number)
To get a random number generator seeded with a Kitten Random Number (KRN):
from KRNG import RNGs
rng = RNGs.KPRNG()
print(rng.random())
Why?
So I was watching Tom Scott videos when I heard this. So, now I have created a tool that makes a random number based of a kitten livestream that can be found here. What a wonderfully practical invention.
How?
So I used pafy to get the url for the actual video file, and then fed that url into a cv2 VideoCapture and got the first frame (which I can do because pafy only gets a few frames of the livestream). Then I feed that data into a sha256 urllib hash function and convert that to a number.
Metadata
Release files for kitten-rng 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kitten-rng-1.2.1.tar.gz | 3.0 kB | Without provenance | Details for kitten-rng-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kitten_rng-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for kitten_rng-1.2.1-py3-none-any.whl |
Total release size: 6.4 kB
Release files / kitten-rng-1.2.1.tar.gz
| Download URL | kitten-rng-1.2.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08fbad326a4737b672bf6a1529a6efe2e62f852766d603069885ae2696b04b25
|
|
BLAKE2b-256 checksum How to use checksums |
02e610d5eea4f8c39b70dc20b042eefcf8e1fff06e95bf69a4834aff1104c07b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Release files / kitten_rng-1.2.1-py3-none-any.whl
| Download URL | kitten_rng-1.2.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a509f1a8cd04446658cf4e833e33e3cd457bf89c31879a4fafc3bb4baa717dae
|
|
BLAKE2b-256 checksum How to use checksums |
b899384f3c31255a17b514d739fa0cf5b8e18be3fdb874699f49af1598497e2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Security for kitten-rng 1.2.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.