Skip to main content

gRPC Importer

This package contains helper tools for working with gRPC services in Python. Specifically it provides import hooks for the Python import machinery which lets users import .proto files directly without having to precompile them, and a gRPC server setup wrapper to streamline the process of hosting gRPC services.

Usage

Register import hooks by calling register_import_hook(). This call optionally takes the arguments save_compiled, well_known_protos, and extra_args, which specifies if compiled Python files should be written into the project folder and gives additional arguments to protoc. All arguments are specified per package, for which the closest parent package or __main__'s configuration is used.

After registration the gRPC importer will auto-magically be used to import modules ending in _pb2 or _pb2_grpc if a corresponding .proto file is present in the same package. The importer checks the modified time on the produced Python source files to determine if a fresh compile is needed for every import.

This package also includes a helper function serve() which can be used to start a gRPC server.

Metadata

Release files for grpcio-helpers 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for grpcio-helpers 0.0.9
File Interpreter ABI Platform Actions
grpcio_helpers-0.0.9-py3-none-any.whl Python 3 none any Details for grpcio_helpers-0.0.9-py3-none-any.whl

Release files / grpcio_helpers-0.0.9-py3-none-any.whl

Download URL grpcio_helpers-0.0.9-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1f4576cd8cd78a2b2fef8b11cfaca4cae758fa9aa4aca4c520ade331eabdbc2
BLAKE2b-256 checksum
How to use checksums
9bce6981bf301edcc661b34ee64fe2b04fd5c50b12a8c703deb10ca5891e8155
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Security for grpcio-helpers 0.0.9

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page