grpcio-fips 1.70.0__4-cp313-cp313-win_amd64.whl
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.
- grpc/__init__.py +2348 -0
- grpc/_auth.py +80 -0
- grpc/_channel.py +2267 -0
- grpc/_common.py +183 -0
- grpc/_compression.py +71 -0
- grpc/_cython/__init__.py +13 -0
- grpc/_cython/_credentials/roots.pem +4337 -0
- grpc/_cython/_cygrpc/__init__.py +13 -0
- grpc/_cython/cygrpc.cp313-win_amd64.pyd +0 -0
- grpc/_grpcio_metadata.py +1 -0
- grpc/_interceptor.py +813 -0
- grpc/_observability.py +299 -0
- grpc/_plugin_wrapping.py +136 -0
- grpc/_runtime_protos.py +165 -0
- grpc/_server.py +1528 -0
- grpc/_simple_stubs.py +588 -0
- grpc/_typing.py +95 -0
- grpc/_utilities.py +222 -0
- grpc/aio/__init__.py +95 -0
- grpc/aio/_base_call.py +257 -0
- grpc/aio/_base_channel.py +364 -0
- grpc/aio/_base_server.py +385 -0
- grpc/aio/_call.py +764 -0
- grpc/aio/_channel.py +627 -0
- grpc/aio/_interceptor.py +1178 -0
- grpc/aio/_metadata.py +137 -0
- grpc/aio/_server.py +239 -0
- grpc/aio/_typing.py +43 -0
- grpc/aio/_utils.py +22 -0
- grpc/beta/__init__.py +13 -0
- grpc/beta/_client_adaptations.py +1015 -0
- grpc/beta/_metadata.py +56 -0
- grpc/beta/_server_adaptations.py +465 -0
- grpc/beta/implementations.py +345 -0
- grpc/beta/interfaces.py +163 -0
- grpc/beta/utilities.py +153 -0
- grpc/experimental/__init__.py +134 -0
- grpc/experimental/aio/__init__.py +16 -0
- grpc/experimental/gevent.py +27 -0
- grpc/experimental/session_cache.py +45 -0
- grpc/framework/__init__.py +13 -0
- grpc/framework/common/__init__.py +13 -0
- grpc/framework/common/cardinality.py +26 -0
- grpc/framework/common/style.py +24 -0
- grpc/framework/foundation/__init__.py +13 -0
- grpc/framework/foundation/abandonment.py +22 -0
- grpc/framework/foundation/callable_util.py +98 -0
- grpc/framework/foundation/future.py +219 -0
- grpc/framework/foundation/logging_pool.py +72 -0
- grpc/framework/foundation/stream.py +43 -0
- grpc/framework/foundation/stream_util.py +148 -0
- grpc/framework/interfaces/__init__.py +13 -0
- grpc/framework/interfaces/base/__init__.py +13 -0
- grpc/framework/interfaces/base/base.py +328 -0
- grpc/framework/interfaces/base/utilities.py +83 -0
- grpc/framework/interfaces/face/__init__.py +13 -0
- grpc/framework/interfaces/face/face.py +1084 -0
- grpc/framework/interfaces/face/utilities.py +245 -0
- grpcio_fips-1.70.0.dist-info/METADATA +55 -0
- grpcio_fips-1.70.0.dist-info/RECORD +63 -0
- grpcio_fips-1.70.0.dist-info/WHEEL +5 -0
- grpcio_fips-1.70.0.dist-info/licenses/LICENSE +610 -0
- grpcio_fips-1.70.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Copyright 2015 gRPC authors.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
"""Utilities for use with the base interface of RPC Framework."""
|
|
15
|
+
|
|
16
|
+
import collections
|
|
17
|
+
|
|
18
|
+
from grpc.framework.interfaces.base import base
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class _Completion(
|
|
22
|
+
base.Completion,
|
|
23
|
+
collections.namedtuple(
|
|
24
|
+
"_Completion",
|
|
25
|
+
(
|
|
26
|
+
"terminal_metadata",
|
|
27
|
+
"code",
|
|
28
|
+
"message",
|
|
29
|
+
),
|
|
30
|
+
),
|
|
31
|
+
):
|
|
32
|
+
"""A trivial implementation of base.Completion."""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class _Subscription(
|
|
36
|
+
base.Subscription,
|
|
37
|
+
collections.namedtuple(
|
|
38
|
+
"_Subscription",
|
|
39
|
+
(
|
|
40
|
+
"kind",
|
|
41
|
+
"termination_callback",
|
|
42
|
+
"allowance",
|
|
43
|
+
"operator",
|
|
44
|
+
"protocol_receiver",
|
|
45
|
+
),
|
|
46
|
+
),
|
|
47
|
+
):
|
|
48
|
+
"""A trivial implementation of base.Subscription."""
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
_NONE_SUBSCRIPTION = _Subscription(
|
|
52
|
+
base.Subscription.Kind.NONE, None, None, None, None
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def completion(terminal_metadata, code, message):
|
|
57
|
+
"""Creates a base.Completion aggregating the given operation values.
|
|
58
|
+
|
|
59
|
+
Args:
|
|
60
|
+
terminal_metadata: A terminal metadata value for an operation.
|
|
61
|
+
code: A code value for an operation.
|
|
62
|
+
message: A message value for an operation.
|
|
63
|
+
|
|
64
|
+
Returns:
|
|
65
|
+
A base.Completion aggregating the given operation values.
|
|
66
|
+
"""
|
|
67
|
+
return _Completion(terminal_metadata, code, message)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def full_subscription(operator, protocol_receiver):
|
|
71
|
+
"""Creates a "full" base.Subscription for the given base.Operator.
|
|
72
|
+
|
|
73
|
+
Args:
|
|
74
|
+
operator: A base.Operator to be used in an operation.
|
|
75
|
+
protocol_receiver: A base.ProtocolReceiver to be used in an operation.
|
|
76
|
+
|
|
77
|
+
Returns:
|
|
78
|
+
A base.Subscription of kind base.Subscription.Kind.FULL wrapping the given
|
|
79
|
+
base.Operator and base.ProtocolReceiver.
|
|
80
|
+
"""
|
|
81
|
+
return _Subscription(
|
|
82
|
+
base.Subscription.Kind.FULL, None, None, operator, protocol_receiver
|
|
83
|
+
)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Copyright 2015 gRPC authors.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|