Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veriservice-0.0.34-py2.py3-none-any.whl (14.5 kB view details)

Uploaded Python 2Python 3

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

Hashes for veriservice-0.0.34.tar.gz
Algorithm Hash digest
SHA256 e40fa2337494d356cf6d47abcb11087833883e8a395d7cc9da19e76094ca7e19
MD5 f26c3db017359fd42398f4075cf8ba08
BLAKE2b-256 1e0b0b01bb661c2e5ab5151325f7cdf59ac4aecec4dc8e5ec3d83e18f9cca832

See more details on using hashes here.

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

Hashes for veriservice-0.0.34-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 915972bae145aa682683a5a9f59020747c71c10fe32a5812a1200543d6e52d7f
MD5 63e75428a75730a0a432ac9bd097e100
BLAKE2b-256 7bf076e40641492d0e93dbfc575ac20036929055f1c919f326cd2b846dcf0fc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page