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(request_model=HelloRequest, response_model=HelloResponse)
async def say_hello(self, request: HelloRequest) -> HelloResponse:
return HelloResponse(text=f"Hello, {request.name}!")
app = FastGRPC(Greeter(), reflection=True)
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.2.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file py_fast_grpc-0.1.2.tar.gz
.
File metadata
- Download URL: py_fast_grpc-0.1.2.tar.gz
- Upload date:
- Size: 3.9 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 | 9d37a4e00361908209d8aca18f36187e79e65967775ed06b99b17143935e1c64 |
|
MD5 | 247b8522ff19eec63ec35da6224eb77f |
|
BLAKE2b-256 | 21726222245b3c3b7a236bee4e1ab4c1c795c52d0bbd5ce54da6934d1c07dbb9 |
File details
Details for the file py_fast_grpc-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: py_fast_grpc-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.6 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 | f963cb1251a48014a5d08f0232880d0557b4945808223cea17798f1ab9ce86e9 |
|
MD5 | 9ad53ad2ecd91053e9cf7bae8852ef62 |
|
BLAKE2b-256 | 3d738b788b44684da1c81003e7c0efb20eda11011acbbaacfa125fa7fcd78e3f |