Skip to main content

gRPC simple and easy to use Python framework

Project description

Fast-gRPC

Fast-gRPC it is simple and easy to use Python gRPC framework.

Installation

pip install py-fast-grpc

Quick Start

from fast_grpc import FastGRPC, FastGRPCService, grpc_method
from pydantic import BaseModel


class HelloRequest(BaseModel):
    name: str


class HelloResponse(BaseModel):
    text: str


class Greeter(FastGRPCService):
    @grpc_method()
    async def say_hello(self, request: HelloRequest) -> HelloResponse:
        return HelloResponse(text=f"Hello, {request.name}!")


app = FastGRPC(Greeter())
app.run()

TODO

  1. More unit tests
  2. Add linters
  3. Add CI/CD
  4. Add documentation

Project details


Download files

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

Source Distribution

py_fast_grpc-0.4.0.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

py_fast_grpc-0.4.0-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page