src/python/grpcio/grpc/aio/__init__.py
Go to the documentation of this file.
1 # Copyright 2019 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 """gRPC's Asynchronous Python API.
15 
16 gRPC Async API objects may only be used on the thread on which they were
17 created. AsyncIO doesn't provide thread safety for most of its APIs.
18 """
19 
20 from typing import Any, Optional, Sequence, Tuple
21 
22 import grpc
23 from grpc._cython.cygrpc import AbortError
24 from grpc._cython.cygrpc import BaseError
25 from grpc._cython.cygrpc import EOF
26 from grpc._cython.cygrpc import InternalError
27 from grpc._cython.cygrpc import UsageError
28 from grpc._cython.cygrpc import init_grpc_aio
29 from grpc._cython.cygrpc import shutdown_grpc_aio
30 
31 from ._base_call import Call
32 from ._base_call import RpcContext
33 from ._base_call import StreamStreamCall
34 from ._base_call import StreamUnaryCall
35 from ._base_call import UnaryStreamCall
36 from ._base_call import UnaryUnaryCall
37 from ._base_channel import Channel
38 from ._base_channel import StreamStreamMultiCallable
39 from ._base_channel import StreamUnaryMultiCallable
40 from ._base_channel import UnaryStreamMultiCallable
41 from ._base_channel import UnaryUnaryMultiCallable
42 from ._base_server import Server
43 from ._base_server import ServicerContext
44 from ._call import AioRpcError
45 from ._channel import insecure_channel
46 from ._channel import secure_channel
47 from ._interceptor import ClientCallDetails
48 from ._interceptor import ClientInterceptor
49 from ._interceptor import InterceptedUnaryUnaryCall
50 from ._interceptor import ServerInterceptor
51 from ._interceptor import StreamStreamClientInterceptor
52 from ._interceptor import StreamUnaryClientInterceptor
53 from ._interceptor import UnaryStreamClientInterceptor
54 from ._interceptor import UnaryUnaryClientInterceptor
55 from ._metadata import Metadata
56 from ._server import server
57 from ._typing import ChannelArgumentType
58 
59 
60 
61 __all__ = (
62  'init_grpc_aio',
63  'shutdown_grpc_aio',
64  'AioRpcError',
65  'RpcContext',
66  'Call',
67  'UnaryUnaryCall',
68  'UnaryStreamCall',
69  'StreamUnaryCall',
70  'StreamStreamCall',
71  'Channel',
72  'UnaryUnaryMultiCallable',
73  'UnaryStreamMultiCallable',
74  'StreamUnaryMultiCallable',
75  'StreamStreamMultiCallable',
76  'ClientCallDetails',
77  'ClientInterceptor',
78  'UnaryStreamClientInterceptor',
79  'UnaryUnaryClientInterceptor',
80  'StreamUnaryClientInterceptor',
81  'StreamStreamClientInterceptor',
82  'InterceptedUnaryUnaryCall',
83  'ServerInterceptor',
84  'insecure_channel',
85  'server',
86  'Server',
87  'ServicerContext',
88  'EOF',
89  'secure_channel',
90  'AbortError',
91  'BaseError',
92  'UsageError',
93  'InternalError',
94  'Metadata',
95 )


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:26