google-api-core 2.30.2__tar.gz → 2.31.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google_api_core-2.30.2/google_api_core.egg-info → google_api_core-2.31.0}/PKG-INFO +14 -12
- {google_api_core-2.30.2 → google_api_core-2.31.0}/README.rst +5 -3
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/_python_version_support.py +27 -35
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/client_info.py +1 -1
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/gapic_v1/client_info.py +1 -1
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/grpc_helpers_async.py +1 -1
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/version.py +1 -1
- {google_api_core-2.30.2 → google_api_core-2.31.0/google_api_core.egg-info}/PKG-INFO +14 -12
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google_api_core.egg-info/requires.txt +7 -6
- {google_api_core-2.30.2 → google_api_core-2.31.0}/pyproject.toml +7 -8
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/test_bidi_async.py +1 -14
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_python_version_support.py +2 -2
- {google_api_core-2.30.2 → google_api_core-2.31.0}/LICENSE +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/MANIFEST.in +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/_python_package_support.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/_rest_streaming_base.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/bidi.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/bidi_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/bidi_base.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/client_logging.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/client_options.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/datetime_helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/exceptions.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/extended_operation.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/future/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/future/_helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/future/async_future.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/future/base.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/future/polling.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/gapic_v1/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/gapic_v1/config.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/gapic_v1/config_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/gapic_v1/method.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/gapic_v1/method_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/gapic_v1/routing_header.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/general_helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/grpc_helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/iam.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operation.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operation_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/abstract_operations_base_client.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/abstract_operations_client.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/operations_async_client.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/operations_client.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/operations_client_config.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/operations_rest_client_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/pagers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/pagers_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/pagers_base.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/transports/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/transports/base.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/transports/rest.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/transports/rest_asyncio.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/page_iterator.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/page_iterator_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/path_template.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/protobuf_helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/py.typed +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/rest_helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/rest_streaming.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/rest_streaming_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/retry/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/retry/retry_base.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/retry/retry_streaming.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/retry/retry_streaming_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/retry/retry_unary.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/retry/retry_unary_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/retry_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/timeout.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/universe.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/version_header.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google_api_core.egg-info/SOURCES.txt +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google_api_core.egg-info/dependency_links.txt +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/google_api_core.egg-info/top_level.txt +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/setup.cfg +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/setup.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/future/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/future/test_async_future.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/gapic/test_config_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/gapic/test_method_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/operations_v1/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/operations_v1/test_operations_async_client.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/retry/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/retry/test_retry_streaming_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/retry/test_retry_unary_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/test_grpc_helpers_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/test_operation_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/test_page_iterator_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/test_rest_streaming_async.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/future/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/future/test__helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/future/test_polling.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/gapic/test_client_info.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/gapic/test_config.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/gapic/test_method.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/gapic/test_routing_header.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/operations_v1/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/operations_v1/test_operations_client.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/operations_v1/test_operations_rest_client.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/retry/__init__.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/retry/test_retry_base.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/retry/test_retry_imports.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/retry/test_retry_streaming.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/retry/test_retry_unary.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_bidi.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_client_info.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_client_logging.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_client_options.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_datetime_helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_exceptions.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_extended_operation.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_grpc_helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_iam.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_operation.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_packaging.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_page_iterator.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_path_template.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_protobuf_helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_python_package_support.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_rest_helpers.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_rest_streaming.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_timeout.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_universe.py +0 -0
- {google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/test_version_header.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-api-core
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.31.0
|
|
4
4
|
Summary: Google API client core library
|
|
5
5
|
Author-email: Google LLC <googleapis-packages@google.com>
|
|
6
6
|
License: Apache 2.0
|
|
@@ -12,7 +12,6 @@ Classifier: Intended Audience :: Developers
|
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -20,22 +19,23 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.14
|
|
21
20
|
Classifier: Operating System :: OS Independent
|
|
22
21
|
Classifier: Topic :: Internet
|
|
23
|
-
Requires-Python: >=3.
|
|
22
|
+
Requires-Python: >=3.10
|
|
24
23
|
Description-Content-Type: text/x-rst
|
|
25
24
|
License-File: LICENSE
|
|
26
25
|
Requires-Dist: googleapis-common-protos<2.0.0,>=1.63.2
|
|
27
|
-
Requires-Dist: protobuf<8.0.0,>=
|
|
28
|
-
Requires-Dist: proto-plus<2.0.0,>=1.
|
|
26
|
+
Requires-Dist: protobuf<8.0.0,>=5.29.6
|
|
27
|
+
Requires-Dist: proto-plus<2.0.0,>=1.24.0
|
|
29
28
|
Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
|
|
30
29
|
Requires-Dist: google-auth<3.0.0,>=2.14.1
|
|
31
|
-
Requires-Dist: requests<3.0.0,>=2.
|
|
30
|
+
Requires-Dist: requests<3.0.0,>=2.33.0
|
|
32
31
|
Provides-Extra: async-rest
|
|
33
|
-
Requires-Dist: google-auth[aiohttp]<3.0.0,>=2.
|
|
32
|
+
Requires-Dist: google-auth[aiohttp]<3.0.0,>=2.14.1; extra == "async-rest"
|
|
33
|
+
Requires-Dist: aiohttp>=3.13.4; extra == "async-rest"
|
|
34
34
|
Provides-Extra: grpc
|
|
35
|
-
Requires-Dist: grpcio<2.0.0,>=1.
|
|
35
|
+
Requires-Dist: grpcio<2.0.0,>=1.41.0; extra == "grpc"
|
|
36
36
|
Requires-Dist: grpcio<2.0.0,>=1.49.1; python_version >= "3.11" and extra == "grpc"
|
|
37
37
|
Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14" and extra == "grpc"
|
|
38
|
-
Requires-Dist: grpcio-status<2.0.0,>=1.
|
|
38
|
+
Requires-Dist: grpcio-status<2.0.0,>=1.41.0; extra == "grpc"
|
|
39
39
|
Requires-Dist: grpcio-status<2.0.0,>=1.49.1; python_version >= "3.11" and extra == "grpc"
|
|
40
40
|
Requires-Dist: grpcio-status<2.0.0,>=1.75.1; python_version >= "3.14" and extra == "grpc"
|
|
41
41
|
Dynamic: license-file
|
|
@@ -58,13 +58,12 @@ common helpers used by all Google API clients. For more information, see the
|
|
|
58
58
|
|
|
59
59
|
Supported Python Versions
|
|
60
60
|
-------------------------
|
|
61
|
-
Python >= 3.
|
|
61
|
+
Python >= 3.10
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
Unsupported Python Versions
|
|
65
65
|
---------------------------
|
|
66
|
-
|
|
67
|
-
Python == 2.7, Python == 3.5, Python == 3.6, Python == 3.7, Python == 3.8.
|
|
66
|
+
Python <= 3.9
|
|
68
67
|
|
|
69
68
|
The last version of this library compatible with Python 2.7 and 3.5 is
|
|
70
69
|
`google-api-core==1.31.1`.
|
|
@@ -74,3 +73,6 @@ The last version of this library compatible with Python 3.6 is
|
|
|
74
73
|
|
|
75
74
|
The last version of this library compatible with Python 3.7 and 3.8 is
|
|
76
75
|
`google-api-core==2.29.0`.
|
|
76
|
+
|
|
77
|
+
The last version of this library compatible with Python 3.9 is
|
|
78
|
+
`google-api-core==2.30.3`.
|
|
@@ -16,13 +16,12 @@ common helpers used by all Google API clients. For more information, see the
|
|
|
16
16
|
|
|
17
17
|
Supported Python Versions
|
|
18
18
|
-------------------------
|
|
19
|
-
Python >= 3.
|
|
19
|
+
Python >= 3.10
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
Unsupported Python Versions
|
|
23
23
|
---------------------------
|
|
24
|
-
|
|
25
|
-
Python == 2.7, Python == 3.5, Python == 3.6, Python == 3.7, Python == 3.8.
|
|
24
|
+
Python <= 3.9
|
|
26
25
|
|
|
27
26
|
The last version of this library compatible with Python 2.7 and 3.5 is
|
|
28
27
|
`google-api-core==1.31.1`.
|
|
@@ -32,3 +31,6 @@ The last version of this library compatible with Python 3.6 is
|
|
|
32
31
|
|
|
33
32
|
The last version of this library compatible with Python 3.7 and 3.8 is
|
|
34
33
|
`google-api-core==2.29.0`.
|
|
34
|
+
|
|
35
|
+
The last version of this library compatible with Python 3.9 is
|
|
36
|
+
`google-api-core==2.30.3`.
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/_python_version_support.py
RENAMED
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import datetime
|
|
18
18
|
import enum
|
|
19
|
+
import functools
|
|
20
|
+
from importlib import metadata
|
|
19
21
|
import logging
|
|
20
22
|
import warnings
|
|
21
23
|
import sys
|
|
@@ -70,13 +72,6 @@ class VersionInfo(NamedTuple):
|
|
|
70
72
|
|
|
71
73
|
PYTHON_VERSIONS: List[VersionInfo] = [
|
|
72
74
|
# Refer to https://devguide.python.org/versions/ and the PEPs linked therefrom.
|
|
73
|
-
VersionInfo(
|
|
74
|
-
version="3.9",
|
|
75
|
-
python_beta=datetime.date(2020, 5, 18),
|
|
76
|
-
python_start=datetime.date(2020, 10, 5),
|
|
77
|
-
python_eol=datetime.date(2025, 10, 5),
|
|
78
|
-
gapic_end=datetime.date(2025, 10, 5) + datetime.timedelta(days=90),
|
|
79
|
-
),
|
|
80
75
|
VersionInfo(
|
|
81
76
|
version="3.10",
|
|
82
77
|
python_beta=datetime.date(2021, 5, 3),
|
|
@@ -139,37 +134,26 @@ def _flatten_message(text: str) -> str:
|
|
|
139
134
|
return " ".join(textwrap.dedent(text).strip().split())
|
|
140
135
|
|
|
141
136
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
# https://docs.python.org/3/library/importlib.metadata.html#importlib.metadata.packages_distributions
|
|
146
|
-
if sys.version_info < (3, 10):
|
|
147
|
-
|
|
148
|
-
def _get_pypi_package_name(module_name): # pragma: NO COVER
|
|
149
|
-
"""Determine the PyPI package name for a given module name."""
|
|
150
|
-
return None
|
|
137
|
+
@functools.cache
|
|
138
|
+
def _cached_packages_distributions():
|
|
139
|
+
return metadata.packages_distributions()
|
|
151
140
|
|
|
152
|
-
else:
|
|
153
|
-
from importlib import metadata
|
|
154
141
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
module_to_distributions = metadata.packages_distributions()
|
|
142
|
+
def _get_pypi_package_name(module_name):
|
|
143
|
+
"""Determine the PyPI package name for a given module name."""
|
|
144
|
+
try:
|
|
145
|
+
module_to_distributions = _cached_packages_distributions()
|
|
160
146
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
e,
|
|
170
|
-
)
|
|
147
|
+
if module_name in module_to_distributions: # pragma: NO COVER
|
|
148
|
+
return module_to_distributions[module_name][0]
|
|
149
|
+
except Exception as e: # pragma: NO COVER
|
|
150
|
+
_LOGGER.info(
|
|
151
|
+
"An error occurred while determining PyPI package name for %s: %s",
|
|
152
|
+
module_name,
|
|
153
|
+
e,
|
|
154
|
+
)
|
|
171
155
|
|
|
172
|
-
|
|
156
|
+
return None
|
|
173
157
|
|
|
174
158
|
|
|
175
159
|
def _get_distribution_and_import_packages(import_package: str) -> Tuple[str, Any]:
|
|
@@ -195,7 +179,6 @@ def check_python_version(
|
|
|
195
179
|
The support status of the current Python version.
|
|
196
180
|
"""
|
|
197
181
|
today = today or datetime.date.today()
|
|
198
|
-
package_label, _ = _get_distribution_and_import_packages(package)
|
|
199
182
|
|
|
200
183
|
python_version = sys.version_info
|
|
201
184
|
version_tuple = (python_version.major, python_version.minor)
|
|
@@ -221,7 +204,14 @@ def check_python_version(
|
|
|
221
204
|
return f"{version[0]}.{version[1]}"
|
|
222
205
|
return "at a currently supported version [https://devguide.python.org/versions]"
|
|
223
206
|
|
|
207
|
+
# Resolve the pretty package label lazily so we avoid any work on
|
|
208
|
+
# the happy path (supported Python version, no warning needed).
|
|
209
|
+
def get_package_label():
|
|
210
|
+
label, _ = _get_distribution_and_import_packages(package)
|
|
211
|
+
return label
|
|
212
|
+
|
|
224
213
|
if gapic_end < today:
|
|
214
|
+
package_label = get_package_label()
|
|
225
215
|
message = _flatten_message(
|
|
226
216
|
f"""
|
|
227
217
|
You are using a non-supported Python version ({py_version_str}).
|
|
@@ -236,6 +226,7 @@ def check_python_version(
|
|
|
236
226
|
|
|
237
227
|
eol_date = version_info.python_eol + EOL_GRACE_PERIOD
|
|
238
228
|
if eol_date <= today <= gapic_end:
|
|
229
|
+
package_label = get_package_label()
|
|
239
230
|
message = _flatten_message(
|
|
240
231
|
f"""
|
|
241
232
|
You are using a Python version ({py_version_str})
|
|
@@ -250,6 +241,7 @@ def check_python_version(
|
|
|
250
241
|
return PythonVersionStatus.PYTHON_VERSION_EOL
|
|
251
242
|
|
|
252
243
|
if gapic_deprecation <= today <= gapic_end:
|
|
244
|
+
package_label = get_package_label()
|
|
253
245
|
message = _flatten_message(
|
|
254
246
|
f"""
|
|
255
247
|
You are using a Python version ({py_version_str}) which Google will
|
|
@@ -45,7 +45,7 @@ class ClientInfo(object):
|
|
|
45
45
|
|
|
46
46
|
Args:
|
|
47
47
|
python_version (str): The Python interpreter version, for example,
|
|
48
|
-
``'3.
|
|
48
|
+
``'3.10.0'``.
|
|
49
49
|
grpc_version (Optional[str]): The gRPC library version.
|
|
50
50
|
api_core_version (str): The google-api-core library version.
|
|
51
51
|
gapic_version (Optional[str]): The version of gapic-generated client
|
|
@@ -33,7 +33,7 @@ class ClientInfo(client_info.ClientInfo):
|
|
|
33
33
|
|
|
34
34
|
Args:
|
|
35
35
|
python_version (str): The Python interpreter version, for example,
|
|
36
|
-
``'3.
|
|
36
|
+
``'3.10.0'``.
|
|
37
37
|
grpc_version (Optional[str]): The gRPC library version.
|
|
38
38
|
api_core_version (str): The google-api-core library version.
|
|
39
39
|
gapic_version (Optional[str]): The version of gapic-generated client
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
-
"""AsyncIO helpers for :mod:`grpc
|
|
15
|
+
"""AsyncIO helpers for :mod:`grpc`.
|
|
16
16
|
|
|
17
17
|
Please combine more detailed docstring in grpc_helpers.py to use following
|
|
18
18
|
functions. This module is implementing the same surface with AsyncIO semantics.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-api-core
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.31.0
|
|
4
4
|
Summary: Google API client core library
|
|
5
5
|
Author-email: Google LLC <googleapis-packages@google.com>
|
|
6
6
|
License: Apache 2.0
|
|
@@ -12,7 +12,6 @@ Classifier: Intended Audience :: Developers
|
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -20,22 +19,23 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.14
|
|
21
20
|
Classifier: Operating System :: OS Independent
|
|
22
21
|
Classifier: Topic :: Internet
|
|
23
|
-
Requires-Python: >=3.
|
|
22
|
+
Requires-Python: >=3.10
|
|
24
23
|
Description-Content-Type: text/x-rst
|
|
25
24
|
License-File: LICENSE
|
|
26
25
|
Requires-Dist: googleapis-common-protos<2.0.0,>=1.63.2
|
|
27
|
-
Requires-Dist: protobuf<8.0.0,>=
|
|
28
|
-
Requires-Dist: proto-plus<2.0.0,>=1.
|
|
26
|
+
Requires-Dist: protobuf<8.0.0,>=5.29.6
|
|
27
|
+
Requires-Dist: proto-plus<2.0.0,>=1.24.0
|
|
29
28
|
Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
|
|
30
29
|
Requires-Dist: google-auth<3.0.0,>=2.14.1
|
|
31
|
-
Requires-Dist: requests<3.0.0,>=2.
|
|
30
|
+
Requires-Dist: requests<3.0.0,>=2.33.0
|
|
32
31
|
Provides-Extra: async-rest
|
|
33
|
-
Requires-Dist: google-auth[aiohttp]<3.0.0,>=2.
|
|
32
|
+
Requires-Dist: google-auth[aiohttp]<3.0.0,>=2.14.1; extra == "async-rest"
|
|
33
|
+
Requires-Dist: aiohttp>=3.13.4; extra == "async-rest"
|
|
34
34
|
Provides-Extra: grpc
|
|
35
|
-
Requires-Dist: grpcio<2.0.0,>=1.
|
|
35
|
+
Requires-Dist: grpcio<2.0.0,>=1.41.0; extra == "grpc"
|
|
36
36
|
Requires-Dist: grpcio<2.0.0,>=1.49.1; python_version >= "3.11" and extra == "grpc"
|
|
37
37
|
Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14" and extra == "grpc"
|
|
38
|
-
Requires-Dist: grpcio-status<2.0.0,>=1.
|
|
38
|
+
Requires-Dist: grpcio-status<2.0.0,>=1.41.0; extra == "grpc"
|
|
39
39
|
Requires-Dist: grpcio-status<2.0.0,>=1.49.1; python_version >= "3.11" and extra == "grpc"
|
|
40
40
|
Requires-Dist: grpcio-status<2.0.0,>=1.75.1; python_version >= "3.14" and extra == "grpc"
|
|
41
41
|
Dynamic: license-file
|
|
@@ -58,13 +58,12 @@ common helpers used by all Google API clients. For more information, see the
|
|
|
58
58
|
|
|
59
59
|
Supported Python Versions
|
|
60
60
|
-------------------------
|
|
61
|
-
Python >= 3.
|
|
61
|
+
Python >= 3.10
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
Unsupported Python Versions
|
|
65
65
|
---------------------------
|
|
66
|
-
|
|
67
|
-
Python == 2.7, Python == 3.5, Python == 3.6, Python == 3.7, Python == 3.8.
|
|
66
|
+
Python <= 3.9
|
|
68
67
|
|
|
69
68
|
The last version of this library compatible with Python 2.7 and 3.5 is
|
|
70
69
|
`google-api-core==1.31.1`.
|
|
@@ -74,3 +73,6 @@ The last version of this library compatible with Python 3.6 is
|
|
|
74
73
|
|
|
75
74
|
The last version of this library compatible with Python 3.7 and 3.8 is
|
|
76
75
|
`google-api-core==2.29.0`.
|
|
76
|
+
|
|
77
|
+
The last version of this library compatible with Python 3.9 is
|
|
78
|
+
`google-api-core==2.30.3`.
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
googleapis-common-protos<2.0.0,>=1.63.2
|
|
2
|
-
protobuf<8.0.0,>=
|
|
3
|
-
proto-plus<2.0.0,>=1.
|
|
2
|
+
protobuf<8.0.0,>=5.29.6
|
|
3
|
+
proto-plus<2.0.0,>=1.24.0
|
|
4
4
|
google-auth<3.0.0,>=2.14.1
|
|
5
|
-
requests<3.0.0,>=2.
|
|
5
|
+
requests<3.0.0,>=2.33.0
|
|
6
6
|
|
|
7
7
|
[:python_version >= "3.13"]
|
|
8
8
|
proto-plus<2.0.0,>=1.25.0
|
|
9
9
|
|
|
10
10
|
[async_rest]
|
|
11
|
-
google-auth[aiohttp]<3.0.0,>=2.
|
|
11
|
+
google-auth[aiohttp]<3.0.0,>=2.14.1
|
|
12
|
+
aiohttp>=3.13.4
|
|
12
13
|
|
|
13
14
|
[grpc]
|
|
14
|
-
grpcio<2.0.0,>=1.
|
|
15
|
-
grpcio-status<2.0.0,>=1.
|
|
15
|
+
grpcio<2.0.0,>=1.41.0
|
|
16
|
+
grpcio-status<2.0.0,>=1.41.0
|
|
16
17
|
|
|
17
18
|
[grpc:python_version >= "3.11"]
|
|
18
19
|
grpcio<2.0.0,>=1.49.1
|
|
@@ -20,7 +20,7 @@ build-backend = "setuptools.build_meta"
|
|
|
20
20
|
name = "google-api-core"
|
|
21
21
|
authors = [{ name = "Google LLC", email = "googleapis-packages@google.com" }]
|
|
22
22
|
license = { text = "Apache 2.0" }
|
|
23
|
-
requires-python = ">=3.
|
|
23
|
+
requires-python = ">=3.10"
|
|
24
24
|
readme = "README.rst"
|
|
25
25
|
description = "Google API client core library"
|
|
26
26
|
classifiers = [
|
|
@@ -34,7 +34,6 @@ classifiers = [
|
|
|
34
34
|
"Programming Language :: Python",
|
|
35
35
|
"Programming Language :: Python :: 3",
|
|
36
36
|
|
|
37
|
-
"Programming Language :: Python :: 3.9",
|
|
38
37
|
"Programming Language :: Python :: 3.10",
|
|
39
38
|
"Programming Language :: Python :: 3.11",
|
|
40
39
|
"Programming Language :: Python :: 3.12",
|
|
@@ -45,11 +44,11 @@ classifiers = [
|
|
|
45
44
|
]
|
|
46
45
|
dependencies = [
|
|
47
46
|
"googleapis-common-protos >= 1.63.2, < 2.0.0",
|
|
48
|
-
"protobuf >=
|
|
49
|
-
"proto-plus >= 1.
|
|
47
|
+
"protobuf >= 5.29.6, < 8.0.0",
|
|
48
|
+
"proto-plus >= 1.24.0, < 2.0.0",
|
|
50
49
|
"proto-plus >= 1.25.0, < 2.0.0; python_version >= '3.13'",
|
|
51
50
|
"google-auth >= 2.14.1, < 3.0.0",
|
|
52
|
-
"requests >= 2.
|
|
51
|
+
"requests >= 2.33.0, < 3.0.0",
|
|
53
52
|
]
|
|
54
53
|
dynamic = ["version"]
|
|
55
54
|
|
|
@@ -59,12 +58,12 @@ Documentation = "https://googleapis.dev/python/google-api-core/latest/"
|
|
|
59
58
|
Repository = "https://github.com/googleapis/google-cloud-python"
|
|
60
59
|
|
|
61
60
|
[project.optional-dependencies]
|
|
62
|
-
async_rest = ["google-auth[aiohttp] >= 2.
|
|
61
|
+
async_rest = ["google-auth[aiohttp] >= 2.14.1, < 3.0.0", "aiohttp >= 3.13.4"]
|
|
63
62
|
grpc = [
|
|
64
|
-
"grpcio >= 1.
|
|
63
|
+
"grpcio >= 1.41.0, < 2.0.0",
|
|
65
64
|
"grpcio >= 1.49.1, < 2.0.0; python_version >= '3.11'",
|
|
66
65
|
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
|
|
67
|
-
"grpcio-status >= 1.
|
|
66
|
+
"grpcio-status >= 1.41.0, < 2.0.0",
|
|
68
67
|
"grpcio-status >= 1.49.1, < 2.0.0; python_version >= '3.11'",
|
|
69
68
|
"grpcio-status >= 1.75.1, < 2.0.0; python_version >= '3.14'",
|
|
70
69
|
]
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
import asyncio
|
|
17
17
|
|
|
18
18
|
from unittest import mock
|
|
@@ -33,15 +33,6 @@ except ImportError: # pragma: NO COVER
|
|
|
33
33
|
from google.api_core import bidi_async
|
|
34
34
|
from google.api_core import exceptions
|
|
35
35
|
|
|
36
|
-
# TODO: remove this when droppping support for "Python 3.10" and below.
|
|
37
|
-
if sys.version_info < (3, 10): # type: ignore[operator]
|
|
38
|
-
|
|
39
|
-
def aiter(obj):
|
|
40
|
-
return obj.__aiter__()
|
|
41
|
-
|
|
42
|
-
async def anext(obj):
|
|
43
|
-
return await obj.__anext__()
|
|
44
|
-
|
|
45
36
|
|
|
46
37
|
@pytest.mark.asyncio
|
|
47
38
|
class Test_AsyncRequestQueueGenerator:
|
|
@@ -185,10 +176,6 @@ class TestAsyncBidiRpc:
|
|
|
185
176
|
callback.assert_called_once_with(mock.sentinel.future)
|
|
186
177
|
|
|
187
178
|
@pytest.mark.asyncio
|
|
188
|
-
@pytest.mark.skipif(
|
|
189
|
-
sys.version_info < (3, 8), # type: ignore[operator]
|
|
190
|
-
reason="Versions of Python below 3.8 don't provide support for assert_awaited_once",
|
|
191
|
-
)
|
|
192
179
|
async def test_metadata(self):
|
|
193
180
|
rpc, call = make_async_rpc()
|
|
194
181
|
bidi_rpc = bidi_async.AsyncBidiRpc(rpc, metadata=mock.sentinel.A)
|
|
@@ -164,7 +164,7 @@ def test_all_tracked_versions_and_date_scenarios(
|
|
|
164
164
|
|
|
165
165
|
def test_override_gapic_end_only():
|
|
166
166
|
"""Test behavior when only gapic_end is manually overridden."""
|
|
167
|
-
version_tuple = (3,
|
|
167
|
+
version_tuple = (3, 10)
|
|
168
168
|
original_info = PYTHON_VERSION_INFO[version_tuple]
|
|
169
169
|
mock_py_version = VersionInfoMock(major=version_tuple[0], minor=version_tuple[1])
|
|
170
170
|
|
|
@@ -199,7 +199,7 @@ def test_override_gapic_end_only():
|
|
|
199
199
|
|
|
200
200
|
def test_override_gapic_deprecation_only():
|
|
201
201
|
"""Test behavior when only gapic_deprecation is manually overridden."""
|
|
202
|
-
version_tuple = (3,
|
|
202
|
+
version_tuple = (3, 10)
|
|
203
203
|
original_info = PYTHON_VERSION_INFO[version_tuple]
|
|
204
204
|
mock_py_version = VersionInfoMock(major=version_tuple[0], minor=version_tuple[1])
|
|
205
205
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/_python_package_support.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/gapic_v1/routing_header.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/operations_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/pagers_async.py
RENAMED
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/pagers_base.py
RENAMED
|
File without changes
|
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/transports/base.py
RENAMED
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/operations_v1/transports/rest.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/retry/retry_streaming_async.py
RENAMED
|
File without changes
|
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/google/api_core/retry/retry_unary_async.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/google_api_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/retry/test_retry_streaming_async.py
RENAMED
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/retry/test_retry_unary_async.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/tests/asyncio/test_rest_streaming_async.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_api_core-2.30.2 → google_api_core-2.31.0}/tests/unit/operations_v1/test_operations_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|