{"id":27241015,"url":"https://github.com/vdaas/vald-client-python","last_synced_at":"2025-10-18T00:40:44.537Z","repository":{"id":43303536,"uuid":"220405066","full_name":"vdaas/vald-client-python","owner":"vdaas","description":"A Python gRPC client library for Vald","archived":false,"fork":false,"pushed_at":"2025-03-11T08:35:54.000Z","size":600,"stargazers_count":17,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-15T20:28:19.299Z","etag":null,"topics":["vald"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/vald-client-python/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vdaas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-11-08T06:52:11.000Z","updated_at":"2025-04-09T10:15:00.000Z","dependencies_parsed_at":"2023-10-04T09:08:59.163Z","dependency_job_id":"c0463bf4-5de0-43b3-856e-843aee9117f2","html_url":"https://github.com/vdaas/vald-client-python","commit_stats":{"total_commits":188,"total_committers":6,"mean_commits":"31.333333333333332","dds":"0.36170212765957444","last_synced_commit":"63fe2916fb368b8546729c4dd5ffaa009a642609"},"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"purl":"pkg:github/vdaas/vald-client-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaas%2Fvald-client-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaas%2Fvald-client-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaas%2Fvald-client-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaas%2Fvald-client-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdaas","download_url":"https://codeload.github.com/vdaas/vald-client-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaas%2Fvald-client-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260472446,"owners_count":23014334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vald"],"created_at":"2025-04-10T19:56:23.717Z","updated_at":"2025-10-18T00:40:39.501Z","avatar_url":"https://github.com/vdaas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vald-client-python\n\n[![PyPI version](https://badge.fury.io/py/vald-client-python.svg)](https://badge.fury.io/py/vald-client-python)\n[![Vald version](https://img.shields.io/github/release/vdaas/vald.svg?style=flat-square)](https://github.com/vdaas/vald/releases/latest)\n![Build version](https://img.shields.io/badge/python-3.10-green)\n\nA Python gRPC client library for [Vald](https://github.com/vdaas/vald).\n\n## Install\n\nUsing pip,\n\n```sh\npip install vald-client-python\n```\n\n## Usage\n\nTo use v1 APIs,\n\n```python\nimport grpc\nfrom vald.v1.vald import insert_pb2_grpc\nfrom vald.v1.vald import search_pb2_grpc\nfrom vald.v1.vald import update_pb2_grpc\nfrom vald.v1.vald import remove_pb2_grpc\nfrom vald.v1.vald import flush_pb2_grpc\nfrom vald.v1.payload import payload_pb2\n\n## create a channel by passing \"{host}:{port}\"\nchannel = grpc.insecure_channel(\"gateway.vald.vdaas.org:80\")\n\n## create stubs for calling RPCs\nistub = insert_pb2_grpc.InsertStub(channel)\nsstub = search_pb2_grpc.SearchStub(channel)\nustub = update_pb2_grpc.UpdateStub(channel)\nrstub = remove_pb2_grpc.RemoveStub(channel)\nfstub = flush_pb2_grpc.FlushStub(channel)\n\n## call RPCs: Insert\nvec = payload_pb2.Object.Vector(id='vector_id_1', vector=[0.1, 0.2, 0.3])\nicfg = payload_pb2.Insert.Config(skip_strict_exist_check=True)\nistub.Insert(payload_pb2.Insert.Request(vector=vec, config=icfg))\n\n\n## call RPCs: Search\n### num: number of results\n### timeout: 3 seconds\nscfg = payload_pb2.Search.Config(num=10, radius=-1.0, epsilon=0.01, timeout=3000000000)\nres = sstub.Search(payload_pb2.Search.Request(vector=[0.1, 0.2, 0.3], config=scfg))\n\n\n## call RPCs: Update\nuvec = payload_pb2.Object.Vector(id='vector_id_1', vector=[0.1, 0.2, 0.3])\nucfg = payload_pb2.Update.Config(skip_strict_exist_check=True)\nustub.Update(payload_pb2.Update.Request(vector=uvec, config=ucfg))\n\n\n## call RPCs: Remove\nrcfg = payload_pb2.Remove.Config(skip_strict_exist_check=True)\nrid = payload_pb2.Object.ID(id='vector_id_1')\nrstub.Remove(payload_pb2.Remove.Request(id=rid, config=rcfg))\n\n## call RPCs: Flush\nfstub.Flush(payload_pb2.Flush.Request())\n\n## close channel\nchannel.close()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdaas%2Fvald-client-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdaas%2Fvald-client-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdaas%2Fvald-client-python/lists"}