semvec/pypi-packages huggingface dataset:
smart-vector 1.1.4
smart vector db
Requires Python: >=3.7


### 安装
```shell
pip install smart_vector
```
### 使用方法
```python
from smart_vector import SmartVectorDB, Text2VecEmbeddingFunction
# 定义向量转化函数
text_vector = Text2VecEmbeddingFunction()

# 数据库连接
connect_dict = {
    'host': 'xxx',
    'port': 9030,
    'user': 'xxxx',
    'password': 'xxx',
    'db': 'smartdb'
}
mydb = SmartVectorDB(db_config=connect_dict, load_host='xxx', text_vector=text_vector)

# 插入数据
mydb.add(collection='test', sr='测试', documents=['中国有一个北京', '北京在中国', '台湾是中国的'])
mydb.add(collection='test', sr='测试', documents=['中国有一个北京1', '北京在中国1'],
         categorys=['A1', 'A1'], metadatas=[{'s': 's1'}, {'s': 's2'}])

# 查询
query = """天安门\ncollection='test' and sr = '测试' and document like '%北京%'\ndocument,sr,c,get_json_string(m, 'ans') as answer\n3"""
print(mydb.get(query))

#[['document', 'sr', 'c', 'distance'], ('中国有一个北京1', '测试', 'A1', 272.8261536366944), ('中国有一个北京', '测试', '', 272.8261536366944), ('中国有一个北京', '测试', '', 272.8261536366944)]

```



### 部署

```bash
pip install -r requirements.txt

python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py createsuperuser


#启动数据
python3 manage.py runserver 0.0.0.0:8000
```
fortigate-vpn-login 0.5
Uses openconnect to connect to Fortinet VPNs, with extra features
Requires Python: >=3.8, <4
Keywords: vpn,security,openconnect,fortinet

# fortigate-vpn-login

Uses `openconnect` to connect to Fortinet VPNs, with extra features. This was created because sometimes we don't want
to use the Forticlient program, or just want a background daemon working for us.

So why not use only `openconnect`? Because there's no proper SAML / OAuth2 support on it, so I decided to do a python
wrapper to extract the `SVPNCOOKIE` from the browser workflow and use it on `openconnect`.

## Usage

To configure this utility on an interactive mode, run:

```bash
fortigate-vpn-login --configure
```

To initiate the SAML workflow on a fortigate ssl vpn server:

```bash
fortigate-vpn-login -s https://vpn-server.example.com
```

To get help and more options:

```bash
fortigate-vpn-login -h
```

## Contents

- [ChangeLog](CHANGELOG.md)

## Setup and usage for local development

Make a virtual environment:

```bash
python3 -m venv venv
source venv/bin/activate
pip install -e .
```

Note that this will also install the local dependencies, which might change after
some time. If needed, you can run `pip install -e .` again to reinstall the
updated dependencies anytime.
wtf-classification 0.0.22
CNN image classification trained on FER2013 for the 7 emotion categories.
Requires Python: >=3.7

This package was created as a part of Talentsprint and Techwise program by James Rodgers of team "What The Face". It uses a pytorch CNN network trained on FER2013 and CK+ images to classify an image passed into it. 

Initialize class and pass a jpg PIL image to the predict() method.

classes:
    Image_classifier()
        returns self

functions:
    predict(image)
        returns [classified_name: str, probability: double]

Example:

from PIL import Image
from what_the_face_classification.inference import Image_classifier

classifier = Image_classifier()
image = Image.open(test.jpg)

prediction = classifier(image)

print(prediction)


<!-- haarcascade_frontalface_default.xml
    Stump-based 24x24 discrete(?) adaboost frontal face detector.
    Created by Rainer Lienhart.

////////////////////////////////////////////////////////////////////////////////////////

  IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.

  By downloading, copying, installing or using the software you agree to this license.
  If you do not agree to this license, do not download, install,
  copy or use the software.


                        Intel License Agreement
                For Open Source Computer Vision Library

 Copyright (C) 2000, Intel Corporation, all rights reserved.
 Third party copyrights are property of their respective owners.-->