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 documentation
- Add middlewares (interceptors) to
FastGRPCclass (for all services) - Add TLS support
- Move to
uv
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-1.0.0.tar.gz
(8.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_fast_grpc-1.0.0.tar.gz.
File metadata
- Download URL: py_fast_grpc-1.0.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Linux/6.15.6-200.fc42.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7edec94815446d4dad004bb44afb5d8a5b7e30f4e4578e95e8e9d7e9375c0d41
|
|
| MD5 |
1dd54d28e90f65d1bafe162d45ad0132
|
|
| BLAKE2b-256 |
476938d81c8395a3ca4eaf57b554755bbfcc1380ad37fb0454e8bdb5f109f043
|
File details
Details for the file py_fast_grpc-1.0.0-py3-none-any.whl.
File metadata
- Download URL: py_fast_grpc-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Linux/6.15.6-200.fc42.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8ad139c677274ae8a1155f65cfd855a96b3a504e78d35d8e605f8851a37f571
|
|
| MD5 |
a09ca2587ba99aa181bdd3b3442b48a7
|
|
| BLAKE2b-256 |
f3c14d21df543aec6a63596c62598c69aa8f49950bc9e4d694155f43d13386c8
|