Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Release files for vention-grpc-py-sdk 0.0.71.dev36051357234

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vention-grpc-py-sdk 0.0.71.dev36051357234
File Size Uploaded
vention_grpc_py_sdk-0.0.71.dev36051357234.tar.gz 123.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vention-grpc-py-sdk 0.0.71.dev36051357234
File Interpreter ABI Platform
vention_grpc_py_sdk-0.0.71.dev36051357234-py3-none-any.whl Python 3 none any Details

Total release size: 390.9 kB

Release files / vention_grpc_py_sdk-0.0.71.dev36051357234.tar.gz

Download URL vention_grpc_py_sdk-0.0.71.dev36051357234.tar.gz
Size 123.2 kB
Tags Source
SHA-256 checksum
How to use checksums
013cf376dbafc0d40059172afbe5e2eaaa9b8fe66230b88a12602723cd5fdb32
BLAKE2b-256 checksum
How to use checksums
9402f06f54315813953c25c79a049e8c91bdd21d0f12be165fc0cb45e51a2bf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / vention_grpc_py_sdk-0.0.71.dev36051357234-py3-none-any.whl

Download URL vention_grpc_py_sdk-0.0.71.dev36051357234-py3-none-any.whl
Size 267.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
297748c8c4a9d8740b11387616c9b2e53a6d49830adeddf7c7ac4f6db541038c
BLAKE2b-256 checksum
How to use checksums
55af215a1616b6900f0fb3c55ae2bde15c0181b53814218876693a6a69cd7054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12
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