semvec/pypi-packages huggingface dataset:
influxdb-async 1.0.3
async multi fields to influxdb
License: MIT

influxdb-async 模块使用方法
===========================

   **``(一)：安装``**

-  从 PYPI 安装

::

   pip install influxdb-async

-  从 Github 安装

::

   pip isntall git+https://github.com/yinhuanyi/influxdb-async.git

..

   **``(二)：使用方法``**

::

   from influxdb_async import InfluxdbMultiFieldsAsync


   host = '100.122.0.2'
   port = 8086
   database = 'db1'
   measurement = 'measurement1'
   tags = {"host": "server1", "env": "env1"}
   fields_list = [{"value": 1},
                  {"value": 2},
                  {"value": 3}]
   username = 'username'
   password = 'password'

   # 如果influxdb没有用户名和密码
   with InfluxdbMultiFieldsAsync(host, port, database, measurement, tags, fields_list) as influxdb:
       influxdb.start()


   # 如果influxdb有用户名和密码
   with InfluxdbMultiFieldsAsync(host, port, database, measurement, tags, fields_list, username=username, password=password) as influxdb:
       influxdb.start()

..

   **``(三)：influxdb显示效果``**

::

   > use db1;
   Using database db1
   > select * from measurement1;
   name: measurement1
   time                env  host    value
   ----                ---  ----    -----
   1591946958016786087 env1 server1 1
   1591946958229993773 env1 server1 2
   1591946958438736358 env1 server1 3
kitten-rng 1.2.1
an random number generator that generates its numbers based off of a kitten livestream
License: MIT

# 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:
```bash
python -m pip install --upgrade kitten-rng
```

## Usage

### The Command Line Tool

To get a massive random number based off the kitten livestream:

```bash
python -m KRNG
```

### The Module

To get a random number from the cat livestream:

```python
from KRNG import RNGs

number = RNGs.KRN()
print(number)
```

To get a random number generator seeded with a Kitten Random Number (KRN):

```python
from KRNG import RNGs

rng = RNGs.KPRNG()
print(rng.random())
```

## Why?

So I was watching Tom Scott videos when I heard [this](https://youtu.be/1cUUfMeOijg). So, now I have created a tool that makes a random number based of a kitten livestream that can be found [here](https://www.youtube.com/watch?v=M5huFQWHyVI). 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.