diff --git a/python/.buildinfo b/python/.buildinfo index 13b0558cf84..48dbd6211d4 100644 --- a/python/.buildinfo +++ b/python/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 7defff909b49dfc8fa09a509a9048c22 +config: b9ca8daac7497672a92742b12782dfa7 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/python/.doctrees/environment.pickle b/python/.doctrees/environment.pickle index 4701fd8e5a2..704203a8ba8 100644 Binary files a/python/.doctrees/environment.pickle and b/python/.doctrees/environment.pickle differ diff --git a/python/.doctrees/glossary.doctree b/python/.doctrees/glossary.doctree index cface12afed..d6e93e0fa1d 100644 Binary files a/python/.doctrees/glossary.doctree and b/python/.doctrees/glossary.doctree differ diff --git a/python/.doctrees/grpc.doctree b/python/.doctrees/grpc.doctree index 6d3802066d7..57cd02bb5c0 100644 Binary files a/python/.doctrees/grpc.doctree and b/python/.doctrees/grpc.doctree differ diff --git a/python/.doctrees/grpc_asyncio.doctree b/python/.doctrees/grpc_asyncio.doctree index 1c50e0c2942..a1b70c949bc 100644 Binary files a/python/.doctrees/grpc_asyncio.doctree and b/python/.doctrees/grpc_asyncio.doctree differ diff --git a/python/.doctrees/grpc_channelz.doctree b/python/.doctrees/grpc_channelz.doctree index 99a3b3fbd50..e76e21a0c83 100644 Binary files a/python/.doctrees/grpc_channelz.doctree and b/python/.doctrees/grpc_channelz.doctree differ diff --git a/python/.doctrees/grpc_health_checking.doctree b/python/.doctrees/grpc_health_checking.doctree index 4207fc9c2b1..a9be384fa82 100644 Binary files a/python/.doctrees/grpc_health_checking.doctree and b/python/.doctrees/grpc_health_checking.doctree differ diff --git a/python/.doctrees/grpc_reflection.doctree b/python/.doctrees/grpc_reflection.doctree index 2a56bb56874..c60ac3d2e36 100644 Binary files a/python/.doctrees/grpc_reflection.doctree and b/python/.doctrees/grpc_reflection.doctree differ diff --git a/python/.doctrees/grpc_status.doctree b/python/.doctrees/grpc_status.doctree index 22fe9fb4006..18c2c039310 100644 Binary files a/python/.doctrees/grpc_status.doctree and b/python/.doctrees/grpc_status.doctree differ diff --git a/python/.doctrees/grpc_testing.doctree b/python/.doctrees/grpc_testing.doctree index ab67a93f46a..1e0aede63e9 100644 Binary files a/python/.doctrees/grpc_testing.doctree and b/python/.doctrees/grpc_testing.doctree differ diff --git a/python/.doctrees/index.doctree b/python/.doctrees/index.doctree index c08415644a8..626e8fdbfb4 100644 Binary files a/python/.doctrees/index.doctree and b/python/.doctrees/index.doctree differ diff --git a/python/_modules/grpc.html b/python/_modules/grpc.html index 1c804180e24..766c57d18b8 100644 --- a/python/_modules/grpc.html +++ b/python/_modules/grpc.html @@ -4,8 +4,8 @@ - - grpc — gRPC Python 1.31.0 documentation + + grpc — gRPC Python 1.32.0 documentation @@ -30,7 +30,7 @@ -

1.31.0

+

1.32.0

