iris-pex-embedded-python 2.3.27b2__py3-none-any.whl → 3.2.1b2__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.

Files changed (85) hide show
  1. grongier/cls/Grongier/PEX/BusinessOperation.cls +1 -28
  2. grongier/cls/Grongier/PEX/BusinessProcess.cls +1 -100
  3. grongier/cls/Grongier/PEX/BusinessService.cls +1 -28
  4. grongier/cls/Grongier/PEX/Common.cls +1 -194
  5. grongier/cls/Grongier/PEX/Director.cls +1 -48
  6. grongier/cls/Grongier/PEX/Duplex/Operation.cls +1 -26
  7. grongier/cls/Grongier/PEX/Duplex/Process.cls +1 -217
  8. grongier/cls/Grongier/PEX/Duplex/Service.cls +1 -6
  9. grongier/cls/Grongier/PEX/InboundAdapter.cls +1 -15
  10. grongier/cls/Grongier/PEX/Message.cls +1 -116
  11. grongier/cls/Grongier/PEX/OutboundAdapter.cls +1 -29
  12. grongier/cls/Grongier/PEX/PickleMessage.cls +1 -46
  13. grongier/cls/Grongier/PEX/PrivateSession/Duplex.cls +1 -253
  14. grongier/cls/Grongier/PEX/PrivateSession/Message/Ack.cls +1 -19
  15. grongier/cls/Grongier/PEX/PrivateSession/Message/Poll.cls +1 -19
  16. grongier/cls/Grongier/PEX/PrivateSession/Message/Start.cls +1 -19
  17. grongier/cls/Grongier/PEX/PrivateSession/Message/Stop.cls +1 -35
  18. grongier/cls/Grongier/PEX/Test.cls +1 -53
  19. grongier/cls/Grongier/PEX/Utils.cls +1 -365
  20. grongier/cls/Grongier/Service/WSGI.cls +1 -307
  21. grongier/pex/__init__.py +11 -11
  22. grongier/pex/__main__.py +1 -1
  23. grongier/pex/_business_host.py +1 -511
  24. grongier/pex/_cli.py +2 -150
  25. grongier/pex/_common.py +1 -347
  26. grongier/pex/_director.py +1 -286
  27. grongier/pex/_utils.py +1 -369
  28. intersystems_iris/_ConnectionInformation.py +22 -20
  29. intersystems_iris/dbapi/_DBAPI.py +6 -1
  30. intersystems_iris/dbapi/_ResultSetRow.py +26 -15
  31. intersystems_iris/dbapi/preparser/_PreParser.py +4 -1
  32. iop/__init__.py +24 -0
  33. iop/__main__.py +4 -0
  34. iop/_business_host.py +675 -0
  35. iop/_business_operation.py +71 -0
  36. iop/_business_process.py +220 -0
  37. {grongier/pex → iop}/_business_service.py +2 -2
  38. iop/_cli.py +141 -0
  39. iop/_common.py +352 -0
  40. iop/_director.py +301 -0
  41. {grongier/pex → iop}/_inbound_adapter.py +1 -1
  42. iop/_log_manager.py +81 -0
  43. {grongier/pex → iop}/_message.py +1 -1
  44. {grongier/pex → iop}/_outbound_adapter.py +1 -1
  45. {grongier/pex → iop}/_private_session_duplex.py +3 -2
  46. {grongier/pex → iop}/_private_session_process.py +2 -2
  47. iop/_utils.py +458 -0
  48. iop/cls/IOP/BusinessOperation.cls +35 -0
  49. iop/cls/IOP/BusinessProcess.cls +124 -0
  50. iop/cls/IOP/BusinessService.cls +35 -0
  51. iop/cls/IOP/Common.cls +344 -0
  52. iop/cls/IOP/Director.cls +62 -0
  53. iop/cls/IOP/Duplex/Operation.cls +29 -0
  54. iop/cls/IOP/Duplex/Process.cls +229 -0
  55. iop/cls/IOP/Duplex/Service.cls +9 -0
  56. iop/cls/IOP/InboundAdapter.cls +22 -0
  57. iop/cls/IOP/Message/JSONSchema.cls +125 -0
  58. iop/cls/IOP/Message.cls +729 -0
  59. iop/cls/IOP/OutboundAdapter.cls +36 -0
  60. iop/cls/IOP/PickleMessage.cls +58 -0
  61. iop/cls/IOP/PrivateSession/Duplex.cls +260 -0
  62. iop/cls/IOP/PrivateSession/Message/Ack.cls +32 -0
  63. iop/cls/IOP/PrivateSession/Message/Poll.cls +32 -0
  64. iop/cls/IOP/PrivateSession/Message/Start.cls +32 -0
  65. iop/cls/IOP/PrivateSession/Message/Stop.cls +48 -0
  66. iop/cls/IOP/Service/WSGI.cls +310 -0
  67. iop/cls/IOP/Test.cls +85 -0
  68. iop/cls/IOP/Utils.cls +378 -0
  69. iop/wsgi/handlers.py +104 -0
  70. iris_pex_embedded_python-3.2.1b2.dist-info/METADATA +90 -0
  71. iris_pex_embedded_python-3.2.1b2.dist-info/RECORD +139 -0
  72. {iris_pex_embedded_python-2.3.27b2.dist-info → iris_pex_embedded_python-3.2.1b2.dist-info}/WHEEL +1 -1
  73. iris_pex_embedded_python-3.2.1b2.dist-info/entry_points.txt +2 -0
  74. {iris_pex_embedded_python-2.3.27b2.dist-info → iris_pex_embedded_python-3.2.1b2.dist-info}/top_level.txt +1 -1
  75. grongier/pex/_business_operation.py +0 -70
  76. grongier/pex/_business_process.py +0 -215
  77. iris/__init__.py +0 -60
  78. iris/__init__.pyi +0 -236
  79. iris/iris_ipm.py +0 -40
  80. iris/iris_ipm.pyi +0 -17
  81. iris_pex_embedded_python-2.3.27b2.dist-info/METADATA +0 -1384
  82. iris_pex_embedded_python-2.3.27b2.dist-info/RECORD +0 -113
  83. iris_pex_embedded_python-2.3.27b2.dist-info/entry_points.txt +0 -2
  84. {grongier/pex → iop}/_pickle_message.py +0 -0
  85. {iris_pex_embedded_python-2.3.27b2.dist-info → iris_pex_embedded_python-3.2.1b2.dist-info}/LICENSE +0 -0
