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()
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.1.6.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file py_fast_grpc-0.1.6.tar.gz
.
File metadata
- Download URL: py_fast_grpc-0.1.6.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.4 Linux/6.5.10-200.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 403fb380d846a167ccab88e521057a425c68486cce6169a2af6baba9a7916daf |
|
MD5 | c076f432d92cb21fea482997615e0d42 |
|
BLAKE2b-256 | 6671ef2b432865c20083f2ddf88a66abeb672307939ec17aac74b741edca62e4 |
File details
Details for the file py_fast_grpc-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: py_fast_grpc-0.1.6-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.4 Linux/6.5.10-200.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d7b9c2f6d4a084cc321aa8f5750f3ccaccee962e5b17104ae2bf372faee7260 |
|
MD5 | d172f891535d1d93b607aeb1f864c735 |
|
BLAKE2b-256 | 5e980224d6965488058e91fdc532dd4bbbe18d8a5ee392b425cdf58788062a45 |