@@ -1956,6 +1956,23 @@ return ServerCredentials(_cygrpc.server_credentials_alts()) +
[docs]def compute_engine_channel_credentials(call_credentials): + """Creates a compute engine channel credential. + + This credential can only be used in a GCP environment as it relies on + a handshaker service. For more info about ALTS, see + https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security + + This channel credential is expected to be used as part of a composite + credential in conjunction with a call credentials that authenticates the + VM's default service account. If used with any other sort of call + credential, the connection may suddenly and unexpectedly begin failing RPCs. + """ + return ChannelCredentials( + _cygrpc.channel_credentials_compute_engine( + call_credentials._credentials))
+ +
[docs]def channel_ready_future(channel): """Creates a Future that tracks when a Channel is ready. @@ -2109,6 +2126,8 @@ Gzip = _compression.Gzip
+from grpc._runtime_protos import protos, services, protos_and_services # pylint: disable=wrong-import-position + ################################### __all__ ################################# __all__ = ( @@ -2169,6 +2188,9 @@ 'secure_channel', 'intercept_channel', 'server', + 'protos', + 'services', + 'protos_and_services', ) ############################### Extension Shims ################################ diff --git a/python/_modules/grpc/_cython.html b/python/_modules/grpc/_cython.html new file mode 100644 index 00000000000..6b37b79d930 --- /dev/null +++ b/python/_modules/grpc/_cython.html @@ -0,0 +1,139 @@ + + + + + + + + grpc._cython — gRPC Python 1.24.3 documentation + + + + + + + + + + + + + + + + +
+ + +
+
+ + +
+ +

Source code for grpc._cython

+# Copyright 2015 gRPC authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+ +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/python/_modules/grpc/_runtime_protos.html b/python/_modules/grpc/_runtime_protos.html new file mode 100644 index 00000000000..77c5f6385a4 --- /dev/null +++ b/python/_modules/grpc/_runtime_protos.html @@ -0,0 +1,295 @@ + + + + + + + + grpc._runtime_protos — gRPC Python 1.32.0 documentation + + + + + + + + + + + + + + + + +
+ + +
+
+ + +
+ +

Source code for grpc._runtime_protos

+# Copyright 2020 The gRPC authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import sys
+
+_REQUIRED_SYMBOLS = ("_protos", "_services", "_protos_and_services")
+
+
+def _uninstalled_protos(*args, **kwargs):
+    raise NotImplementedError(
+        "Install the grpcio-tools package (1.32.0+) to use the protos function."
+    )
+
+
+def _uninstalled_services(*args, **kwargs):
+    raise NotImplementedError(
+        "Install the grpcio-tools package (1.32.0+) to use the services function."
+    )
+
+
+def _uninstalled_protos_and_services(*args, **kwargs):
+    raise NotImplementedError(
+        "Install the grpcio-tools package (1.32.0+) to use the protos_and_services function."
+    )
+
+
+def _interpreter_version_protos(*args, **kwargs):
+    raise NotImplementedError(
+        "The protos function is only on available on Python 3.X interpreters.")
+
+
+def _interpreter_version_services(*args, **kwargs):
+    raise NotImplementedError(
+        "The services function is only on available on Python 3.X interpreters."
+    )
+
+
+def _interpreter_version_protos_and_services(*args, **kwargs):
+    raise NotImplementedError(
+        "The protos_and_services function is only on available on Python 3.X interpreters."
+    )
+
+
+
[docs]def protos(protobuf_path): # pylint: disable=unused-argument + """Returns a module generated by the indicated .proto file. + + THIS IS AN EXPERIMENTAL API. + + Use this function to retrieve classes corresponding to message + definitions in the .proto file. + + To inspect the contents of the returned module, use the dir function. + For example: + + ``` + protos = grpc.protos("foo.proto") + print(dir(protos)) + ``` + + The returned module object corresponds to the _pb2.py file generated + by protoc. The path is expected to be relative to an entry on sys.path + and all transitive dependencies of the file should also be resolveable + from an entry on sys.path. + + To completely disable the machinery behind this function, set the + GRPC_PYTHON_DISABLE_DYNAMIC_STUBS environment variable to "true". + + Args: + protobuf_path: The path to the .proto file on the filesystem. This path + must be resolveable from an entry on sys.path and so must all of its + transitive dependencies. + + Returns: + A module object corresponding to the message code for the indicated + .proto file. Equivalent to a generated _pb2.py file. + """
+ + +
[docs]def services(protobuf_path): # pylint: disable=unused-argument + """Returns a module generated by the indicated .proto file. + + THIS IS AN EXPERIMENTAL API. + + Use this function to retrieve classes and functions corresponding to + service definitions in the .proto file, including both stub and servicer + definitions. + + To inspect the contents of the returned module, use the dir function. + For example: + + ``` + services = grpc.services("foo.proto") + print(dir(services)) + ``` + + The returned module object corresponds to the _pb2_grpc.py file generated + by protoc. The path is expected to be relative to an entry on sys.path + and all transitive dependencies of the file should also be resolveable + from an entry on sys.path. + + To completely disable the machinery behind this function, set the + GRPC_PYTHON_DISABLE_DYNAMIC_STUBS environment variable to "true". + + Args: + protobuf_path: The path to the .proto file on the filesystem. This path + must be resolveable from an entry on sys.path and so must all of its + transitive dependencies. + + Returns: + A module object corresponding to the stub/service code for the indicated + .proto file. Equivalent to a generated _pb2_grpc.py file. + """
+ + +
[docs]def protos_and_services(protobuf_path): # pylint: disable=unused-argument + """Returns a 2-tuple of modules corresponding to protos and services. + + THIS IS AN EXPERIMENTAL API. + + The return value of this function is equivalent to a call to protos and a + call to services. + + To completely disable the machinery behind this function, set the + GRPC_PYTHON_DISABLE_DYNAMIC_STUBS environment variable to "true". + + Args: + protobuf_path: The path to the .proto file on the filesystem. This path + must be resolveable from an entry on sys.path and so must all of its + transitive dependencies. + + Returns: + A 2-tuple of module objects corresponding to (protos(path), services(path)). + """
+ + +if sys.version_info < (3, 5, 0): + protos = _interpreter_version_protos + services = _interpreter_version_services + protos_and_services = _interpreter_version_protos_and_services +else: + try: + import grpc_tools # pylint: disable=unused-import + except ImportError as e: + # NOTE: It's possible that we're encountering a transitive ImportError, so + # we check for that and re-raise if so. + if "grpc_tools" not in e.args[0]: + raise + protos = _uninstalled_protos + services = _uninstalled_services + protos_and_services = _uninstalled_protos_and_services + else: + import grpc_tools.protoc # pylint: disable=unused-import + if all(hasattr(grpc_tools.protoc, sym) for sym in _REQUIRED_SYMBOLS): + from grpc_tools.protoc import _protos as protos # pylint: disable=unused-import + from grpc_tools.protoc import _services as services # pylint: disable=unused-import + from grpc_tools.protoc import _protos_and_services as protos_and_services # pylint: disable=unused-import + else: + protos = _uninstalled_protos + services = _uninstalled_services + protos_and_services = _uninstalled_protos_and_services +
+ +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/python/_modules/grpc/experimental/aio/_base_call.html b/python/_modules/grpc/aio/_base_call.html similarity index 76% rename from python/_modules/grpc/experimental/aio/_base_call.html rename to python/_modules/grpc/aio/_base_call.html index f707f5c3e85..b83aa08f3f4 100644 --- a/python/_modules/grpc/experimental/aio/_base_call.html +++ b/python/_modules/grpc/aio/_base_call.html @@ -4,19 +4,19 @@ - - grpc.experimental.aio._base_call — gRPC Python 1.31.0 documentation - - - - - - - - - + + grpc.aio._base_call — gRPC Python 1.32.0 documentation + + + + + + + + + - + @@ -26,11 +26,11 @@