Skip to main content

vention-grpc-py-sdk

Generated Python gRPC clients for vention-protos.

Install

pip install vention-grpc-py-sdk

Usage

import grpc
from vention.robots.v1 import robot_service_pb2_grpc
from vention import PROTOS_SHA

channel = grpc.insecure_channel("localhost:50550")
stub = robot_service_pb2_grpc.RobotServiceStub(channel)
print(f"built from vention-protos@{PROTOS_SHA}")

PROTOS_SHA is the vention-protos commit this wheel was generated from.

Vision service backends

The vention/vision/v1 services also ship generated backend interfaces, so calling code can be written against an ABC and swapped between gRPC and a local implementation.

from vention.vision.v1 import image_pb2
from vention.vision.v1.vision_service_abc import (
    ImageServiceBackend,
    create_image_service_backend,
    register_image_service_backend,
)

backend = create_image_service_backend("grpc", target="localhost:41051")
response = backend.capture_image(image_pb2.CaptureImageRequest())


class InProcessImageService(ImageServiceBackend):
    def capture_image(self, request): ...
    def upload_image(self, requests): ...
    def download_image(self, request): ...


register_image_service_backend("in_process", InProcessImageService)
backend = create_image_service_backend("in_process")

There is one <Service>Backend ABC, one <Service>GrpcBackend, and one register_/create_ pair per service in vision_service.proto.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vention_grpc_py_sdk-0.0.69.tar.gz (50.8 kB view details)

Uploaded Source

Built Distribution

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

vention_grpc_py_sdk-0.0.69-py3-none-any.whl (121.6 kB view details)

Uploaded Python 3

File details

Details for the file vention_grpc_py_sdk-0.0.69.tar.gz.

File metadata

  • Download URL: vention_grpc_py_sdk-0.0.69.tar.gz
  • Upload date:
  • Size: 50.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.12

File hashes

Hashes for vention_grpc_py_sdk-0.0.69.tar.gz
Algorithm Hash digest
SHA256 ceeb2e9b51f006003bb7f2a586bf81120c2710f2ff6bddd7f638b5a412180830
MD5 f6ccc52e234a48af5079b3cf9dbb14b0
BLAKE2b-256 a199d3dd2c5c942e0aacdf0b246fdfaf32492115e8e201ef59352b60aad2c51a

See more details on using hashes here.

File details

Details for the file vention_grpc_py_sdk-0.0.69-py3-none-any.whl.

File metadata

File hashes

Hashes for vention_grpc_py_sdk-0.0.69-py3-none-any.whl
Algorithm Hash digest
SHA256 5544cf0dcd340cc2892770bd87d524f644be59be97e6b27153d01b64e3d19091
MD5 c906131eb09f0eab190121c6a3c5926f
BLAKE2b-256 30477f1af4a925cd7e3ff126a1a4c3270acf14b35c913b0ab378c7523d51ce89

See more details on using hashes here.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page