File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,27 @@ Python adapter via callout for InterSystems Data Platforms.
3
3
4
4
# Installation
5
5
6
- 1 . Load ObjectScript code from [ here] ( https://github.com/intersystems-ru/PythonAdapter/blob/master/isc/py/Callout.cls ) .
7
- 2 . Place DLLs in ` bin ` folder.
6
+ 1 . Load ObjectScript code.
7
+ 2 . Place callout DLL in ` bin ` folder.
8
+ 3 . Check that your ` PYTHONHOME ` environment variable points to Python 3.6.
9
+ 4 . Check that your SYSTEM ` PATH ` environment variable has PYTHONHOME.
10
+ 5 . Execute: ` do ##class(isc.py.test.CannibalizationData).Import() ` to populate test data
8
11
9
12
# Use
10
13
14
+ 1 . Call: ` do ##class(isc.py.Callout).Setup() ` once per systems start (add to ZSTART!)
15
+ 2 . Call: ` do ##class(isc.py.Callout).Initialize() ` once per process
16
+ 3 . Call main method (can be called many times, context persists): ` write ##class(isc.py.Callout).SimpleString(code, data) `
17
+ 4 . Call: ` do ##class(isc.py.Callout).Finalize() ` to free Python context
18
+ 5 . Call: ` write ##class(isc.py.Callout).Unload() ` to free callout library
19
+
11
20
```
21
+ do ##class(isc.py.Callout).Setup()
12
22
do ##class(isc.py.Callout).Initialize()
13
23
write ##class(isc.py.Callout).SimpleString("x='ПРИВЕТ'","x")
14
24
write ##class(isc.py.Callout).SimpleString("x=repr('ПРИВЕТ')","x")
15
25
write ##class(isc.py.Callout).SimpleString("x=123","x")
26
+ do ##class(isc.py.Callout).Finalize()
16
27
write ##class(isc.py.Callout).Unload()
17
28
```
18
29
You can’t perform that action at this time.
0 commit comments