No description has been added so far.
Project description
This is a small script tailored to be used in CI environments and piplines to completely take care of generating typescript grpc stubs from protobuf files.
$ pip install grpc_web_proto_compile
To compile a directory with your proto files, simply run:
$ grpc_web_proto_compile path/to/your/proto/sources ./out
$ grpc_web_proto_compile --help # For a list of available options
If you cloned the repository, the command looks like:
$ git clone https://github.com/romnn/grpc-web-proto-compile
$ cd grpc-web-proto-compile/
$ python -m grpc_web_proto_compile.cli ./tests/sample/ ./out
Development
For detailed instructions see CONTRIBUTING.
Tests
You can run tests with
$ invoke test
$ invoke test --min-coverage=90 # Fail when code coverage is below 90%
$ invoke type-check # Run mypy type checks
Linting and formatting
Lint and format the code with
$ invoke format
$ invoke lint
All of this happens when you run invoke pre-commit.
Note
This project is still in the alpha stage and should not be considered production ready.
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
Built Distribution
Close
Hashes for grpc_web_proto_compile-1.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d3e69893140a4353d9e50f7411186da87079a21e2469e9d9f650e73db70b65d |
|
MD5 | b34872ae08dda51c5295475a70c6ce98 |
|
BLAKE2b-256 | 2d3a209e0eb2496f08c76cf43ee2f216a0d12ba95eecf79a84c8067da1814790 |
Close
Hashes for grpc_web_proto_compile-1.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e818008576fe023ae24d796ab85743ddff25c1c7a0500583fd7d4e0dc95e1112 |
|
MD5 | c25274cc7811ce7acf4061b4465d3e8c |
|
BLAKE2b-256 | 1010d668024479078df039bd315c99dd62c119849ab5802ab1ea8fca6d2c15db |