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
- Add middlewares support
- Add returning .proto files
- Add unit tests
- Add documentation
Project details
Release history Release notifications | RSS feed
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.3.3.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for py_fast_grpc-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d3dc7019151bb2066f303db97b35eafa8d42d89e7c195f922f04514d5dba279 |
|
MD5 | 90941ee2335a1c7336f5e51f97ef1e7c |
|
BLAKE2b-256 | 9e8e06da6de1dc99ea3f4976cb41004356dc62740daef3162a8220ad3c03ab7f |