gapic-generator-python
gapic-generator-python copied to clipboard
Generate Python API client libraries from Protocol Buffers.
We're unable to generate client libraries in the `google.api` namespace because the namespace is already owned by `googleapis-common-protos` : https://github.com/googleapis/python-api-common-protos/tree/main/google/api There is a workaround, which is to generate the client...
Currently, the [GRPC transport](https://github.com/googleapis/gapic-generator-python/blob/29af25de98ebf590214abfd6c4b40c7502bd2d11/gapic/templates/%25namespace/%25name_%25version/%25sub/services/%25service/transports/grpc.py.j2#L136) ignores any credentials passed in, if a channel is configured explicitly. For easier debugging, add a warning to notify a GAPIC developer that the channel and...
Fixes https://github.com/googleapis/gapic-generator-python/issues/1874 🦕
Python 3.12 support was added in google-api-core [v2.15.0](https://github.com/googleapis/python-api-core/releases/tag/v2.15.0). We should update the template for `setup.py` to require `google-api-core` 2.15.0 for python 3.12 https://github.com/googleapis/gapic-generator-python/blob/44ca686eed9f2272d483fff362c9e637393d0613/gapic/templates/setup.py.j2#L33
`DEFAULT_ENDPOINT` will be deprecated once `DEFAULT_ENDPOINT_TEMPLATE` is introduced as part of the changes to support the universe domain. Once those changes are completed, we should remove `DEFAULT_ENDPOINT` from the jinja...
This repository's home page has a "Deplyments" section on the right-hand-side, which shows up as having a failed status and which links to deployment done with the GitHub mechanisms quite...
As per https://github.com/googleapis/python-api-core/issues/528, GAPIC libraries currently have a race condition with unary async retries, which should be fixed by https://github.com/googleapis/python-api-core/pull/495. And the GAPICs also do not handle the new streaming...
Example: https://github.com/googleapis/python-aiplatform/blob/3d468ed10629e3d0f211f413af054e21620e5952/google/cloud/aiplatform_v1beta1/services/prediction_service/client.py#L1079 Proto: ``` message CountTokensRequest { string endpoint = 1; repeated google.protobuf.Value instances = 2; } ``` Generated snippet and correction: ```diff from google.cloud import aiplatform_v1beta1 def sample_count_tokens(): #...
See https://github.com/googleapis/googleapis/blob/42231337d84e862d417b6d3fd6af50ba0fcf932c/google/cloud/deploy/v1/cloud_deploy.proto#L1607-L1609 where there is an asterisk character which is not surrounded by backticks or escaped. This caused the docs build to fail with ``` sphinx.errors.SphinxWarning: /usr/local/google/home/partheniou/git/google-cloud-python/packages/google-cloud-deploy/google/cloud/deploy_v1/types/cloud_deploy.py:docstring of google.cloud.deploy_v1.types.cloud_deploy.SkaffoldModules.SkaffoldGCSSource:5:Inline emphasis...
I had to [manually fix](https://github.com/googleapis/google-cloud-python/pull/11670/commits/4ac03586b552448eda5d62e2109fd9dd18ef83d9) a `google-cloud-python` PR that had a comment looking like this: ``` Returns: google.ai.generativelanguage_v1beta3.types.Permission: Permission resource grants user, group or the rest of the world access...