Python client for Veri
Project description
Veri Python Client
Python client for veri
pip install veriservice
import veriservice
service = "localhost:5678"
veriservice.init_service(service, "./tmp")
client = veriservice.VeriClient(service, "example_data")
data_conf = {}
client.create_data_if_not_exists(data_conf)
data = [
{
'label': 'a',
'feature': [0.5, 0.1, 0.2]
},
{
'label': 'b',
'feature': [0.5, 0.1, 0.3]
},
{
'label': 'c',
'feature': [0.5, 0.1, 1.4]
},
]
for d in data:
client.insert(d['feature'], d['label'].encode())
result = client.search([[0.1, 0.1, 0.1]])
for i in result:
print(i)
result = client.data()
for i in result:
print(i)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
veriservice-0.0.34.tar.gz
(14.1 kB
view details)
Built Distribution
File details
Details for the file veriservice-0.0.34.tar.gz
.
File metadata
- Download URL: veriservice-0.0.34.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e40fa2337494d356cf6d47abcb11087833883e8a395d7cc9da19e76094ca7e19 |
|
MD5 | f26c3db017359fd42398f4075cf8ba08 |
|
BLAKE2b-256 | 1e0b0b01bb661c2e5ab5151325f7cdf59ac4aecec4dc8e5ec3d83e18f9cca832 |
File details
Details for the file veriservice-0.0.34-py2.py3-none-any.whl
.
File metadata
- Download URL: veriservice-0.0.34-py2.py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 915972bae145aa682683a5a9f59020747c71c10fe32a5812a1200543d6e52d7f |
|
MD5 | 63e75428a75730a0a432ac9bd097e100 |
|
BLAKE2b-256 | 7bf076e40641492d0e93dbfc575ac20036929055f1c919f326cd2b846dcf0fc1 |