semvec/pypi-packages huggingface dataset:
slmethod 0.2.6
Statistical Learning Method package
License: MIT

![AIDevLog](https://repository-images.githubusercontent.com/191505403/6a63bc80-8d1d-11e9-8bd7-44aaa16ccdb9)

[![Build Status](https://travis-ci.org/iOSDevLog/slmethod.svg?branch=master)](https://travis-ci.org/iOSDevLog/slmethod)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/slmethod.svg)
![PyPI](https://img.shields.io/pypi/v/slmethod.svg)
![PyPI - License](https://img.shields.io/pypi/l/slmethod.svg)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/slmethod.svg)
![PyPI - Downloads](https://img.shields.io/pypi/dm/slmethod.svg)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Twitter](https://img.shields.io/twitter/url/https/github.com/iOSDevLog/slmethod.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FiOSDevLog%2Fslmethod)

# slmethod

Statistical Learning Method 统计学习方法

GitHub: <https://github.com/iOSDevLog/slmethod>

## 方法

- [x] precentron
- [x] kmeans

## 截图

### 感知机 Perceptron

![perceptron](https://raw.githubusercontent.com/iOSDevLog/slmethod/master/screenshot/perceptron.gif)

![perceptron](https://raw.githubusercontent.com/iOSDevLog/slmethod/master/screenshot/perceptron.png)

### KMeans

![kmeans](https://raw.githubusercontent.com/iOSDevLog/slmethod/master/screenshot/kmeans.gif)

![kmeans](https://raw.githubusercontent.com/iOSDevLog/slmethod/master/screenshot/kmeans.png)

## PyPI 境像加速

```python
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple slmethod
```

## 代码规范

参考：<https://docs.python.org/3/tutorial>

### .vscode/settings.json

```json
{
  "python.pythonPath": "/Users/iosdevlog/.Envs/slmethod/bin/python",
  "python.linting.flake8Enabled": true,
  "python.formatting.provider": "yapf",
  "python.linting.flake8Args": ["--max-line-length=248"],
  "python.linting.pylintEnabled": false
}
```

- 字符串使用双引号： **""**

## 安装

```sh
pip3 install slmethod
```

## 开发

### 本地开发

```sh
pip3 install -e .
```

### 测试

```sh
pytest slmethod -v
```

### 发布

```sh
python3 setup.py sdist bdist_wheel
twine upload dist/*
```

### 生成 CHANGELOG

```sh
npm install -g conventional-changelog-cli
./version.sh
```

## 联系方式

网站: [http://2019.iosdevlog.com/](https://2019.iosdevlog.com/)

微信公众号: AI 开发日志

![AIDevLog](https://2019.iosdevlog.com/uploads/AIDevLog.jpg)

## License

slmethod is released under the MIT license. See [LICENSE](LICENSE) for details.
list-slice 1.0.0
This library has a function to split the data list into several small sections
License: MIT

# List Slicer
This library has a function to split the data list into several small sections

## Usage
Use the following code to split your list data

### Split List data
```
from listslicer.slicer import Slicer

#My list data
data = [
    200, 1230, 15, 2200, 5550
]
#2 is amount to split
data_slice = Slicer.cut(data, 2)
print(data_slice)
```
### Result
```
[[200, 1230], [15, 2200], [5550]]
```

## Example to split Dictionary
```
data = [
    {
        "foodname": "Ayam Bakar",
        "price": 12000
    }, 
    {
        "foodname": "Jus Mangga",
        "price": 7000
    },
    {
        "foodname": "Mie Goreng",
        "price": 9000
    },
    {
        "foodname": "Chicken Katsu",
        "price": 15000
    },
]
print(slicer.cut(data, 2))
```
### Result 
```
[
    [{'price': 12000, 'foodname': 'Ayam Bakar'}, {'price': 7000, 'foodname': 'Jus Mangga'}], 
    [{'price': 9000, 'foodname': 'Mie Goreng'}, {'price': 15000, 'foodname': 'Chicken Katsu'}]
]
```
docker-registry-admin 1.0.2
A convenience script to list and delete registries from docker registry.
License: MIT
Keywords: docker registry

===========================
 docker-registry-functions
===========================

``docker-registry-functions`` is a Python script that implements Docker Registry functions such as: listing repositories, listing tags from a repository, delete tags and delete a repository.

GITHUB

Copyright (c) 2019 Frederico Apolónia fredericojcapolo@gmail.com

Usage
-----

    docker-registry list [-s|--size]
    
    docker-registry list [-s|--size] <repository>
    
    docker-registry delete <repository> <tag1> <tag2> ...
    
    docker-registry delete-range <repository> <from-tag> <to-tag>
    
    docker-registry delete-repository <repository>
    

**Note**: environment variable ``DOCKER_REGISTRY_URL`` must be set for all functions to work
**Note**: environment variable ``DOCKER_REGISTRY_DATA_PATH`` must be set for delete-repository to work
**Note**: environment variable ``DOCKER_REGISTRY_DATA_PATH`` is expected to specify the path to ``var/lib/registry/docker/registry/v2``

Where list will either:

* List all repositories present on a specified docker registry
* List all tags from a ``<repository>``