$npx skillfedfor your agent

pytest-grpc

pytest plugin for grpc

SkipPyPI UtilitiesReleased May 2020180.0K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_grpc-0.8.0-py3-none-any.whl
v0.8.0 · released 2020-05-01 · 1 runtime deps: pytest

No—the package is abandoned (last release 2020-05-01) with no maintenance signal. While it has low install friction and a permissive MIT license, the lack of updates means it will likely break with newer pytest or gRPC versions. Use only if locked to old dependencies; otherwise, maintain your own test fixtures or evaluate actively maintained alternatives.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires proto files compiled to *_pb2.py and *_pb2_grpc.py using grpcio-tools before tests can run.
  • Installation is straightforward with only pytest as a runtime dependency.
  • However, the package is abandoned—last released 2020-05-01 with no recent maintenance, so expect no bug fixes or updates for modern gRPC or pytest versions.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

last release 2020-05-01 (2296 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 179,974 downloads/mo, #10,156 on PyPI

Verify before relying

pip install pytest-grpc

import pytest

@pytest.fixture(scope='module')
def grpc_add_to_server():
    # Import your generated gRPC add_*_to_server function
    pass

@pytest.fixture(scope='module')
def grpc_servicer():
    # Return your service implementation
    pass

def test_handler(grpc_stub):
    # grpc_stub is provided by the plugin
    response = grpc_stub.handler(request)
    assert response is not None
  • Whether the package remains compatible with current versions of pytest and grpcio
  • Whether SSL/TLS fixture overrides work reliably with modern gRPC channel APIs
  • What Python versions beyond 3.6 and 3.7 are actually supported despite the abandoned status
Same gist for agents: .md · .json

What it is and what it does

pytest-grpc is a pytest plugin that simplifies testing gRPC services by providing pre-built fixtures for server setup, channel creation, and stub instantiation. It lets you write tests that call gRPC handlers directly, without manually managing server lifecycle or channel configuration.

The plugin supports two testing modes: a real gRPC server running in a background thread and a fake in-process mode that bypasses the network layer for faster unit tests. You define fixtures to inject your service implementation and protobuf stubs, then write test functions that receive a ready-to-use stub. It also supports SSL/TLS by allowing you to override the default server and channel fixtures with custom credentials.

Use it for

  • Unit-test individual gRPC service handlers without spinning up a real server
  • Integration-test gRPC services against a real server running in a pytest worker thread
  • Test gRPC services with SSL/TLS by providing custom certificate and key fixtures
  • Verify error handling in gRPC handlers by catching exceptions raised during RPC calls

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No—the package is abandoned (last release 2020-05-01) with no maintenance signal.

While it has low install friction and a permissive MIT license, the lack of updates means it will likely break with newer pytest or gRPC versions. Use only if locked to old dependencies; otherwise, maintain your own test fixtures or evaluate actively maintained alternatives.

Install

pytest-grpc on PyPI

Before you install

Installation is straightforward with only pytest as a runtime dependency. However, the package is abandoned—last released 2020-05-01 with no recent maintenance, so expect no bug fixes or updates for modern gRPC or pytest versions.

Requires proto files compiled to *_pb2.py and *_pb2_grpc.py using grpcio-tools before tests can run.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install pytest-grpc

import pytest

@pytest.fixture(scope='module')
def grpc_add_to_server():
    # Import your generated gRPC add_*_to_server function
    pass

@pytest.fixture(scope='module')
def grpc_servicer():
    # Return your service implementation
    pass

def test_handler(grpc_stub):
    # grpc_stub is provided by the plugin
    response = grpc_stub.handler(request)
    assert response is not None

Verify before relying

  • Whether the package remains compatible with current versions of pytest and grpcio
  • Whether SSL/TLS fixture overrides work reliably with modern gRPC channel APIs
  • What Python versions beyond 3.6 and 3.7 are actually supported despite the abandoned status

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pytest
MaintenanceAbandoned 2,296 days since the last release
First released
Downloads179,974 / month, #10,156 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Framework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Utilities

Evidence: pytest_grpc-0.8.0-py3-none-any.whl

Tags

Capabilities
pytest grpc testinggrpc service unit testsgrpc mock server testingpytest fixtures grpcgrpc integration testing
Topics
grpc-testingabandoned

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pytest grpc testing”

  • pytest-grpcA pytest plugin that provides fixtures to write and run tests for…
  • tavernTavern is a pytest plugin and command-line tool for automated testing…
  • pytest-otelA pytest plugin that captures and exports OpenTelemetry spans for…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also pytest-rabbitmq · pytest-docker · pytest-twisted · grpcio-testing · rtest · pytest-mock-resources · pytest-catchlog · pytest-redis · tavern · pytest-console-scripts