A simple to use Python gRPC Reflection Client
Project description
rgprc
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
python3 -m venv /where/you/like/to/store/venvssource /venv/bin/activatepip install -r dev-requirements.txtpre-commit install
Running tests
Running tests.sh will execute the following actions:
ruff check ./rgrpc- will run the ruff linter over core source filesruff format ./rgrpc- will run the ruff formatter over core source filesmypy 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
Release history Release notifications | RSS feed
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rgrpc-2023.11.12.tar.gz.
File metadata
- Download URL: rgrpc-2023.11.12.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4899cdeb9de4936c16281297178e3ff8506352036fc8f3b1568b201b844f85a
|
|
| MD5 |
bddde765a320dc99a928f83ff049df5e
|
|
| BLAKE2b-256 |
9ca195f5ac1e232da0904bd4cefc570957a63efd085e71d1e0bcde84a4332325
|
File details
Details for the file rgrpc-2023.11.12-py3-none-any.whl.
File metadata
- Download URL: rgrpc-2023.11.12-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
377e6b43c9503847faade772694126694686596d0afd2a3b9d83f371586537e8
|
|
| MD5 |
aa081862e89cadb320999febd330df72
|
|
| BLAKE2b-256 |
6bb81aeaeddc2bd25a488a972c6d2d1e4cfac263c07f9e9aa24825c16ba824ef
|