Skip to main content

A simple to use Python gRPC Reflection Client

Project description

rgprc

Ruff License

A simple to use, reflection only - grpc client.

Features

  • Make GRPC calls against reflection enabled servers

How to install

pip install rgrpc

How to use

try:
    rgrpc_client = Client('localhost:50051')
    response = rgprc_client.request('myserver.myservice', 'mymethod', {'field1':'value1'})
except Exception as e:
    logger.error(f"Failed to initialize rgrpc client: {e}")

Developer Setup

Environment Setup

  1. python3 -m venv /where/you/like/to/store/venvs
  2. source /venv/bin/activate
  3. pip install -r dev-requirements.txt
  4. pre-commit install

Running tests

Running tests.sh will execute the following actions:

  • ruff check ./rgrpc - will run the ruff linter over core source files
  • ruff format ./rgrpc - will run the ruff formatter over core source files
  • mypy rgprc/*.py - will run mypy over core source files.
  • pytest --cov=rgrpc tests/ - will run tests and generate a short coverage report

Maintainers

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

rgrpc-2023.11.12.tar.gz (12.3 kB view hashes)

Uploaded Source

Built Distribution

rgrpc-2023.11.12-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

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