GeezerVison is showing github.com — Comparing v2.8.2...v2.9.0 · googleapis/python-api-core
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Permalink
base repository:
googleapis/python-api-core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
Uh oh!
There was an error while loading. Please reload this page.
base:
v2.8.2
head repository:
googleapis/python-api-core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
Uh oh!
There was an error while loading. Please reload this page.
compare:
v2.9.0
-
10
commits
-
38
files changed
-
7
contributors
Commits on Aug 10, 2022
-
fix: require python 3.7+ (#410)
* chore(python): drop python 3.6
Source-Link: googleapis/synthtool@4f89b13
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c
* require python 3.7+ in setup.py
* remove python 3.6 sample configs
* exclude templated README
* remove python 3.6 from noxfile
* remove python 3.6 from remaining files
* remove testing/constraints-3.6.txt
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
3 people
authored
Aug 10, 2022
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
Commits on Aug 24, 2022
-
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
Commits on Aug 30, 2022
-
Configuration menu
Browse the repository at this point in the history
-
feat: Make grpc transcode logic work in terms of protobuf python obje…
…cts (#428)
* feat: Make grpc transcode logic work in terms of protobuf python objects
(for context: [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto#L44))
Previously it worked on dictionaries only, but that causes problems.
In GAPIC the dictionaries are created through the same logic as JSON (there is no better built-in way), thus applying [protobuf json mapping](https://developers.google.com/protocol-buffers/docs/proto3#json) conversion logic in the process. Unfortunately converting a protobuf object to a dictionary and to JSON, although similar, are not the same thing. Specifically the `Timestamp`, `Duration`, `FieldMask`, `uint64`, `int64`, and `*Value` protobuf messages are converted to strings for JSON (instead of being properly converted to dicts for most of those types, and `int64/uint64` converted to `int` respectively). As a result a rountrip that GAPIC was relying on (protobuf object -> dict -> transcode -> protobuf object) did not work properly. For example, when converted to dictionary, every int64 field would be converted to `string` (because it is what proto-JSON mapping spec requires), but later, when we need to rebuild a message from a transcoded dictionary that would fail with the following error:
```
TypeError: '0' has type str, but expected one of: int
```
Note, `*Rules` thing from proto-plus does not help, becuase the type may happen inside common native protobuf stub messsages (like `google.type.Money`), fields of which are outside of scope of the proto-plus custom conversion logic.
Also, this change greatly simplifies the procedure of transcodding, eliminating multiple conversion steps (to and from dictionaries multiple times) making the whole logic significanly more efficient (python gapics are nutoriously known to be slow due to proto-plus stuff, so efficiency is important) and robust (JSON conversion logic does not interfere anymore with pure protobuf objects grpc transcoding)
* reformat code using black
* reformat code according to flake8
Co-authored-by: Anthonios Partheniou <[email protected]>
Configuration menu
Browse the repository at this point in the history
Commits on Sep 1, 2022
-
Configuration menu
Browse the repository at this point in the history
-
fix: restore support for grpcio-gcp (#418)
docs: add a note that grpcio-gcp is only supported in environments with protobuf < 4.x.x
docs: raise DeprecationWarning when 'grpcio-gcp' is used
fix(deps): require protobuf >= 3.20.1
Configuration menu
Browse the repository at this point in the history
-
Configuration menu
Browse the repository at this point in the history
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v2.8.2...v2.9.0
Uh oh!
There was an error while loading. Please reload this page.
|