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
- More unit tests
- Add linters
- Add CI/CD
- 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.4.0.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for py_fast_grpc-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a40efc1c9b0125699b412d80a70b6f5fc66a91947d5ae606f8b60c3060d2d746 |
|
MD5 | fd97a29c116d3b9645543bd9e321f4d4 |
|
BLAKE2b-256 | 5c7519dc426b6c897a56c35f0ff7b1e7825ebf524544da55bed2606191f3df66 |