Skip to main content

gRPC reflection for connectrpc

Project description

connectrpc-grpcreflect

gRPC reflection services to support tools such as buf curl that query servers without knowing their schema.

The services are standard Connect services that you use as normal.

Example

from typing import cast

from connectrpc_grpcreflect import (
    ServerReflectionASGIApplication,
    ServerReflectionService,
)
from starlette.applications import Starlette
from starlette.routing import Mount
from starlette.types import ASGIApp

from .gen.connectrpc.eliza.v1 import eliza_pb
from .gen.connectrpc.eliza.v1.eliza_connect import ElizaServiceASGIApplication
from .service import ElizaService

eliza_app = ElizaServiceASGIApplication(ElizaService())
reflection_app = ServerReflectionASGIApplication(
    ServerReflectionService(eliza_pb.desc())
)

app = Starlette(
    routes=[
        Mount(eliza_app.path, cast(ASGIApp, eliza_app)),
        Mount(reflection_app.path, cast(ASGIApp, reflection_app)),
    ]
)

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

connectrpc_grpcreflect-0.1.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

connectrpc_grpcreflect-0.1.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file connectrpc_grpcreflect-0.1.0.tar.gz.

File metadata

  • Download URL: connectrpc_grpcreflect-0.1.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for connectrpc_grpcreflect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59927053be6d202651a19d6e6f45a6aed278aaf28a0d79f9781920515ae11c79
MD5 64eb21850642cfa5c2e0f91047e24c5d
BLAKE2b-256 f29e8acaf2ae1303d86a272b0a5b3a840d83fd101f13ce0c800adabb121337c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for connectrpc_grpcreflect-0.1.0.tar.gz:

Publisher: release-grpcreflect.yaml on connectrpc/connect-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file connectrpc_grpcreflect-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for connectrpc_grpcreflect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36eda232de0f548a1232d8a6938e60e6e692422d828405093656d879c12d82a7
MD5 67c6d3f61a6e50970e13dcbe3dc82947
BLAKE2b-256 92807abe9bbc9dabf0cdb91009d69dc0b7f9308d3e777893d6cf8f397041ade6

See more details on using hashes here.

Provenance

The following attestation bundles were made for connectrpc_grpcreflect-0.1.0-py3-none-any.whl:

Publisher: release-grpcreflect.yaml on connectrpc/connect-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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