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.

Metadata

Release files for vention-grpc-py-sdk 0.0.103

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.103
File Size Uploaded Provenance Actions
vention_grpc_py_sdk-0.0.103.tar.gz 204.3 kB Without provenance Details for vention_grpc_py_sdk-0.0.103.tar.gz

Built distribution (wheel)

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

Total release size: 594.7 kB

Release files / vention_grpc_py_sdk-0.0.103.tar.gz

Download URL vention_grpc_py_sdk-0.0.103.tar.gz
Size 204.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a12f704d41239581eafeca8b8467a6fb0c824e06ef3ac5956c04e2bd5235e509
BLAKE2b-256 checksum
How to use checksums
774b3b25ae1ae5b72f0692ffcf6e8526f65b80277d3e5c64f16fb00685967cd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / vention_grpc_py_sdk-0.0.103-py3-none-any.whl

Download URL vention_grpc_py_sdk-0.0.103-py3-none-any.whl
Size 390.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c875a0eff9868d7d327b3e4f9fe1a44a35e153cce24dabd67b8e8ef7f80c847
BLAKE2b-256 checksum
How to use checksums
4b1b0655b609e976228e26da1afaf68bd704cb7238cdf9ccdae14f8cf0cb6a3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for vention-grpc-py-sdk 0.0.103

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.103 This release

2 release files No provenance

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