iris-pex-embedded-python 3.5.5b4__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.
- grongier/__init__.py +0 -0
- grongier/cls/Grongier/PEX/BusinessOperation.cls +8 -0
- grongier/cls/Grongier/PEX/BusinessProcess.cls +13 -0
- grongier/cls/Grongier/PEX/BusinessService.cls +8 -0
- grongier/cls/Grongier/PEX/Common.cls +10 -0
- grongier/cls/Grongier/PEX/Director.cls +10 -0
- grongier/cls/Grongier/PEX/Duplex/Operation.cls +4 -0
- grongier/cls/Grongier/PEX/Duplex/Process.cls +13 -0
- grongier/cls/Grongier/PEX/Duplex/Service.cls +4 -0
- grongier/cls/Grongier/PEX/InboundAdapter.cls +8 -0
- grongier/cls/Grongier/PEX/Message.cls +13 -0
- grongier/cls/Grongier/PEX/OutboundAdapter.cls +8 -0
- grongier/cls/Grongier/PEX/PickleMessage.cls +13 -0
- grongier/cls/Grongier/PEX/PrivateSession/Duplex.cls +8 -0
- grongier/cls/Grongier/PEX/PrivateSession/Message/Ack.cls +14 -0
- grongier/cls/Grongier/PEX/PrivateSession/Message/Poll.cls +14 -0
- grongier/cls/Grongier/PEX/PrivateSession/Message/Start.cls +14 -0
- grongier/cls/Grongier/PEX/PrivateSession/Message/Stop.cls +14 -0
- grongier/cls/Grongier/PEX/Test.cls +10 -0
- grongier/cls/Grongier/PEX/Utils.cls +10 -0
- grongier/cls/Grongier/Service/WSGI.cls +4 -0
- grongier/pex/__init__.py +24 -0
- grongier/pex/__main__.py +4 -0
- grongier/pex/_business_host.py +1 -0
- grongier/pex/_cli.py +4 -0
- grongier/pex/_common.py +1 -0
- grongier/pex/_director.py +1 -0
- grongier/pex/_utils.py +1 -0
- grongier/pex/wsgi/handlers.py +104 -0
- iop/__init__.py +25 -0
- iop/__main__.py +4 -0
- iop/_async_request.py +67 -0
- iop/_business_host.py +256 -0
- iop/_business_operation.py +75 -0
- iop/_business_process.py +224 -0
- iop/_business_service.py +63 -0
- iop/_cli.py +247 -0
- iop/_common.py +334 -0
- iop/_debugpy.py +187 -0
- iop/_decorators.py +49 -0
- iop/_director.py +301 -0
- iop/_dispatch.py +136 -0
- iop/_generator_request.py +30 -0
- iop/_inbound_adapter.py +34 -0
- iop/_iris.py +8 -0
- iop/_log_manager.py +100 -0
- iop/_message.py +40 -0
- iop/_message_validator.py +49 -0
- iop/_outbound_adapter.py +23 -0
- iop/_private_session_duplex.py +103 -0
- iop/_private_session_process.py +41 -0
- iop/_remote.py +91 -0
- iop/_serialization.py +199 -0
- iop/_utils.py +671 -0
- iop/cls/IOP/BusinessOperation.cls +35 -0
- iop/cls/IOP/BusinessProcess.cls +156 -0
- iop/cls/IOP/BusinessService.cls +40 -0
- iop/cls/IOP/Common.cls +569 -0
- iop/cls/IOP/Director.cls +70 -0
- iop/cls/IOP/Duplex/Operation.cls +29 -0
- iop/cls/IOP/Duplex/Process.cls +229 -0
- iop/cls/IOP/Duplex/Service.cls +9 -0
- iop/cls/IOP/Generator/Message/Ack.cls +31 -0
- iop/cls/IOP/Generator/Message/Poll.cls +31 -0
- iop/cls/IOP/Generator/Message/Start.cls +15 -0
- iop/cls/IOP/Generator/Message/StartPickle.cls +15 -0
- iop/cls/IOP/Generator/Message/Stop.cls +32 -0
- iop/cls/IOP/InboundAdapter.cls +22 -0
- iop/cls/IOP/Message/JSONSchema.cls +125 -0
- iop/cls/IOP/Message.cls +754 -0
- iop/cls/IOP/OutboundAdapter.cls +36 -0
- iop/cls/IOP/PickleMessage.cls +58 -0
- iop/cls/IOP/PrivateSession/Duplex.cls +260 -0
- iop/cls/IOP/PrivateSession/Message/Ack.cls +32 -0
- iop/cls/IOP/PrivateSession/Message/Poll.cls +32 -0
- iop/cls/IOP/PrivateSession/Message/Start.cls +31 -0
- iop/cls/IOP/PrivateSession/Message/Stop.cls +48 -0
- iop/cls/IOP/Projection.cls +49 -0
- iop/cls/IOP/Service/Remote/Handler.cls +30 -0
- iop/cls/IOP/Service/Remote/Rest/v1.cls +97 -0
- iop/cls/IOP/Service/WSGI.cls +310 -0
- iop/cls/IOP/Test.cls +85 -0
- iop/cls/IOP/Utils.cls +503 -0
- iop/cls/IOP/Wrapper.cls +58 -0
- iop/wsgi/handlers.py +104 -0
- iris_pex_embedded_python-3.5.5b4.dist-info/METADATA +91 -0
- iris_pex_embedded_python-3.5.5b4.dist-info/RECORD +91 -0
- iris_pex_embedded_python-3.5.5b4.dist-info/WHEEL +5 -0
- iris_pex_embedded_python-3.5.5b4.dist-info/entry_points.txt +2 -0
- iris_pex_embedded_python-3.5.5b4.dist-info/licenses/LICENSE +21 -0
- iris_pex_embedded_python-3.5.5b4.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* Copyright (c) 2021 by InterSystems Corporation.
|
|
2
|
+
Cambridge, Massachusetts, U.S.A. All rights reserved.
|
|
3
|
+
Confidential property of InterSystems Corporation. */
|
|
4
|
+
|
|
5
|
+
Class IOP.BusinessOperation Extends (Ens.BusinessOperation, IOP.Common) [ Inheritance = right, ProcedureBlock, System = 4 ]
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
Parameter SETTINGS = "%classname:Python BusinessOperation,%module:Python BusinessOperation,%settings:Python BusinessOperation,%classpaths:Python BusinessOperation";
|
|
9
|
+
|
|
10
|
+
Method OnMessage(
|
|
11
|
+
pRequest As %Library.Persistent,
|
|
12
|
+
Output pResponse As %Library.Persistent) As %Status
|
|
13
|
+
{
|
|
14
|
+
set tSC = $$$OK
|
|
15
|
+
try {
|
|
16
|
+
set pResponse = ..%class."_dispatch_on_message"(pRequest)
|
|
17
|
+
} catch ex {
|
|
18
|
+
set tSC = ..DisplayTraceback(ex)
|
|
19
|
+
}
|
|
20
|
+
quit tSC
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
Method OnKeepalive(pStatus As %Status = {$$$OK}) As %Status
|
|
24
|
+
{
|
|
25
|
+
set tSC = $$$OK
|
|
26
|
+
try {
|
|
27
|
+
$$$ThrowOnError(##super(pStatus))
|
|
28
|
+
do ..%class."on_keepalive"()
|
|
29
|
+
} catch ex {
|
|
30
|
+
set tSC = ..DisplayTraceback(ex)
|
|
31
|
+
}
|
|
32
|
+
quit tSC
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/* Copyright (c) 2021 by InterSystems Corporation.
|
|
2
|
+
Cambridge, Massachusetts, U.S.A. All rights reserved.
|
|
3
|
+
Confidential property of InterSystems Corporation. */
|
|
4
|
+
|
|
5
|
+
Class IOP.BusinessProcess Extends (Ens.BusinessProcess, IOP.Common) [ Inheritance = right, ProcedureBlock, System = 4 ]
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
Parameter SETTINGS = "%classname:Python BusinessProcess,%module:Python BusinessProcess,%settings:Python BusinessProcess,%classpaths:Python BusinessProcess";
|
|
9
|
+
|
|
10
|
+
Property persistentProperties As array Of %String(MAXLEN = "");
|
|
11
|
+
|
|
12
|
+
Method dispatchReply(response)
|
|
13
|
+
{
|
|
14
|
+
set tSC = ..Reply(response)
|
|
15
|
+
if $$$ISERR(tSC) throw ##class(%Exception.StatusException).CreateFromStatus(tSC)
|
|
16
|
+
quit
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
Method dispatchSetTimer(
|
|
20
|
+
timeout,
|
|
21
|
+
completionKey)
|
|
22
|
+
{
|
|
23
|
+
set tSC = ..SetTimer(timeout,$g(completionKey))
|
|
24
|
+
if $$$ISERR(tSC) throw ##class(%Exception.StatusException).CreateFromStatus(tSC)
|
|
25
|
+
quit
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
Method dispatchSendRequestAsync(
|
|
29
|
+
target,
|
|
30
|
+
request,
|
|
31
|
+
responseRequired,
|
|
32
|
+
completionKey,
|
|
33
|
+
description)
|
|
34
|
+
{
|
|
35
|
+
Try {
|
|
36
|
+
$$$ThrowOnError(..SendRequestAsync(target,request,responseRequired,completionKey,description))
|
|
37
|
+
}
|
|
38
|
+
Catch ex {
|
|
39
|
+
set tSC = ..DisplayTraceback(ex)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
quit
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
Method OnRequest(
|
|
46
|
+
request As %Persistent,
|
|
47
|
+
Output response As %Persistent) As %Status
|
|
48
|
+
{
|
|
49
|
+
set tSC = $$$OK
|
|
50
|
+
try {
|
|
51
|
+
set response = ..%class."_dispatch_on_request"($this,request)
|
|
52
|
+
} catch ex {
|
|
53
|
+
set tSC = ..DisplayTraceback(ex)
|
|
54
|
+
}
|
|
55
|
+
quit tSC
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/// Handle a 'Response'
|
|
59
|
+
Method OnResponse(
|
|
60
|
+
request As %Persistent,
|
|
61
|
+
Output response As %Persistent,
|
|
62
|
+
callRequest As %Persistent,
|
|
63
|
+
callResponse As %Persistent,
|
|
64
|
+
pCompletionKey As %String) As %Status
|
|
65
|
+
{
|
|
66
|
+
set tSC = $$$OK
|
|
67
|
+
try {
|
|
68
|
+
set response = ..%class."_dispatch_on_response"($this,request,response,callRequest,callResponse,pCompletionKey)
|
|
69
|
+
} catch ex {
|
|
70
|
+
set tSC = ..DisplayTraceback(ex)
|
|
71
|
+
}
|
|
72
|
+
quit tSC
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
Method OnComplete(
|
|
76
|
+
request As %Library.Persistent,
|
|
77
|
+
ByRef response As %Library.Persistent) As %Status
|
|
78
|
+
{
|
|
79
|
+
set tSC = $$$OK
|
|
80
|
+
try {
|
|
81
|
+
set response = ..%class."_dispatch_on_complete"($this,request,response)
|
|
82
|
+
} catch ex {
|
|
83
|
+
set tSC = ..DisplayTraceback(ex)
|
|
84
|
+
}
|
|
85
|
+
quit tSC
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
Method getPersistentProperty(name)
|
|
89
|
+
{
|
|
90
|
+
quit ..persistentProperties.GetAt(name)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
Method setPersistentProperty(
|
|
94
|
+
name,
|
|
95
|
+
value)
|
|
96
|
+
{
|
|
97
|
+
quit ..persistentProperties.SetAt(value,name)
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
Storage Default
|
|
101
|
+
{
|
|
102
|
+
<Data name="BusinessProcessDefaultData1">
|
|
103
|
+
<Subscript>"BusinessProcess"</Subscript>
|
|
104
|
+
<Value name="1">
|
|
105
|
+
<Value>%classpaths</Value>
|
|
106
|
+
</Value>
|
|
107
|
+
<Value name="2">
|
|
108
|
+
<Value>%classname</Value>
|
|
109
|
+
</Value>
|
|
110
|
+
<Value name="3">
|
|
111
|
+
<Value>%module</Value>
|
|
112
|
+
</Value>
|
|
113
|
+
<Value name="4">
|
|
114
|
+
<Value>%settings</Value>
|
|
115
|
+
</Value>
|
|
116
|
+
<Value name="5">
|
|
117
|
+
<Value>%class</Value>
|
|
118
|
+
</Value>
|
|
119
|
+
<Value name="6">
|
|
120
|
+
<Value>%enable</Value>
|
|
121
|
+
</Value>
|
|
122
|
+
<Value name="7">
|
|
123
|
+
<Value>%timeout</Value>
|
|
124
|
+
</Value>
|
|
125
|
+
<Value name="8">
|
|
126
|
+
<Value>%port</Value>
|
|
127
|
+
</Value>
|
|
128
|
+
<Value name="9">
|
|
129
|
+
<Value>%PythonInterpreterPath</Value>
|
|
130
|
+
</Value>
|
|
131
|
+
<Value name="10">
|
|
132
|
+
<Value>%traceback</Value>
|
|
133
|
+
</Value>
|
|
134
|
+
<Value name="11">
|
|
135
|
+
<Value>%PythonPath</Value>
|
|
136
|
+
</Value>
|
|
137
|
+
<Value name="12">
|
|
138
|
+
<Value>%PythonRuntimeLibrary</Value>
|
|
139
|
+
</Value>
|
|
140
|
+
<Value name="13">
|
|
141
|
+
<Value>%PythonRuntimeLibraryVersion</Value>
|
|
142
|
+
</Value>
|
|
143
|
+
<Value name="14">
|
|
144
|
+
<Value>%Venv</Value>
|
|
145
|
+
</Value>
|
|
146
|
+
</Data>
|
|
147
|
+
<Data name="persistentProperties">
|
|
148
|
+
<Attribute>persistentProperties</Attribute>
|
|
149
|
+
<Structure>subnode</Structure>
|
|
150
|
+
<Subscript>"IOP.BusinessProcess.persistentProperties"</Subscript>
|
|
151
|
+
</Data>
|
|
152
|
+
<DefaultData>BusinessProcessDefaultData1</DefaultData>
|
|
153
|
+
<Type>%Storage.Persistent</Type>
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* Copyright (c) 2021 by InterSystems Corporation.
|
|
2
|
+
Cambridge, Massachusetts, U.S.A. All rights reserved.
|
|
3
|
+
Confidential property of InterSystems Corporation. */
|
|
4
|
+
|
|
5
|
+
Class IOP.BusinessService Extends (Ens.BusinessService, IOP.Common) [ Inheritance = right, ProcedureBlock, System = 4 ]
|
|
6
|
+
{
|
|
7
|
+
|
|
8
|
+
Parameter SETTINGS = "%classname:Python BusinessService,%module:Python BusinessService,%settings:Python BusinessService,%classpaths:Python BusinessService";
|
|
9
|
+
|
|
10
|
+
Method dispatchProcessInput(pInput As %RegisteredObject) As %RegisteredObject
|
|
11
|
+
{
|
|
12
|
+
try {
|
|
13
|
+
set response = ..%class."_dispatch_on_process_input"(pInput)
|
|
14
|
+
} catch ex {
|
|
15
|
+
set tSC = ..DisplayTraceback(ex)
|
|
16
|
+
throw ##class(%Exception.StatusException).CreateFromStatus(tSC)
|
|
17
|
+
}
|
|
18
|
+
quit response
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
Method OnProcessInput(
|
|
22
|
+
request As %RegisteredObject,
|
|
23
|
+
Output response As %RegisteredObject) As %Status
|
|
24
|
+
{
|
|
25
|
+
set tSC = $$$OK
|
|
26
|
+
try {
|
|
27
|
+
try {
|
|
28
|
+
set ..%class."_wait_for_next_call_interval" = ..%WaitForNextCallInterval
|
|
29
|
+
} catch {}
|
|
30
|
+
set response = ..%class."_dispatch_on_process_input"(request)
|
|
31
|
+
try {
|
|
32
|
+
set ..%WaitForNextCallInterval = ..%class."_wait_for_next_call_interval"
|
|
33
|
+
} catch {}
|
|
34
|
+
} catch ex {
|
|
35
|
+
set tSC = ..DisplayTraceback(ex)
|
|
36
|
+
}
|
|
37
|
+
quit tSC
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|