Skip to main content

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

  1. More unit tests
  2. Add linters
  3. Add CI/CD
  4. Add documentation

Project details


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 details)

Uploaded Source

Built Distribution

py_fast_grpc-0.4.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file py_fast_grpc-0.4.0.tar.gz.

File metadata

  • Download URL: py_fast_grpc-0.4.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.7.4-200.fc39.x86_64

File hashes

Hashes for py_fast_grpc-0.4.0.tar.gz
Algorithm Hash digest
SHA256 818cc00392111220e1d58b84f82ce944593f26f5de1153f5a0d6e2059775c728
MD5 90f0a96d84ae8b7f8a4aebd2bf20eb57
BLAKE2b-256 811cdbebb6cc06188304bcbbd3faf5aef7099488fc498a42022d21df90aa8286

See more details on using hashes here.

File details

Details for the file py_fast_grpc-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: py_fast_grpc-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.7.4-200.fc39.x86_64

File hashes

Hashes for py_fast_grpc-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a40efc1c9b0125699b412d80a70b6f5fc66a91947d5ae606f8b60c3060d2d746
MD5 fd97a29c116d3b9645543bd9e321f4d4
BLAKE2b-256 5c7519dc426b6c897a56c35f0ff7b1e7825ebf524544da55bed2606191f3df66

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page