semvec/pypi-packages huggingface dataset:
chainspotter 0.0.25
Redis Streams wrapper for user-item interaction tracking and fetching

# chainspotter
Redis Streams wrapper to track, store and query user-item interactions history by item count or time.

#### Usage example
Producer:
```python
import redis
import chainspotter


@chainspotter.to_chain('user_history', redis.Redis(), limit=20)
def show_item_to_user(user_id, item_id):
    print('item_id')

for i in range(5):
    show_item_to_user(2, i)
```

Consumer:
```python
import redis
import chainspotter

chain = chainspotter.ClickChain('user_history', redis.Redis())
chain.last_n_pcs(2)

> [0, 1, 2, 3, 4]
```
majime 0.0.10
Dead Simple API Unit Tests

![](./resources/majime-logo1.png)

/ma-ji-me/

*noun*

1. an earnest, reliable person who can get things done
2. dead simple API Unit Testing

## What does it do?

* majime runs test cases on API endpoints
* test cases are defined in YAML files
* majime can generate test cases from Swagger specs

![](./resources/majtest2.png)

## Install

`pip install majime` in a Python3 environment

Or get the binaries for [MacOS](https://github.com/u1i/majime/raw/master/releases/majime-darwin-386.zip) | [Linux](https://github.com/u1i/majime/raw/master/releases/majime-linux-amd64.zip) | Windows

[Package on Pypi](https://pypi.org/project/majime/)

## Usage

    Usage:

     -f Load and run tests from YAML file
        Example: majime -f test.yaml
     -g Generate test suite (YAML) from Swagger document
        Example: majime -g http://api.example.com/swagger.json

    Switches:

     -j JSON output
     -d Dry-Run, do not execute tests - good for testing your YAML file

## Example

#### Generate Test Cases from Swagger

`majime -g http://backend.yoisho.dob.jp/fx/swagger`

    Title: Yoisho Currency Exchange
    Host: backend.yoisho.dob.jp
    Base Path: /fx
    Scheme: http
    Path: /currency
		Method: GET
		Description: Get the FX rate for desired currency
		Query Parameters: ['currency']
		Expected Response: 200

##### Generated Output File

    Base: "http://backend.yoisho.dob.jp/fx"
    Tests:
     # GET - Get the FX rate for desired currency
     - path: "/currency?currency=USD"
       method: "GET"
       headers: ""
       expect-response: "200"
       expect-body: "json"

#### Run Test Cases

Modify the parameters so they make sense, in this case XXX-> USD.

`majime -f Yoisho_Currency_Exchange-*.yaml`

    GET http://backend.yoisho.dob.jp/fx/currency?currency=USD
	HTTP 200

Check out the [examples](./example).
BunalabPy 0.2
A package Bunalab-System

# BunalabPy
## Install BunalabPy
```
 pip install BunalabPy 
```
## Exmaple BunalabPy
```
import BunalabPy.function as bunlab

# config 
bs = bunlab.Service(username,password)

# send mqtt
bs.SendMQ(message)

# send save data in db
bs.SendDB(table,tag,value)

# send plot map
bs.SendMap(table,lat,longt,tag,value)

```
* Function ```bunlab.Service(username,password)``` used to ```Login``` is Connect Bunalab. ```prameter about:```

    >```username``` is **username account** for Bunalab.

    >```password``` is **password account** for Bunalab.

* Function ```bs.SendMQ(message)``` after ```Login``` is Connect Bunalab. This is  function send message to device by Mqtt Bunalab. ```prameter about:```

    >```message``` is **value** for data send to device.

* Function ```bs.SendDB(table,tag,value)``` after ```Login``` is Connect Bunalab. This is  function send message to device by Mqtt but save data in databases for Bunalab system. ```prameter about:```

    >```table``` is **table name for database**.

    >```tag``` is **idendifind for data name** for device.

    >```value``` is **value** for sensor device at save data.

* Function ```bs.SendMap(table,lat,longt,tag,value)``` after ```Login``` is Connect Bunalab. This is  function send message to device by Mqtt but save data in databases for Bunalab system. can it data plot map in Bunalab system. ```prameter about:```

    >```table``` is **table name for database**.

    >```lat``` is **lati** at location.

    >```longt``` is **logti** at location.

    >```tag``` is **idendifind for data name** for device.

    >```value``` is **value** for sensor device at save data at location.