DynagRPC
DynagRPC is a Python library to help writing/using gRPC and protobuf.
Simple server implementation
Say we have this protobuf definition for a simple addition RPC:
syntax = "proto3";
package tests.maths;
service Maths {
rpc Add (AddRequest) returns (AddResponse) {}
}
message AddRequest {
int32 first = 1;
int32 second = 2;
}
message AddResponse {
int32 result = 1;
}
Keeping just the proto (i.e., not compiled with protoc), we can use
it with the following implementation in Python is:
from dynagrpc import GrpcServer
server = GrpcServer("tests", "Maths", "maths")
@server.rpc()
def add(first, second):
return first + second
Which you can run, for example, with:
server.run(host="localhost", port="50051")
Metadata
Release files for dynagrpc 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dynagrpc-0.1.0.tar.gz | 16.1 kB | Without provenance | Details for dynagrpc-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dynagrpc-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dynagrpc-0.1.0-py3-none-any.whl |
Total release size: 31.9 kB
Release files / dynagrpc-0.1.0.tar.gz
| Download URL | dynagrpc-0.1.0.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d82f6d194c22f3adcc197dca0ef81b64868d9f22053f0f499b2725db3be209e
|
|
BLAKE2b-256 checksum How to use checksums |
fbca283029c627222d691986adabb80d0d1c102de24b1cc235efb2f277c6cbec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / dynagrpc-0.1.0-py3-none-any.whl
| Download URL | dynagrpc-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22572f6193f805506e2c88d7f14dd8d578019a08935713ccd8953f39b62adb9a
|
|
BLAKE2b-256 checksum How to use checksums |
f766b60e606dbb4eb112a9dd5b77c8473ce1317a54fccd5733c0d44457e91d4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Security for dynagrpc 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.