gapic-generator 0.16.0
Pre-release
Pre-release
Features
- Add a WIP optional lazy-import feature. Submodule
__init__.py
files use module level__getattr__
andimportlib
to selectively load sub-submodules, deferring import costs until submodules or types are used. - Streaming method support is improved and fleshed out.
- The semantics of the conversion script have changed: a single script is generated per API instead of one script per service. The script modifies a copy of its input directory and does not change the input source files.
- Nested message types in proto files produce import statements in generated unit tests.
- Generated gRPC transports gain a
create_channel
factory method that passes arbitrary keyword arguments through togrpc_helpers.create_channel
Tests
- Test that nested message types generate import statements.
- Add grpc streaming interceptor tests.
- Add tests for the alternative module import semantics.
Misc
- The
enums
submodule has been removed from the generated surface.