Skip to main content

No description has been added so far.

Project description

Build Status PyPI version License Test Coverage

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

grpc_web_proto_compile-1.1.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

grpc_web_proto_compile-1.1.3-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file grpc_web_proto_compile-1.1.3.tar.gz.

File metadata

  • Download URL: grpc_web_proto_compile-1.1.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for grpc_web_proto_compile-1.1.3.tar.gz
Algorithm Hash digest
SHA256 d30e715b276cc62228b32b27dc1b8c0407f93e6d3545755a04abe9f217b70121
MD5 d96741da2fc0a0f9b3a3de326849595b
BLAKE2b-256 2146b2fc763d59a5cb6339e64a416da8ab59a5d75e6c6a416e43286463f856d2

See more details on using hashes here.

File details

Details for the file grpc_web_proto_compile-1.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: grpc_web_proto_compile-1.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for grpc_web_proto_compile-1.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da88f1cf281befcea3ee685596f10656ad3a6559cf1afd540a7a0c8cc8e9df6a
MD5 dee9350881596481ce0b0548a5920ef3
BLAKE2b-256 30c831460d9b641ad839a0bc634389657e82854b29168404d3ebbf4755c50b25

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page