Skip to content

Commit dfab5d2

Browse files
authored
Readme: new features
1 parent 2627eb0 commit dfab5d2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ Possible Serializations:
7979
- `##class(isc.py.Callout).SerializationStr` - Serialization by str() function
8080
- `##class(isc.py.Callout).SerializationRepr` - Serialization by repr() function
8181

82+
# Shell
83+
84+
To open Python shell: `do ##class(isc.py.util.Shell).Shell()`. To exit press enter.
85+
8286
# Context persistence
8387

8488
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
101105

102106
Check request/response classes documentation for details.
103107

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+
104114
# Test Business Process
105115

106116
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"
143153
>0.4157151243124494
144154
```
145155

156+
Argumentless `zpy` command opens python shell.
157+
146158
# Limitations
147159

148160
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
254266
2. Install PyODBC: `pip install pyodbc`
255267
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)`
256268

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

Comments
 (0)