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.4.tar.gz
(6.5 kB
view details)
Built Distribution
File details
Details for the file py_fast_grpc-0.3.4.tar.gz
.
File metadata
- Download URL: py_fast_grpc-0.3.4.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.4 Linux/6.5.12-200.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb4d520acc96590b14c742abc386c5bde0143c0b694606a4907d1b7ce894f702 |
|
MD5 | 86a90eba6fed007fccd306d5614c4212 |
|
BLAKE2b-256 | bac68ecb97d9e47534dcf281c5baa2b5ae136f9d7f77059de86c4385f0fb5fcd |
File details
Details for the file py_fast_grpc-0.3.4-py3-none-any.whl
.
File metadata
- Download URL: py_fast_grpc-0.3.4-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.4 Linux/6.5.12-200.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26c5bb6eb9612564d717083cc1dbdebf1aabd954365f6ccc500b65b3add61a8f |
|
MD5 | 7d729950766987ce163b703eb8876fc8 |
|
BLAKE2b-256 | 801f785d795fa7e5e793d981a289222bdbccce7f74be626db6630d243b002ce6 |