oaas-grpc-compiler compiles gRPC proto files, with type information that can be verified using mypy, formatted with black, with the possibility of custom modules where the sources to be generated in.
The add_Type_to_server function is moved into the Servicer type as a static method: Type.add_to_server, because this is how OaaS can figure out if this is a gRPC service, or a simple service.
Usage
Usage: oaas-grpc-compiler [OPTIONS] GRPC_FILES
Options:
--module TEXT The module of the python package to generate
--output TEXT Output folder where to write the files
--help Show this message and exit.
Example
Proto file test.proto:
syntax = "proto3";
message Ping {
string text = 1;
}
message Pong {
string text = 1;
int32 len = 2;
}
service TestService {
rpc ping(Ping) returns (Pong) {}
rpc ping_copy(Ping) returns (Pong) {}
rpc ping_exception(Ping) returns (Pong) {}
}
Invocation:
oaas-grpc-compiler --module some.custom.module --output some/custom/module test.proto
Metadata
Release files for oaas_grpc_compiler 1.0.1
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 |
|---|---|---|---|---|
| oaas_grpc_compiler-1.0.1.tar.gz | 3.2 kB | Without provenance | Details for oaas_grpc_compiler-1.0.1.tar.gz |
Release files / oaas_grpc_compiler-1.0.1.tar.gz
| Download URL | oaas_grpc_compiler-1.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3aac3ebe1de5c1b96f96cc676d83dd917ff250dc5cc718fbac50a6d03c7a609f
|
|
BLAKE2b-256 checksum How to use checksums |
fb7f9c76772686f86104afe081ccf77f51085bddfd6c7128786811bb902454d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.8
|
Security for oaas_grpc_compiler 1.0.1
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.