meshcall 0.1.0__py3-none-any.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.
meshcall/__init__.py ADDED
@@ -0,0 +1,112 @@
1
+ from meshcall.client import ClientBase
2
+ from meshcall.context import (
3
+ CallOptions,
4
+ ClientCallInfo,
5
+ ClientCallNext,
6
+ ClientInterceptor,
7
+ ReconnectPolicy,
8
+ RetryPolicy,
9
+ RpcContext,
10
+ ServerCallNext,
11
+ ServerInterceptor,
12
+ )
13
+ from meshcall.contract import (
14
+ Balance,
15
+ get_service_contract,
16
+ get_service_method_binding,
17
+ get_service_warnings,
18
+ method,
19
+ service,
20
+ )
21
+ from meshcall.contract_io import load_contract, render_contract, write_contract
22
+ from meshcall.diagnostics import ContractWarning, MeshCallWarning, lint_contract
23
+ from meshcall.errors import (
24
+ CallCancelledError,
25
+ ContractError,
26
+ DeadlineExceededError,
27
+ ErrorCode,
28
+ InternalError,
29
+ InvalidArgumentError,
30
+ MeshCallError,
31
+ MethodNotFoundError,
32
+ PermissionDeniedError,
33
+ ProtocolError,
34
+ ResourceExhaustedError,
35
+ UnauthenticatedError,
36
+ UnavailableError,
37
+ Violation,
38
+ )
39
+ from meshcall.ir import (
40
+ BalanceKind,
41
+ BalancePolicy,
42
+ BindingKind,
43
+ MethodAnnotations,
44
+ StreamKind,
45
+ )
46
+ from meshcall.logging import RpcLogger
47
+ from meshcall.router import WebSocketRouter
48
+ from meshcall.router_auth import (
49
+ IssuedToken,
50
+ RouterAuthClient,
51
+ RouterCredentials,
52
+ RouterIdentity,
53
+ RouterScope,
54
+ )
55
+ from meshcall.server import RpcServer
56
+ from meshcall.streams import RpcDuplex, RpcDuplexClient, RpcInputStream, RpcServerStream
57
+
58
+ __all__ = [
59
+ "Balance",
60
+ "BalanceKind",
61
+ "BalancePolicy",
62
+ "BindingKind",
63
+ "CallCancelledError",
64
+ "CallOptions",
65
+ "ClientBase",
66
+ "ClientCallInfo",
67
+ "ClientCallNext",
68
+ "ClientInterceptor",
69
+ "ContractError",
70
+ "ContractWarning",
71
+ "DeadlineExceededError",
72
+ "ErrorCode",
73
+ "InternalError",
74
+ "InvalidArgumentError",
75
+ "IssuedToken",
76
+ "MeshCallError",
77
+ "MeshCallWarning",
78
+ "MethodAnnotations",
79
+ "MethodNotFoundError",
80
+ "PermissionDeniedError",
81
+ "ProtocolError",
82
+ "ReconnectPolicy",
83
+ "ResourceExhaustedError",
84
+ "RetryPolicy",
85
+ "RouterAuthClient",
86
+ "RouterCredentials",
87
+ "RouterIdentity",
88
+ "RouterScope",
89
+ "RpcContext",
90
+ "RpcDuplex",
91
+ "RpcDuplexClient",
92
+ "RpcInputStream",
93
+ "RpcLogger",
94
+ "RpcServer",
95
+ "RpcServerStream",
96
+ "ServerCallNext",
97
+ "ServerInterceptor",
98
+ "StreamKind",
99
+ "UnauthenticatedError",
100
+ "UnavailableError",
101
+ "Violation",
102
+ "WebSocketRouter",
103
+ "get_service_contract",
104
+ "get_service_method_binding",
105
+ "get_service_warnings",
106
+ "lint_contract",
107
+ "load_contract",
108
+ "method",
109
+ "render_contract",
110
+ "service",
111
+ "write_contract",
112
+ ]