iris/__init__.pyi DELETED
@@ -1,236 +0,0 @@
1
- from __future__ import annotations
2
- from typing import Any
3
- from iris.iris_ipm import ipm
4
- from . import iris_ipm
5
- __all__ = [ 'check_status', 'cls', 'execute', 'gref', 'ipm', 'iris_ipm', 'lock', 'os', 'ref', 'routine', 'sql', 'system', 'tcommit', 'tlevel', 'trollback', 'trollbackone', 'tstart', 'unlock', 'utils']
6
- def check_status(self, status):
7
- """
8
- Raises an exception on an error status, or returns None if no error condition occurs.
9
- Example: iris.check_status(st) checks the status code st to see if it contains an error.
10
- """
11
- def cls(self, class_name):
12
- """
13
- Returns a reference to an InterSystems IRIS class.
14
- Example: iris.cls("%SYSTEM.INetInfo").LocalHostName() calls a method in the class %SYSTEM.INetInfo.
15
- """
16
- def execute(self, statements):
17
- """
18
- execute IRIS statements.
19
- Example: iris.execute("set x="Hello"\nw x,!\n") returns nothing.
20
- """
21
- def gref(self, global_name) -> global_ref:
22
- """
23
- Returns a reference to an InterSystems IRIS global.
24
- Example: g = iris.gref("^foo") sets g to a reference to global ^foo
25
- """
26
- def lock(self, lock_list, timeout_value, locktype):
27
- """
28
- Sets locks, given a list of lock names, an optional timeout value (in seconds), and an optional locktype.
29
- Example: iris.lock(["^foo","^bar"], 30, "S") sets locks "^foo" and "^bar", waiting up to 30 seconds, and using shared locks.
30
- """
31
- def ref(self, value):
32
- """
33
- Creates an iris.ref object with a specified value.
34
- Example: iris.ref("hello") creates an iris.ref object with the value "hello"
35
- """
36
- def routine(self, routine, args):
37
- """
38
- Invokes an InterSystems IRIS routine, optionally at a given tag.
39
- Example: iris.routine("Stop^SystemPerformance", "20211221_160620_test") calls tag Stop in routine ^SystemPerformance.
40
- """
41
- def tcommit(self):
42
- """
43
- Marks a successful end of an InterSystems IRIS transaction.
44
- Example: iris.commit() marks the successful end of a transaction and decrements the nesting level by 1
45
- """
46
- def tlevel(self):
47
- """
48
- Detects whether a transaction is currently in progress and returns the nesting level. Zero means not in a transaction.
49
- Example: iris.tlevel() returns the current transaction nesting level, or zero if not in a transaction
50
- """
51
- def trollback(self):
52
- """
53
- Terminates the current transaction and restores all journaled database values to their values at the start of the transaction.
54
- Example: iris.trollback() rolls back all current transactions in progress and resets the transaction nesting level to 0
55
- """
56
- def trollbackone(self):
57
- """
58
- Rolls back the current level of nested transactions, that is, the one initiated by the most recent tstart().
59
- Example: iris.trollbackone() rolls back the current level of nested transactions and decrements the nesting level by 1
60
- """
61
- def tstart(self):
62
- """
63
- Starts an InterSystems IRIS transaction.
64
- Example: iris.tstart() marks the beginning of a transaction.
65
- """
66
- def unlock(self, lock_list, timout_value, locktype):
67
- """
68
- Removes locks, given a list of lock names, an optional timeout value (in seconds), and an optional locktype.
69
- Example: iris.unlock(["^foo","^bar"], 30, "S") removes locks "^foo" and "^bar", waiting up to 30 seconds, and using shared locks.
70
- """
71
- def utils(self):
72
- """
73
- Returns a reference to the InterSystems IRIS utilities class.
74
- Example: iris.utils().$Job() returns the current job number.
75
- """
76
- # Stubs for the gref object
77
- class global_ref:
78
- def data(self, key):
79
- """
80
- Checks if a node of a global contains data and/or has descendants. The key of the node is passed as a list. Passing a key with the
81
- value None (or an empty list) indicates the root node of the global.\n
82
- You can use data() to inspect a node to see if it contains data before attempting to access that data and possibly encountering an error.
83
- The method returns 0 if the node is undefined (contains no data), 1 if the node is defined (contains data), 10 if the node is undefined
84
- but has descendants, or 11 if the node is defined and has descendants.
85
- """
86
- def get(self, key):
87
- """
88
- Gets the value stored at a node of a global. The key of the node is passed as a list. Passing a key with the value None (or an empty list)
89
- indicates the root node of the global.
90
- """
91
- def getAsBytes(self, key):
92
- """
93
- Gets a string value stored at a node of a global and converts it to the Python bytes data type. The key of the node is passed as a list.
94
- Passing a key with the value None (or an empty list) indicates the root node of the global.
95
- """
96
- def keys(self, key):
97
- """
98
- Returns the keys of a global, starting from a given key. The starting key is passed as a list. Passing an empty list indicates the root node of the global.
99
- """
100
- def kill(self, key):
101
- """
102
- Deletes the node of a global, if it exists. The key of the node is passed as a list. This also deletes any descendants of the node.
103
- Passing a key with the value None (or an empty list) indicates the root node of the global.
104
- """
105
- def order(self, key):
106
- """
107
- Returns the next key in that level of the global, starting from a given key. The starting key is passed as a list.
108
- If no key follows the starting key, order() returns None.
109
- """
110
- def orderiter(self, key):
111
- """
112
- Returns the keys and values of a global, starting from a given key, down to the next leaf node.
113
- The starting key is passed as a list. Passing an empty list indicates the root node of the global.
114
- """
115
- def query(self, key):
116
- """
117
- Traverses a global starting at the specified key, returning each key and value.
118
- The starting key is passed as a list. Passing an empty list indicates the root node of the global.
119
- """
120
- def set(self, key, value):
121
- """
122
- Sets a node in a global to a given value. The key of the node is passed as a list, and value is the value to be stored.
123
- Passing a key with the value None (or an empty list) indicates the root node of the global.
124
- """
125
- # stubs for the sql object
126
- class sql:
127
- """
128
- The sql object provides access to the InterSystems IRIS SQL API.
129
- """
130
- def exec(self, query: str) -> Any:
131
- """
132
- Execute a query
133
- """
134
- def prepare(self, query: str) -> PreparedQuery:
135
- """
136
- Prepare a query
137
- """
138
- class PreparedQuery:
139
- def execute(self, **kwargs) -> Any:
140
- """
141
- Execute a prepared query, you can pass values
142
- """
143
- # stubs for the system object
144
- class system:
145
- """
146
- The system object provides access to the InterSystems IRIS system API.
147
- The following classes are available:
148
- 'DocDB', 'Encryption', 'Error', 'Event', 'Monitor', 'Process', 'Python', 'SQL', 'SYS', 'Security', 'Semaphore', 'Status', 'Util', 'Version'
149
- """
150
- class DocDB:
151
- """
152
- The DocDB class provides access to the InterSystems IRIS Document Database API.
153
- The following methods are available:
154
- 'CreateDatabase', 'DropAllDatabases', 'DropDatabase', 'Exists', 'GetAllDatabases', 'GetDatabase', 'Help'
155
- """
156
- def CreateDatabase(self, name: str, path: str, **kwargs) -> Any:
157
- """
158
- Create a database
159
- """
160
- def DropAllDatabases(self) -> Any:
161
- """
162
- Drop all databases
163
- """
164
- def DropDatabase(self, name: str) -> Any:
165
- """
166
- Drop a database
167
- """
168
- def Exists(self, name: str) -> Any:
169
- """
170
- Check if a database exists
171
- """
172
- def GetAllDatabases(self) -> Any:
173
- """
174
- Get all databases
175
- """
176
- def GetDatabase(self, name: str) -> Any:
177
- """
178
- Get a database
179
- """
180
- def Help(self) -> Any:
181
- """
182
- Get help
183
- """
184
- def Encryption(self) -> Any:
185
- """
186
- The Encryption class provides access to the InterSystems IRIS Encryption API.
187
- """
188
- def Error(self) -> Any:
189
- """
190
- The Error class provides access to the InterSystems IRIS Error API.
191
- """
192
- def Event(self) -> Any:
193
- """
194
- The Event class provides access to the InterSystems IRIS Event API.
195
- """
196
- def Monitor(self) -> Any:
197
- """
198
- The Monitor class provides access to the InterSystems IRIS Monitor API.
199
- """
200
- def Process(self) -> Any:
201
- """
202
- The Process class provides access to the InterSystems IRIS Process API.
203
- """
204
- def Python(self) -> Any:
205
- """
206
- The Python class provides access to the InterSystems IRIS Python API.
207
- """
208
- def SQL(self) -> Any:
209
- """
210
- The SQL class provides access to the InterSystems IRIS SQL API.
211
- """
212
- def SYS(self) -> Any:
213
- """
214
- The SYS class provides access to the InterSystems IRIS SYS API.
215
- """
216
- def Security(self) -> Any:
217
- """
218
- The Security class provides access to the InterSystems IRIS Security API.
219
- """
220
- def Semaphore(self) -> Any:
221
- """
222
- The Semaphore class provides access to the InterSystems IRIS Semaphore API.
223
- """
224
- def Status(self) -> Any:
225
- """
226
- The Status class provides access to the InterSystems IRIS Status API.
227
- """
228
- def Util(self) -> Any:
229
- """
230
- The Util class provides access to the InterSystems IRIS Util API.
231
- """
232
- def Version(self) -> Any:
233
- """
234
- The Version class provides access to the InterSystems IRIS Version API.
235
- """
236
-
iris/iris_ipm.py DELETED
@@ -1,40 +0,0 @@
1
- def ipm(cmd, *args):
2
- """
3
- Executes shell command with IPM:
4
- Parameters
5
- ----------
6
- cmd : str
7
- The command to execute
8
- Examples
9
- --------
10
- `ipm('help')`
11
- `ipm('load /home/irisowner/dev -v')`
12
- `ipm('install webterminal')`
13
- """
14
-
15
- import multiprocessing
16
- import iris
17
-
18
- def shell(cmd, status):
19
-
20
-
21
- status.put(True)
22
-
23
- res = iris.cls("%ZPM.PackageManager").Shell(cmd)
24
- print('')
25
- if res != 1:
26
- status.get()
27
- status.put(False)
28
-
29
- manager = multiprocessing.Manager()
30
- status = manager.Queue()
31
- process = multiprocessing.Process(
32
- target=shell,
33
- args=(
34
- cmd,
35
- status,
36
- ),
37
- )
38
- process.start()
39
- process.join()
40
- return status.get()
iris/iris_ipm.pyi DELETED
@@ -1,17 +0,0 @@
1
- from __future__ import annotations
2
- __all__ = ['ipm']
3
- def ipm(cmd, *args):
4
- """
5
-
6
- Executes shell command with IPM:
7
- Parameters
8
- ----------
9
- cmd : str
10
- The command to execute
11
- Examples
12
- --------
13
- `ipm('help')`
14
- `ipm('load /home/irisowner/dev -v')`
15
- `ipm('install webterminal')`
16
-
17
- """