google-cloud-documentai 3.14.0__tar.gz → 3.15.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_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/MANIFEST.in +1 -1
- {google_cloud_documentai-3.14.0/google_cloud_documentai.egg-info → google_cloud_documentai-3.15.0}/PKG-INFO +19 -17
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/README.rst +14 -11
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai/__init__.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai/gapic_version.py +2 -2
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/__init__.py +4 -21
- {google_cloud_documentai-3.14.0/google/cloud/documentai_v1beta3 → google_cloud_documentai-3.15.0/google/cloud/documentai_v1}/gapic_version.py +2 -2
- {google_cloud_documentai-3.14.0/google/cloud/documentai_v1beta3 → google_cloud_documentai-3.15.0/google/cloud/documentai_v1}/services/__init__.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/services/document_processor_service/__init__.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/services/document_processor_service/async_client.py +23 -23
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/services/document_processor_service/client.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/services/document_processor_service/pagers.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/services/document_processor_service/transports/__init__.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/services/document_processor_service/transports/base.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/services/document_processor_service/transports/grpc.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/services/document_processor_service/transports/grpc_asyncio.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/services/document_processor_service/transports/rest.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/services/document_processor_service/transports/rest_base.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/types/__init__.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/types/barcode.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/types/document.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/types/document_io.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/types/document_processor_service.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/types/document_schema.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/types/evaluation.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/types/geometry.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/types/operation_metadata.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/types/processor.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/types/processor_type.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/__init__.py +4 -21
- {google_cloud_documentai-3.14.0/google/cloud/documentai_v1 → google_cloud_documentai-3.15.0/google/cloud/documentai_v1beta3}/gapic_version.py +2 -2
- {google_cloud_documentai-3.14.0/tests → google_cloud_documentai-3.15.0/google/cloud/documentai_v1beta3/services}/__init__.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_processor_service/__init__.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_processor_service/async_client.py +25 -25
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_processor_service/client.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_processor_service/pagers.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/__init__.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/base.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/grpc.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/grpc_asyncio.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/rest.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/rest_base.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_service/__init__.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_service/async_client.py +7 -7
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_service/client.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_service/pagers.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_service/transports/__init__.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_service/transports/base.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_service/transports/grpc.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_service/transports/grpc_asyncio.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_service/transports/rest.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/services/document_service/transports/rest_base.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/__init__.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/barcode.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/dataset.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/document.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/document_io.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/document_processor_service.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/document_schema.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/document_service.py +4 -2
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/evaluation.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/geometry.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/operation_metadata.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/processor.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/types/processor_type.py +1 -1
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0/google_cloud_documentai.egg-info}/PKG-INFO +19 -17
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google_cloud_documentai.egg-info/requires.txt +2 -2
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/setup.py +5 -6
- {google_cloud_documentai-3.14.0/tests/unit → google_cloud_documentai-3.15.0/tests}/__init__.py +1 -1
- {google_cloud_documentai-3.14.0/google/cloud/documentai_v1/services → google_cloud_documentai-3.15.0/tests/unit}/__init__.py +1 -1
- google_cloud_documentai-3.15.0/tests/unit/gapic/__init__.py +15 -0
- google_cloud_documentai-3.15.0/tests/unit/gapic/documentai_v1/__init__.py +15 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/tests/unit/gapic/documentai_v1/test_document_processor_service.py +354 -404
- google_cloud_documentai-3.15.0/tests/unit/gapic/documentai_v1beta3/__init__.py +15 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/tests/unit/gapic/documentai_v1beta3/test_document_processor_service.py +369 -420
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/tests/unit/gapic/documentai_v1beta3/test_document_service.py +126 -134
- google_cloud_documentai-3.14.0/tests/unit/gapic/__init__.py +0 -15
- google_cloud_documentai-3.14.0/tests/unit/gapic/documentai_v1/__init__.py +0 -15
- google_cloud_documentai-3.14.0/tests/unit/gapic/documentai_v1beta3/__init__.py +0 -15
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/LICENSE +0 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai/py.typed +0 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/gapic_metadata.json +0 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1/py.typed +0 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/gapic_metadata.json +0 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google/cloud/documentai_v1beta3/py.typed +0 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google_cloud_documentai.egg-info/SOURCES.txt +0 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google_cloud_documentai.egg-info/dependency_links.txt +0 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google_cloud_documentai.egg-info/not-zip-safe +0 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/google_cloud_documentai.egg-info/top_level.txt +0 -0
- {google_cloud_documentai-3.14.0 → google_cloud_documentai-3.15.0}/setup.cfg +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-cloud-documentai
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.15.0
|
|
4
4
|
Summary: Google Cloud Documentai API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-documentai
|
|
6
6
|
Author: Google LLC
|
|
7
7
|
Author-email: googleapis-packages@google.com
|
|
8
|
-
License: Apache
|
|
8
|
+
License: Apache-2.0
|
|
9
9
|
Platform: Posix; MacOS X; Windows
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
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,11 +19,11 @@ 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
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: google-api-core[grpc]<3.0.0,>=2.
|
|
24
|
+
Requires-Dist: google-api-core[grpc]<3.0.0,>=2.17.1
|
|
26
25
|
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
|
|
27
|
-
Requires-Dist: grpcio<2.0.0,>=1.
|
|
26
|
+
Requires-Dist: grpcio<2.0.0,>=1.59.0
|
|
28
27
|
Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
|
|
29
28
|
Requires-Dist: proto-plus<2.0.0,>=1.22.3
|
|
30
29
|
Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
|
|
@@ -41,12 +40,14 @@ Dynamic: requires-dist
|
|
|
41
40
|
Dynamic: requires-python
|
|
42
41
|
Dynamic: summary
|
|
43
42
|
|
|
44
|
-
Python Client for Document AI
|
|
45
|
-
|
|
43
|
+
Python Client for Cloud Document AI
|
|
44
|
+
===================================
|
|
46
45
|
|
|
47
46
|
|stable| |pypi| |versions|
|
|
48
47
|
|
|
49
|
-
`Document AI`_: Service to parse structured information from unstructured or
|
|
48
|
+
`Cloud Document AI`_: Service to parse structured information from unstructured or
|
|
49
|
+
semi-structured documents using state-of-the-art Google AI such as natural
|
|
50
|
+
language, computer vision, translation, and AutoML.
|
|
50
51
|
|
|
51
52
|
- `Client Library Documentation`_
|
|
52
53
|
- `Product Documentation`_
|
|
@@ -57,7 +58,7 @@ Python Client for Document AI
|
|
|
57
58
|
:target: https://pypi.org/project/google-cloud-documentai/
|
|
58
59
|
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-documentai.svg
|
|
59
60
|
:target: https://pypi.org/project/google-cloud-documentai/
|
|
60
|
-
..
|
|
61
|
+
.. _Cloud Document AI: https://cloud.google.com/document-ai/docs
|
|
61
62
|
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/documentai/latest/summary_overview
|
|
62
63
|
.. _Product Documentation: https://cloud.google.com/document-ai/docs
|
|
63
64
|
|
|
@@ -68,12 +69,12 @@ In order to use this library, you first need to go through the following steps:
|
|
|
68
69
|
|
|
69
70
|
1. `Select or create a Cloud Platform project.`_
|
|
70
71
|
2. `Enable billing for your project.`_
|
|
71
|
-
3. `Enable the Document AI.`_
|
|
72
|
+
3. `Enable the Cloud Document AI.`_
|
|
72
73
|
4. `Set up Authentication.`_
|
|
73
74
|
|
|
74
75
|
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
|
|
75
76
|
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
|
|
76
|
-
.. _Enable the Document AI.: https://cloud.google.com/document-ai/docs
|
|
77
|
+
.. _Enable the Cloud Document AI.: https://cloud.google.com/document-ai/docs
|
|
77
78
|
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
78
79
|
|
|
79
80
|
Installation
|
|
@@ -104,14 +105,15 @@ Supported Python Versions
|
|
|
104
105
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
105
106
|
Python.
|
|
106
107
|
|
|
107
|
-
Python >= 3.
|
|
108
|
+
Python >= 3.10, including 3.14
|
|
108
109
|
|
|
109
110
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
110
111
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
111
112
|
|
|
112
113
|
Unsupported Python Versions
|
|
113
114
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
114
|
-
Python <= 3.
|
|
115
|
+
Python <= 3.9
|
|
116
|
+
|
|
115
117
|
|
|
116
118
|
If you are using an `end-of-life`_
|
|
117
119
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
@@ -140,14 +142,14 @@ Windows
|
|
|
140
142
|
Next Steps
|
|
141
143
|
~~~~~~~~~~
|
|
142
144
|
|
|
143
|
-
- Read the `Client Library Documentation`_ for Document AI
|
|
145
|
+
- Read the `Client Library Documentation`_ for Cloud Document AI
|
|
144
146
|
to see other available methods on the client.
|
|
145
|
-
- Read the `Document AI Product documentation`_ to learn
|
|
147
|
+
- Read the `Cloud Document AI Product documentation`_ to learn
|
|
146
148
|
more about the product and see How-to Guides.
|
|
147
149
|
- View this `README`_ to see the full list of Cloud
|
|
148
150
|
APIs that we cover.
|
|
149
151
|
|
|
150
|
-
..
|
|
152
|
+
.. _Cloud Document AI Product documentation: https://cloud.google.com/document-ai/docs
|
|
151
153
|
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
152
154
|
|
|
153
155
|
Logging
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
Python Client for Document AI
|
|
2
|
-
|
|
1
|
+
Python Client for Cloud Document AI
|
|
2
|
+
===================================
|
|
3
3
|
|
|
4
4
|
|stable| |pypi| |versions|
|
|
5
5
|
|
|
6
|
-
`Document AI`_: Service to parse structured information from unstructured or
|
|
6
|
+
`Cloud Document AI`_: Service to parse structured information from unstructured or
|
|
7
|
+
semi-structured documents using state-of-the-art Google AI such as natural
|
|
8
|
+
language, computer vision, translation, and AutoML.
|
|
7
9
|
|
|
8
10
|
- `Client Library Documentation`_
|
|
9
11
|
- `Product Documentation`_
|
|
@@ -14,7 +16,7 @@ Python Client for Document AI
|
|
|
14
16
|
:target: https://pypi.org/project/google-cloud-documentai/
|
|
15
17
|
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-documentai.svg
|
|
16
18
|
:target: https://pypi.org/project/google-cloud-documentai/
|
|
17
|
-
..
|
|
19
|
+
.. _Cloud Document AI: https://cloud.google.com/document-ai/docs
|
|
18
20
|
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/documentai/latest/summary_overview
|
|
19
21
|
.. _Product Documentation: https://cloud.google.com/document-ai/docs
|
|
20
22
|
|
|
@@ -25,12 +27,12 @@ In order to use this library, you first need to go through the following steps:
|
|
|
25
27
|
|
|
26
28
|
1. `Select or create a Cloud Platform project.`_
|
|
27
29
|
2. `Enable billing for your project.`_
|
|
28
|
-
3. `Enable the Document AI.`_
|
|
30
|
+
3. `Enable the Cloud Document AI.`_
|
|
29
31
|
4. `Set up Authentication.`_
|
|
30
32
|
|
|
31
33
|
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
|
|
32
34
|
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
|
|
33
|
-
.. _Enable the Document AI.: https://cloud.google.com/document-ai/docs
|
|
35
|
+
.. _Enable the Cloud Document AI.: https://cloud.google.com/document-ai/docs
|
|
34
36
|
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
35
37
|
|
|
36
38
|
Installation
|
|
@@ -61,14 +63,15 @@ Supported Python Versions
|
|
|
61
63
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
62
64
|
Python.
|
|
63
65
|
|
|
64
|
-
Python >= 3.
|
|
66
|
+
Python >= 3.10, including 3.14
|
|
65
67
|
|
|
66
68
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
67
69
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
68
70
|
|
|
69
71
|
Unsupported Python Versions
|
|
70
72
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
71
|
-
Python <= 3.
|
|
73
|
+
Python <= 3.9
|
|
74
|
+
|
|
72
75
|
|
|
73
76
|
If you are using an `end-of-life`_
|
|
74
77
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
@@ -97,14 +100,14 @@ Windows
|
|
|
97
100
|
Next Steps
|
|
98
101
|
~~~~~~~~~~
|
|
99
102
|
|
|
100
|
-
- Read the `Client Library Documentation`_ for Document AI
|
|
103
|
+
- Read the `Client Library Documentation`_ for Cloud Document AI
|
|
101
104
|
to see other available methods on the client.
|
|
102
|
-
- Read the `Document AI Product documentation`_ to learn
|
|
105
|
+
- Read the `Cloud Document AI Product documentation`_ to learn
|
|
103
106
|
more about the product and see How-to Guides.
|
|
104
107
|
- View this `README`_ to see the full list of Cloud
|
|
105
108
|
APIs that we cover.
|
|
106
109
|
|
|
107
|
-
..
|
|
110
|
+
.. _Cloud Document AI Product documentation: https://cloud.google.com/document-ai/docs
|
|
108
111
|
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
109
112
|
|
|
110
113
|
Logging
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
__version__ = "3.
|
|
16
|
+
__version__ = "3.15.0" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -21,13 +21,7 @@ from google.cloud.documentai_v1 import gapic_version as package_version
|
|
|
21
21
|
|
|
22
22
|
__version__ = package_version.__version__
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
from importlib import metadata
|
|
26
|
-
else: # pragma: NO COVER
|
|
27
|
-
# TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
|
|
28
|
-
# this code path once we drop support for Python 3.7
|
|
29
|
-
import importlib_metadata as metadata
|
|
30
|
-
|
|
24
|
+
from importlib import metadata
|
|
31
25
|
|
|
32
26
|
from .services.document_processor_service import (
|
|
33
27
|
DocumentProcessorServiceAsyncClient,
|
|
@@ -112,28 +106,17 @@ else: # pragma: NO COVER
|
|
|
112
106
|
# An older version of api_core is installed which does not define the
|
|
113
107
|
# functions above. We do equivalent checks manually.
|
|
114
108
|
try:
|
|
115
|
-
import sys
|
|
116
109
|
import warnings
|
|
117
110
|
|
|
118
111
|
_py_version_str = sys.version.split()[0]
|
|
119
112
|
_package_label = "google.cloud.documentai_v1"
|
|
120
|
-
if sys.version_info < (3,
|
|
113
|
+
if sys.version_info < (3, 10):
|
|
121
114
|
warnings.warn(
|
|
122
115
|
"You are using a non-supported Python version "
|
|
123
116
|
+ f"({_py_version_str}). Google will not post any further "
|
|
124
117
|
+ f"updates to {_package_label} supporting this Python version. "
|
|
125
118
|
+ "Please upgrade to the latest Python version, or at "
|
|
126
|
-
+ f"least to Python 3.
|
|
127
|
-
FutureWarning,
|
|
128
|
-
)
|
|
129
|
-
if sys.version_info[:2] == (3, 9):
|
|
130
|
-
warnings.warn(
|
|
131
|
-
f"You are using a Python version ({_py_version_str}) "
|
|
132
|
-
+ f"which Google will stop supporting in {_package_label} in "
|
|
133
|
-
+ "January 2026. Please "
|
|
134
|
-
+ "upgrade to the latest Python version, or at "
|
|
135
|
-
+ "least to Python 3.10, before then, and "
|
|
136
|
-
+ f"then update {_package_label}.",
|
|
119
|
+
+ f"least to Python 3.10, and then update {_package_label}.",
|
|
137
120
|
FutureWarning,
|
|
138
121
|
)
|
|
139
122
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
__version__ = "3.
|
|
16
|
+
__version__ = "3.15.0" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2026 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -515,11 +515,11 @@ class DocumentProcessorServiceAsyncClient:
|
|
|
515
515
|
)
|
|
516
516
|
|
|
517
517
|
# Make the request
|
|
518
|
-
operation = client.batch_process_documents(request=request)
|
|
518
|
+
operation = await client.batch_process_documents(request=request)
|
|
519
519
|
|
|
520
520
|
print("Waiting for operation to complete...")
|
|
521
521
|
|
|
522
|
-
response =
|
|
522
|
+
response = await operation.result()
|
|
523
523
|
|
|
524
524
|
# Handle the response
|
|
525
525
|
print(response)
|
|
@@ -1265,11 +1265,11 @@ class DocumentProcessorServiceAsyncClient:
|
|
|
1265
1265
|
)
|
|
1266
1266
|
|
|
1267
1267
|
# Make the request
|
|
1268
|
-
operation = client.train_processor_version(request=request)
|
|
1268
|
+
operation = await client.train_processor_version(request=request)
|
|
1269
1269
|
|
|
1270
1270
|
print("Waiting for operation to complete...")
|
|
1271
1271
|
|
|
1272
|
-
response =
|
|
1272
|
+
response = await operation.result()
|
|
1273
1273
|
|
|
1274
1274
|
# Handle the response
|
|
1275
1275
|
print(response)
|
|
@@ -1661,11 +1661,11 @@ class DocumentProcessorServiceAsyncClient:
|
|
|
1661
1661
|
)
|
|
1662
1662
|
|
|
1663
1663
|
# Make the request
|
|
1664
|
-
operation = client.delete_processor_version(request=request)
|
|
1664
|
+
operation = await client.delete_processor_version(request=request)
|
|
1665
1665
|
|
|
1666
1666
|
print("Waiting for operation to complete...")
|
|
1667
1667
|
|
|
1668
|
-
response =
|
|
1668
|
+
response = await operation.result()
|
|
1669
1669
|
|
|
1670
1670
|
# Handle the response
|
|
1671
1671
|
print(response)
|
|
@@ -1799,11 +1799,11 @@ class DocumentProcessorServiceAsyncClient:
|
|
|
1799
1799
|
)
|
|
1800
1800
|
|
|
1801
1801
|
# Make the request
|
|
1802
|
-
operation = client.deploy_processor_version(request=request)
|
|
1802
|
+
operation = await client.deploy_processor_version(request=request)
|
|
1803
1803
|
|
|
1804
1804
|
print("Waiting for operation to complete...")
|
|
1805
1805
|
|
|
1806
|
-
response =
|
|
1806
|
+
response = await operation.result()
|
|
1807
1807
|
|
|
1808
1808
|
# Handle the response
|
|
1809
1809
|
print(response)
|
|
@@ -1930,11 +1930,11 @@ class DocumentProcessorServiceAsyncClient:
|
|
|
1930
1930
|
)
|
|
1931
1931
|
|
|
1932
1932
|
# Make the request
|
|
1933
|
-
operation = client.undeploy_processor_version(request=request)
|
|
1933
|
+
operation = await client.undeploy_processor_version(request=request)
|
|
1934
1934
|
|
|
1935
1935
|
print("Waiting for operation to complete...")
|
|
1936
1936
|
|
|
1937
|
-
response =
|
|
1937
|
+
response = await operation.result()
|
|
1938
1938
|
|
|
1939
1939
|
# Handle the response
|
|
1940
1940
|
print(response)
|
|
@@ -2207,11 +2207,11 @@ class DocumentProcessorServiceAsyncClient:
|
|
|
2207
2207
|
)
|
|
2208
2208
|
|
|
2209
2209
|
# Make the request
|
|
2210
|
-
operation = client.delete_processor(request=request)
|
|
2210
|
+
operation = await client.delete_processor(request=request)
|
|
2211
2211
|
|
|
2212
2212
|
print("Waiting for operation to complete...")
|
|
2213
2213
|
|
|
2214
|
-
response =
|
|
2214
|
+
response = await operation.result()
|
|
2215
2215
|
|
|
2216
2216
|
# Handle the response
|
|
2217
2217
|
print(response)
|
|
@@ -2342,11 +2342,11 @@ class DocumentProcessorServiceAsyncClient:
|
|
|
2342
2342
|
)
|
|
2343
2343
|
|
|
2344
2344
|
# Make the request
|
|
2345
|
-
operation = client.enable_processor(request=request)
|
|
2345
|
+
operation = await client.enable_processor(request=request)
|
|
2346
2346
|
|
|
2347
2347
|
print("Waiting for operation to complete...")
|
|
2348
2348
|
|
|
2349
|
-
response =
|
|
2349
|
+
response = await operation.result()
|
|
2350
2350
|
|
|
2351
2351
|
# Handle the response
|
|
2352
2352
|
print(response)
|
|
@@ -2447,11 +2447,11 @@ class DocumentProcessorServiceAsyncClient:
|
|
|
2447
2447
|
)
|
|
2448
2448
|
|
|
2449
2449
|
# Make the request
|
|
2450
|
-
operation = client.disable_processor(request=request)
|
|
2450
|
+
operation = await client.disable_processor(request=request)
|
|
2451
2451
|
|
|
2452
2452
|
print("Waiting for operation to complete...")
|
|
2453
2453
|
|
|
2454
|
-
response =
|
|
2454
|
+
response = await operation.result()
|
|
2455
2455
|
|
|
2456
2456
|
# Handle the response
|
|
2457
2457
|
print(response)
|
|
@@ -2558,11 +2558,11 @@ class DocumentProcessorServiceAsyncClient:
|
|
|
2558
2558
|
)
|
|
2559
2559
|
|
|
2560
2560
|
# Make the request
|
|
2561
|
-
operation = client.set_default_processor_version(request=request)
|
|
2561
|
+
operation = await client.set_default_processor_version(request=request)
|
|
2562
2562
|
|
|
2563
2563
|
print("Waiting for operation to complete...")
|
|
2564
2564
|
|
|
2565
|
-
response =
|
|
2565
|
+
response = await operation.result()
|
|
2566
2566
|
|
|
2567
2567
|
# Handle the response
|
|
2568
2568
|
print(response)
|
|
@@ -2674,11 +2674,11 @@ class DocumentProcessorServiceAsyncClient:
|
|
|
2674
2674
|
)
|
|
2675
2675
|
|
|
2676
2676
|
# Make the request
|
|
2677
|
-
operation = client.review_document(request=request)
|
|
2677
|
+
operation = await client.review_document(request=request)
|
|
2678
2678
|
|
|
2679
2679
|
print("Waiting for operation to complete...")
|
|
2680
2680
|
|
|
2681
|
-
response =
|
|
2681
|
+
response = await operation.result()
|
|
2682
2682
|
|
|
2683
2683
|
# Handle the response
|
|
2684
2684
|
print(response)
|
|
@@ -2807,11 +2807,11 @@ class DocumentProcessorServiceAsyncClient:
|
|
|
2807
2807
|
)
|
|
2808
2808
|
|
|
2809
2809
|
# Make the request
|
|
2810
|
-
operation = client.evaluate_processor_version(request=request)
|
|
2810
|
+
operation = await client.evaluate_processor_version(request=request)
|
|
2811
2811
|
|
|
2812
2812
|
print("Waiting for operation to complete...")
|
|
2813
2813
|
|
|
2814
|
-
response =
|
|
2814
|
+
response = await operation.result()
|
|
2815
2815
|
|
|
2816
2816
|
# Handle the response
|
|
2817
2817
|
print(response)
|