iris-pex-embedded-python 3.4.2b2__py3-none-any.whl → 3.4.3b2__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.
Potentially problematic release.
This version of iris-pex-embedded-python might be problematic. Click here for more details.
- iop/_debugpy.py +6 -6
- iop/cls/IOP/Common.cls +8 -0
- iop/cls/IOP/Message.cls +11 -5
- iop/cls/IOP/Utils.cls +5 -55
- {iris_pex_embedded_python-3.4.2b2.dist-info → iris_pex_embedded_python-3.4.3b2.dist-info}/METADATA +1 -1
- {iris_pex_embedded_python-3.4.2b2.dist-info → iris_pex_embedded_python-3.4.3b2.dist-info}/RECORD +10 -10
- {iris_pex_embedded_python-3.4.2b2.dist-info → iris_pex_embedded_python-3.4.3b2.dist-info}/WHEEL +1 -1
- {iris_pex_embedded_python-3.4.2b2.dist-info → iris_pex_embedded_python-3.4.3b2.dist-info}/entry_points.txt +0 -0
- {iris_pex_embedded_python-3.4.2b2.dist-info → iris_pex_embedded_python-3.4.3b2.dist-info}/licenses/LICENSE +0 -0
- {iris_pex_embedded_python-3.4.2b2.dist-info → iris_pex_embedded_python-3.4.3b2.dist-info}/top_level.txt +0 -0
iop/_debugpy.py
CHANGED
|
@@ -112,7 +112,7 @@ def debugpython(self, host_object: Any) -> None:
|
|
|
112
112
|
self.log_alert("No host object found, cannot enable debugpy.")
|
|
113
113
|
return
|
|
114
114
|
|
|
115
|
-
if host_object.
|
|
115
|
+
if host_object._enable != 1:
|
|
116
116
|
self.log_info("Debugpy is not enabled.")
|
|
117
117
|
return
|
|
118
118
|
|
|
@@ -121,7 +121,7 @@ def debugpython(self, host_object: Any) -> None:
|
|
|
121
121
|
return
|
|
122
122
|
|
|
123
123
|
# Configure Python interpreter
|
|
124
|
-
if host_object.
|
|
124
|
+
if host_object._PythonInterpreterPath != '':
|
|
125
125
|
success = configure_debugpy(self, host_object.PythonInterpreterPath)
|
|
126
126
|
else:
|
|
127
127
|
success = configure_debugpy(self)
|
|
@@ -130,16 +130,16 @@ def debugpython(self, host_object: Any) -> None:
|
|
|
130
130
|
return
|
|
131
131
|
|
|
132
132
|
# Setup debugging server
|
|
133
|
-
port = host_object.
|
|
133
|
+
port = host_object._port if host_object._port and host_object._port > 0 else find_free_port()
|
|
134
134
|
|
|
135
135
|
try:
|
|
136
136
|
enable_debugpy(port=port)
|
|
137
137
|
self.log_info(f"Debugpy enabled on port {port}")
|
|
138
138
|
|
|
139
|
-
self.trace(f"Waiting {host_object.
|
|
140
|
-
if wait_for_debugpy_connected(timeout=host_object.
|
|
139
|
+
self.trace(f"Waiting {host_object._timeout} seconds for debugpy connection...")
|
|
140
|
+
if wait_for_debugpy_connected(timeout=host_object._timeout, port=port):
|
|
141
141
|
self.log_info("Debugpy connected successfully")
|
|
142
142
|
else:
|
|
143
|
-
self.log_alert(f"Debugpy connection timed out after {host_object.
|
|
143
|
+
self.log_alert(f"Debugpy connection timed out after {host_object._timeout} seconds")
|
|
144
144
|
except Exception as e:
|
|
145
145
|
self.log_alert(f"Error enabling debugpy: {e}")
|
iop/cls/IOP/Common.cls
CHANGED
|
@@ -19,6 +19,14 @@ Property %settings As %String(MAXLEN = "");
|
|
|
19
19
|
/// Instance of class
|
|
20
20
|
Property %class As %SYS.Python;
|
|
21
21
|
|
|
22
|
+
Property %enable As %Boolean;
|
|
23
|
+
|
|
24
|
+
Property %timeout As %Numeric [ InitialExpression = 30 ];
|
|
25
|
+
|
|
26
|
+
Property %port As %Numeric [ InitialExpression = 0 ];
|
|
27
|
+
|
|
28
|
+
Property %PythonInterpreterPath As %String(MAXLEN = 255);
|
|
29
|
+
|
|
22
30
|
/// Get Class
|
|
23
31
|
Method GetClass() As %SYS.Python
|
|
24
32
|
{
|
iop/cls/IOP/Message.cls
CHANGED
|
@@ -453,7 +453,7 @@ ClassMethod HandleProperty(
|
|
|
453
453
|
{
|
|
454
454
|
Set type = value.type
|
|
455
455
|
|
|
456
|
-
If type = "string" || type = "number" || type = "boolean" {
|
|
456
|
+
If (type = "string") || (type = "number") || (type = "boolean") {
|
|
457
457
|
Do ..HandlePrimitiveType(type, idx, .pContents)
|
|
458
458
|
}
|
|
459
459
|
ElseIf type = "array" {
|
|
@@ -465,6 +465,13 @@ ClassMethod HandleProperty(
|
|
|
465
465
|
ElseIf $IsObject(value.allOf) {
|
|
466
466
|
Do ..HandleAllOfType(value, key, idx, .pContents, schema)
|
|
467
467
|
}
|
|
468
|
+
ElseIf value.%Get("$ref")'="" {
|
|
469
|
+
Set tDef = schema."$defs".%Get($Piece(value."$ref", "/", *))
|
|
470
|
+
Do ..HandleObjectType(tDef, idx, .pContents)
|
|
471
|
+
}
|
|
472
|
+
Else {
|
|
473
|
+
Set pContents(idx,"type") = type
|
|
474
|
+
}
|
|
468
475
|
|
|
469
476
|
If type = "array" Set key = key_"()"
|
|
470
477
|
Set pContents = idx
|
|
@@ -491,9 +498,8 @@ ClassMethod HandleArrayType(
|
|
|
491
498
|
schema As %DynamicObject)
|
|
492
499
|
{
|
|
493
500
|
Set pContents(idx,"type") = "()"
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}
|
|
501
|
+
// Handle array as a Handle Property
|
|
502
|
+
Do ..HandleProperty(value.items, key, idx, .pContents, schema)
|
|
497
503
|
}
|
|
498
504
|
|
|
499
505
|
ClassMethod HandleObjectType(
|
|
@@ -504,7 +510,7 @@ ClassMethod HandleObjectType(
|
|
|
504
510
|
Set pContents(idx,"type") = "object"
|
|
505
511
|
If $IsObject(value.properties) {
|
|
506
512
|
Do ..SchemaToContents(value, .subContents)
|
|
507
|
-
Merge
|
|
513
|
+
Merge pContents(idx) = subContents
|
|
508
514
|
}
|
|
509
515
|
}
|
|
510
516
|
|
iop/cls/IOP/Utils.cls
CHANGED
|
@@ -226,7 +226,7 @@ ClassMethod GenerateProxyClass(
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
#; Do not display any of the connection settings
|
|
229
|
-
#dim tSETTINGSParamValue As %String = "%classname:Python $type,%module:Python $type,%settings:Python $type,%classpaths:Python $type"
|
|
229
|
+
#dim tSETTINGSParamValue As %String = "%classname:Python $type,%module:Python $type,%settings:Python $type,%classpaths:Python $type,%enable:Python Debug $type,%timeout:Python Debug $type,%port:Python Debug $type,%PythonInterpreterPath:Python Debug $type"
|
|
230
230
|
|
|
231
231
|
#dim tPropClassname As %Dictionary.PropertyDefinition = ##class(%Dictionary.PropertyDefinition).%New()
|
|
232
232
|
Set tPropClassname.Name = "%classname"
|
|
@@ -270,10 +270,6 @@ ClassMethod GenerateProxyClass(
|
|
|
270
270
|
Quit:$$$ISERR(tSC)
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
|
|
274
|
-
set type = ""
|
|
275
|
-
set:($Case(tSuperClass,"IOP.InboundAdapter":1,"IOP.OutboundAdapter":1,:0)) type = "Adapter"
|
|
276
|
-
set tSETTINGSParamValue = $REPLACE(tSETTINGSParamValue,"$type",type)
|
|
277
273
|
|
|
278
274
|
#dim tCustomProp As %Dictionary.PropertyDefinition
|
|
279
275
|
#dim tPropInfo,tPropName,tDataType,tDefault,tDesc,tPropCat,tContext As %String
|
|
@@ -310,60 +306,14 @@ ClassMethod GenerateProxyClass(
|
|
|
310
306
|
Set tSC = tCOSClass.Properties.Insert(tCustomProp)
|
|
311
307
|
Quit:$$$ISERR(tSC)
|
|
312
308
|
|
|
313
|
-
Set tPropCat = "Python Attributes"
|
|
309
|
+
Set tPropCat = "Python Attributes $type"
|
|
314
310
|
Set tSETTINGSParamValue = tSETTINGSParamValue_","_tPropName_":"_tPropCat
|
|
315
311
|
}
|
|
316
312
|
Quit:$$$ISERR(tSC)
|
|
317
313
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
Set tPropDebug = ##class(%Dictionary.PropertyDefinition).%New()
|
|
322
|
-
Set tPropDebug.Name = "enable"
|
|
323
|
-
Set tPropDebug.Type = "%Boolean"
|
|
324
|
-
Set tPropDebug.InitialExpression = $$$quote(0)
|
|
325
|
-
Set tPropDebug.Description = "Enable or disable debug"
|
|
326
|
-
|
|
327
|
-
Set tSC = tCOSClass.Properties.Insert(tPropDebug)
|
|
328
|
-
Quit:$$$ISERR(tSC)
|
|
329
|
-
|
|
330
|
-
#; Add the settings parameter
|
|
331
|
-
Set tSETTINGSParamValue = tSETTINGSParamValue_",enable:"_tPropCat
|
|
332
|
-
|
|
333
|
-
#; Port property
|
|
334
|
-
Set tPropPort = ##class(%Dictionary.PropertyDefinition).%New()
|
|
335
|
-
Set tPropPort.Name = "port"
|
|
336
|
-
Set tPropPort.Type = "%Integer"
|
|
337
|
-
Set tPropPort.InitialExpression = $$$quote(0)
|
|
338
|
-
Set tPropPort.Description = "Port to use for the debug connection, if 0 an random port will be used"
|
|
339
|
-
Set tSC = tCOSClass.Properties.Insert(tPropPort)
|
|
340
|
-
Quit:$$$ISERR(tSC)
|
|
341
|
-
|
|
342
|
-
#; Add the settings parameter
|
|
343
|
-
Set tSETTINGSParamValue = tSETTINGSParamValue_",port:"_tPropCat
|
|
344
|
-
|
|
345
|
-
#; Timeout property
|
|
346
|
-
Set tPropTimeout = ##class(%Dictionary.PropertyDefinition).%New()
|
|
347
|
-
Set tPropTimeout.Name = "timeout"
|
|
348
|
-
Set tPropTimeout.Type = "%Integer"
|
|
349
|
-
Set tPropTimeout.InitialExpression = $$$quote(30)
|
|
350
|
-
Set tSC = tCOSClass.Properties.Insert(tPropTimeout)
|
|
351
|
-
Quit:$$$ISERR(tSC)
|
|
352
|
-
|
|
353
|
-
#; Add the settings parameter
|
|
354
|
-
Set tSETTINGSParamValue = tSETTINGSParamValue_",timeout:"_tPropCat
|
|
355
|
-
|
|
356
|
-
#; PythonInterpreterPath property
|
|
357
|
-
Set tPropInterpre = ##class(%Dictionary.PropertyDefinition).%New()
|
|
358
|
-
Set tPropInterpre.Name = "PythonInterpreterPath"
|
|
359
|
-
Set tPropInterpre.Type = "%String"
|
|
360
|
-
Set tPropInterpre.Description = "Path to the Python interpreter, if not set the default one will be used"
|
|
361
|
-
Do tPropInterpre.Parameters.SetAt("255","MAXLEN")
|
|
362
|
-
Set tSC = tCOSClass.Properties.Insert(tPropInterpre)
|
|
363
|
-
Quit:$$$ISERR(tSC)
|
|
364
|
-
|
|
365
|
-
#; Add the settings parameter
|
|
366
|
-
Set tSETTINGSParamValue = tSETTINGSParamValue_",PythonInterpreterPath:"_tPropCat
|
|
314
|
+
set type = ""
|
|
315
|
+
set:($Case(tSuperClass,"IOP.InboundAdapter":1,"IOP.OutboundAdapter":1,:0)) type = "Adapter"
|
|
316
|
+
set tSETTINGSParamValue = $REPLACE(tSETTINGSParamValue,"$type",type)
|
|
367
317
|
|
|
368
318
|
#dim tSETTINGSParam As %Dictionary.ParameterDefinition = ##class(%Dictionary.ParameterDefinition).%New()
|
|
369
319
|
Set tSETTINGSParam.Name = "SETTINGS"
|
{iris_pex_embedded_python-3.4.2b2.dist-info → iris_pex_embedded_python-3.4.3b2.dist-info}/RECORD
RENAMED
|
@@ -36,7 +36,7 @@ iop/_business_process.py,sha256=hj6nDIP5Mz5UYbm0vDjvs9lPSEYVQxGJl6tQRcDGTBk,8548
|
|
|
36
36
|
iop/_business_service.py,sha256=wdhEKkqNHWt09XYGrvIpSuDDI4MyCGm2rKdvGQJ93EI,3988
|
|
37
37
|
iop/_cli.py,sha256=fhaUpq3rTb4P2QPuuqoeatsphMLBPj9xtbvFPJv-2Mo,7941
|
|
38
38
|
iop/_common.py,sha256=YJrEAsf0xT-nGsCYPARwg4jrSGTYuMfMe56A8GJ46oA,13754
|
|
39
|
-
iop/_debugpy.py,sha256=
|
|
39
|
+
iop/_debugpy.py,sha256=eoxrfxeucufkykLMr8Ga5SuiKRGqcfE8npt1wDx1haA,4710
|
|
40
40
|
iop/_decorators.py,sha256=ZpgEETLdKWv58AoSMfXnm3_mA-6qPphIegjG-npDgwg,2324
|
|
41
41
|
iop/_director.py,sha256=d1XXJn8T8VF9rmT-joJdz_ElS2UR6myRaXaMFC_2brA,11498
|
|
42
42
|
iop/_dispatch.py,sha256=I3TAhvTuk8j4VcROI9vAitJ0a7Nk1BYAWKRrLeNsjr0,3203
|
|
@@ -53,14 +53,14 @@ iop/_utils.py,sha256=zguWjvZQkzAScHXl4OomZr2ZtPljDqVAs1CFllQZn5g,20092
|
|
|
53
53
|
iop/cls/IOP/BusinessOperation.cls,sha256=lrymqZ8wHl5kJjXwdjbQVs5sScV__yIWGh-oGbiB_X0,914
|
|
54
54
|
iop/cls/IOP/BusinessProcess.cls,sha256=s3t38w1ykHqM26ETcbCYLt0ocjZyVVahm-_USZkuJ1E,2855
|
|
55
55
|
iop/cls/IOP/BusinessService.cls,sha256=7ebn32J9PiZXUgXuh5Xxm_7X6zHBiqkJr9c_dWxbPO8,1021
|
|
56
|
-
iop/cls/IOP/Common.cls,sha256=
|
|
56
|
+
iop/cls/IOP/Common.cls,sha256=AQW6Hp_pwyQWPIGGzIFshswuMoW1kcv94g9QClzoo5U,12574
|
|
57
57
|
iop/cls/IOP/Director.cls,sha256=M43LoTb6lwSr0J81RFxi1YLW1mwda09wQ7Xqr3nBtxo,2008
|
|
58
58
|
iop/cls/IOP/InboundAdapter.cls,sha256=GeoCm6q5HcLJ5e4VxgqXiErJXqolBbpKwpunaNzpvjU,610
|
|
59
|
-
iop/cls/IOP/Message.cls,sha256=
|
|
59
|
+
iop/cls/IOP/Message.cls,sha256=6_iZzQaY0cA9FjXg0qECYZC6We8soAIrUwRBrlerC4w,25373
|
|
60
60
|
iop/cls/IOP/OutboundAdapter.cls,sha256=9eOwy5ojwcTzwrHs6LNrFQvUD8aqcoNCZrILN1ycdDM,958
|
|
61
61
|
iop/cls/IOP/PickleMessage.cls,sha256=S3y7AClQ8mAILjxPuHdCjGosBZYzGbUQ5WTv4mYPNMQ,1673
|
|
62
62
|
iop/cls/IOP/Test.cls,sha256=gAC9PEfMZsvAEWIa241-ug2FWAhITbN1SOispZzJPnI,2094
|
|
63
|
-
iop/cls/IOP/Utils.cls,sha256=
|
|
63
|
+
iop/cls/IOP/Utils.cls,sha256=PGaEk0CKXobWrVM7UjQgZGVQ0MP4TkKr-TKJyGfj4Qg,15468
|
|
64
64
|
iop/cls/IOP/Duplex/Operation.cls,sha256=K_fmgeLjPZQbHgNrc0kd6DUQoW0fDn1VHQjJxHo95Zk,525
|
|
65
65
|
iop/cls/IOP/Duplex/Process.cls,sha256=xbefZ4z84a_IUhavWN6P_gZBzqkdJ5XRTXxro6iDvAg,6986
|
|
66
66
|
iop/cls/IOP/Duplex/Service.cls,sha256=sTMOQUCMBgVitmQkM8bbsrmrRtCdj91VlctJ3I7b8WU,161
|
|
@@ -72,9 +72,9 @@ iop/cls/IOP/PrivateSession/Message/Start.cls,sha256=uk-WTe66GicCshgmVy3F5ugHiAyP
|
|
|
72
72
|
iop/cls/IOP/PrivateSession/Message/Stop.cls,sha256=7g3gKFUjNg0WXBLuWnj-VnCs5G6hSE09YTzGEp0zbGc,1390
|
|
73
73
|
iop/cls/IOP/Service/WSGI.cls,sha256=VLNCXEwmHW9dBnE51uGE1nvGX6T4HjhqePT3LVhsjAE,10440
|
|
74
74
|
iop/wsgi/handlers.py,sha256=NrFLo_YbAh-x_PlWhAiWkQnUUN2Ss9HoEm63dDWCBpQ,2947
|
|
75
|
-
iris_pex_embedded_python-3.4.
|
|
76
|
-
iris_pex_embedded_python-3.4.
|
|
77
|
-
iris_pex_embedded_python-3.4.
|
|
78
|
-
iris_pex_embedded_python-3.4.
|
|
79
|
-
iris_pex_embedded_python-3.4.
|
|
80
|
-
iris_pex_embedded_python-3.4.
|
|
75
|
+
iris_pex_embedded_python-3.4.3b2.dist-info/licenses/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
|
|
76
|
+
iris_pex_embedded_python-3.4.3b2.dist-info/METADATA,sha256=pWZI7p4AvXsPwmzwfi3-4v6xi6TZdXnykAztDSqZz2E,4449
|
|
77
|
+
iris_pex_embedded_python-3.4.3b2.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
78
|
+
iris_pex_embedded_python-3.4.3b2.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
|
|
79
|
+
iris_pex_embedded_python-3.4.3b2.dist-info/top_level.txt,sha256=4p0q6hCATmYIVMVi3I8hOUcJE1kwzyBeHygWv_rGvrU,13
|
|
80
|
+
iris_pex_embedded_python-3.4.3b2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|