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)
Metadata
Release files for veriservice 0.0.34
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| veriservice-0.0.34.tar.gz | 14.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| veriservice-0.0.34-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 28.6 kB
Release files / veriservice-0.0.34.tar.gz
| Download URL | veriservice-0.0.34.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e40fa2337494d356cf6d47abcb11087833883e8a395d7cc9da19e76094ca7e19
|
|
BLAKE2b-256 checksum How to use checksums |
1e0b0b01bb661c2e5ab5151325f7cdf59ac4aecec4dc8e5ec3d83e18f9cca832
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / veriservice-0.0.34-py2.py3-none-any.whl
| Download URL | veriservice-0.0.34-py2.py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
915972bae145aa682683a5a9f59020747c71c10fe32a5812a1200543d6e52d7f
|
|
BLAKE2b-256 checksum How to use checksums |
7bf076e40641492d0e93dbfc575ac20036929055f1c919f326cd2b846dcf0fc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for veriservice 0.0.34
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.