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 +112 -0
- meshcall/client.py +906 -0
- meshcall/context.py +240 -0
- meshcall/contract.py +801 -0
- meshcall/contract_io.py +41 -0
- meshcall/diagnostics.py +232 -0
- meshcall/driver.py +81 -0
- meshcall/drivers/__init__.py +11 -0
- meshcall/drivers/websocket.py +491 -0
- meshcall/errors.py +250 -0
- meshcall/export.py +43 -0
- meshcall/flow.py +33 -0
- meshcall/ir.py +98 -0
- meshcall/launcher.py +60 -0
- meshcall/logging.py +57 -0
- meshcall/protocol.py +207 -0
- meshcall/py.typed +0 -0
- meshcall/router.py +190 -0
- meshcall/router_auth.py +105 -0
- meshcall/router_install.py +194 -0
- meshcall/server.py +1048 -0
- meshcall/streams.py +68 -0
- meshcall/transport.py +264 -0
- meshcall/worker.py +123 -0
- meshcall-0.1.0.dist-info/METADATA +53 -0
- meshcall-0.1.0.dist-info/RECORD +29 -0
- meshcall-0.1.0.dist-info/WHEEL +4 -0
- meshcall-0.1.0.dist-info/entry_points.txt +2 -0
- meshcall-0.1.0.dist-info/licenses/LICENSE +21 -0
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
|
+
]
|