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. Add middlewares support
  2. Add returning .proto files
  3. Add unit tests
  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.3.4.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

py_fast_grpc-0.3.4-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

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

Hashes for py_fast_grpc-0.3.4.tar.gz
Algorithm Hash digest
SHA256 eb4d520acc96590b14c742abc386c5bde0143c0b694606a4907d1b7ce894f702
MD5 86a90eba6fed007fccd306d5614c4212
BLAKE2b-256 bac68ecb97d9e47534dcf281c5baa2b5ae136f9d7f77059de86c4385f0fb5fcd

See more details on using hashes here.

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

Hashes for py_fast_grpc-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 26c5bb6eb9612564d717083cc1dbdebf1aabd954365f6ccc500b65b3add61a8f
MD5 7d729950766987ce163b703eb8876fc8
BLAKE2b-256 801f785d795fa7e5e793d981a289222bdbccce7f74be626db6630d243b002ce6

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