Skip to main content

an rng that generates its numbers based off of a kitten livestream

Reason this release was yanked:

cli crashes

Project description

Kitten RNG

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 semi-number.

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

kitten-rng-1.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

kitten_rng-1.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file kitten-rng-1.1.0.tar.gz.

File metadata

  • Download URL: kitten-rng-1.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for kitten-rng-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d61cfed993c70ac101a770e90837fe81b2602da0c47550de316748314a0ac2a4
MD5 4db20263cccda38df0d752575238f682
BLAKE2b-256 0cda25384a3b27d4fe62731a6698b1fc9a3b48d16987432285e4b17227d9d091

See more details on using hashes here.

File details

Details for the file kitten_rng-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: kitten_rng-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for kitten_rng-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4fbb623f707f2b54fb1bbd42de447badb045a9a62a0504aad56517e046141a4
MD5 684270e28b45205588f4c32258bdab35
BLAKE2b-256 f70dcbdc7db3a8974e19ebf789b6da642b22430714de89b4114a69e6c1d5113a

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