Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Leverage reflection to interact with GRPC in a familiar manner for users of the requests library.
from grpc_requests import Client
client = Client.get_by_endpoint("localhost:50051")
assert client.service_names == ["helloworld.Greeter"]
request_data = {"name": "sinsky"}
say_hello_response = client.request("helloworld.Greeter", "SayHello", request_data)
assert say_hello_response == {"message":"Hello sinsky!"}
pip install grpc_requests
In short:
Instantiate a client using the URL of a GRPC server and any authentication credentials you may need. If the server utilizes SSL (and it probably does) make sure to toggle that flag.
from grpc_requests import Client
metadata = [("authorization", "bearer my.cool.jwt")]
client = Client.get_by_endpoint("cool.servers.arecool:443", ssl=True, metadata=metadata)
The examples page provides more thorough examples of usage scenarioes, and the unit tests are also a useful reference point.
Contributions from the community are welcomed and greatly appreciated.
Before opening a PR, running python -m nox
can be used to ensure the contribution passes
linting and unit test checks for all supported versions of Python and protobuf.
You can also run complexity.sh to use
radon to look at the cyclomatic complexity,
maintainability index, and Halstead effort and difficulty of files.
PRs should be targeted to merge with the develop
branch. When opening a PR,
please assign it to a maintainer for review. The maintainers will take it from
there.
grpc_requests
currently does its best to support versions of Python and
protobuf that are within their support lifetimes. You may find that other versions
of dependencies work with the library, but this should be treated as a happy accident.
For Python, we target versions that are in the security and bugfix phases. For protobuf, we target versions that in their public support phase.
Python's support matrix Protobuf's support matrix
For questions, please start a conversation on the discussions page!
For feature requests or bugs, please open an issue and assign it the appropriate tag.
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Support for Python 3.7
requirements.txt
in build manifestprotobuf
version in requirements.txt
FAQs
grpc for Humans. grpc reflection support client
We found that grpc-requests demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.