gRPC for Python

1.78.0 · active · verified Sat Mar 28

gRPC is a high-performance, open-source RPC framework that uses HTTP/2 for transport. The 'grpcio' package provides the core gRPC functionality for Python, enabling developers to build efficient and scalable services. The current version is 1.78.0, with regular updates to enhance performance and address issues.

Warnings

Install

Imports

Quickstart

Basic setup for a gRPC server in Python

import grpc
from concurrent import futures

# Define the server
server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))

# Add your service implementations here

# Start the server
server.add_insecure_port('[::]:50051')
server.start()
server.wait_for_termination()

view raw JSON →