Home Applications iris-pygw-blueprint

iris-pygw-blueprint

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
4.5
1 reviews
0
Awards
124
Views
0
IPM installs
0
0
Details
Releases  (1)
Reviews  (1)
Issues
Short blueprint example of the connection between python and iris via new python gateway available in InterSystems IRIS Data Platform 2020.3+

What's new in this version

Initial Release

IRIS Python Gateway Blueprint

This repository is a mini blueprint of how you can communicate with Python using Python Gateway, a new feature available in InterSystems IRIS Data Platform 2020.3+

This blueprint is contains two containers:

  • iris: a basic setup is being made to enter a python gateway as a new object gateway
  • python: a basic structure to develop python applications using multi-stage approach to build an application and run it on minimal required footprint. A InterSystems Python Gateway is a new feature which enables you to invoke python created classes within InterSystems objectscript and incorporate it within your application.

Requirements

  • Docker
  • access to docker hub

How to Run

  • Start the containers:

    docker-compose up -d

    docker exec -it iris-pygw-blueprint_iris_1 iris session IRIS

  • run the following code to test it

    zn "PYTHON"

    set st = ##class(abc.python).connectToGateway("pogs",.GW)

    set person = ##class(%Net.Remote.Object).%New(GW,"PersonDemo.Person")

    write !,"Default values: ",person.displayPerson()

Made with
Version
0.0.127 Dec, 2020
Category
Technology Example
Works with
InterSystems IRIS
First published
27 Dec, 2020
Last checked by moderator
02 Jul, 2024Doesn't work