grpc-interceptor
Simplifies gRPC interceptors
Install
grpc-interceptor on PyPI
pip
pip install grpc-interceptoruv
uv add grpc-interceptorpoetry
poetry add grpc-interceptorPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.7,<4.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — grpcio |
| Maintenance | dormant — 1,001 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: grpc_interceptor-0.15.4-py3-none-any.whl
Keywords: grpc, interceptor
About grpc-interceptor
from the package's own PyPI description — quoted content, verbatim
Tests (image) Codecov (image) Read the Docs (image) PyPI (image)
Summary
Simplified Python gRPC interceptors.
The Python grpc package provides service interceptors, but they're a bit hard to
use because of their flexibility. The grpc interceptors don't have direct access
to the request and response objects, or the service context. Access to these are often
desired, to be able to log data in the request or response, or set status codes on the
context.
Installation
To just get the interceptors (and probably not write your own):
$ pip install grpc-interceptor
To also get the testing framework, which is good if you're writing your own interceptors:
$ pip install grpc-interceptor[testing]
...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Provides simplified server and client interceptors for gRPC services, making it easier to access request/response objects and service context for logging, error handling, and metadata injection.
Low friction: pure Python wheel with a single runtime dependency (grpcio). Maintenance is dormant—last release was 1001 days ago (2023-11-16)—but the repository remains active and the package is stable enough for established use cases.
MIT license (permissive) places no restrictions on use, modification, or distribution; suitable for both open-source and commercial projects.
Usage
pip install grpc-interceptor
from grpc_interceptor import ServerInterceptor
class MyInterceptor(ServerInterceptor):
def intercept(self, method, request_or_iterator, context, method_name):
return method(request_or_iterator, context)
interceptors = [MyInterceptor()]
server = grpc.server(futures.ThreadPoolExecutor(max_workers=10), interceptors=interceptors)
Requires grpcio to be installed; Python 3.7 or later.
Verdict: Stable, low-friction utility for simplifying gRPC interceptor patterns in Python. No known vulnerabilities and permissive licensing make it safe to adopt. Dormant maintenance (1001 days since last release) is acceptable for a mature, focused library, but users should be prepared to maintain a fork or patch if breaking changes in grpcio emerge.
Needs verification
- Whether the package remains compatible with current grpcio versions (last tested/released 2023-11-16).
- Whether asyncio client interceptor support has been added since the last release.
Similar packages
permissive · top 1,000 on PyPI
grpclibpermissive · top 1,000 on PyPI
opentelemetry-exporter-otlp-proto-grpcpermissive · top 1,000 on PyPI
grpciopermissive · top 100 on PyPI
grpcio-statuspermissive · top 100 on PyPI
azure-coreunclear · top 1,000 on PyPI
opentelemetry-exporter-otlp-proto-commonpermissive · top 1,000 on PyPI
opentelemetry-exporter-otlppermissive · top 1,000 on PyPI
supabase-functionspermissive · top 1,000 on PyPI
grpcio-health-checkingpermissive · top 1,000 on PyPI