You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,10 @@ Possible Serializations:
79
79
-`##class(isc.py.Callout).SerializationStr` - Serialization by str() function
80
80
-`##class(isc.py.Callout).SerializationRepr` - Serialization by repr() function
81
81
82
+
# Shell
83
+
84
+
To open Python shell: `do ##class(isc.py.util.Shell).Shell()`. To exit press enter.
85
+
82
86
# Context persistence
83
87
84
88
Python context can be persisted into InterSystems IRIS and restored later on. There are currently three public functions:
@@ -101,6 +105,12 @@ Interoperability adapter `isc.py.ens.Operation` offers ability to interact with
101
105
102
106
Check request/response classes documentation for details.
103
107
108
+
Settings:
109
+
-`Initializer` - select a class implementing `isc.py.init.Abstract`. It can be used to load functions, modules, classes and so on. It would be executed at process start.
110
+
-`PythonLib` - (linux only) if you see loading errors set it to `libpython3.6m.so` or even to a full path to the shared library.
111
+
112
+
Note: `isc.py.util.BPEmulator` class is added to allow easy testing of Python Interoperability business processes. It cat execute business process (pyhton parts) in a current job.
113
+
104
114
# Test Business Process
105
115
106
116
Along with callout code and Interoperability adapter there's also a test Interoperability Production and test Business Process. To use them:
@@ -143,6 +153,8 @@ zpy "x"
143
153
>0.4157151243124494
144
154
```
145
155
156
+
Argumentless `zpy` command opens python shell.
157
+
146
158
# Limitations
147
159
148
160
There are several limitaions associated with the use of PythonAdapter.
@@ -254,4 +266,4 @@ do ##class(isc.py.Main).SimpleString("sys.path.append('C:\\Users\\<USER>\\AppDat
254
266
2. Install PyODBC: `pip install pyodbc`
255
267
3. Set connection string: `cnxn=pyodbc.connect(('Driver=/<IRIS directory>/bin/libirisodbcu35.so;Server=localhost;Port=51773;database=USER;UID=_SYSTEM;PWD=SYS'),autocommit=True)`
256
268
257
-
Some [notes](https://github.com/intersystems-ru/PythonAdapter/issues/50).
269
+
Some [notes](https://github.com/intersystems-ru/PythonAdapter/issues/50). Call `set sc = ##class(isc.py.util.Installer).ConfigureTestProcess(user, pass, host, port, namespace)` to configure test process automatically.
0 commit comments