Pure Python Interoperability Productions using InterSystems IRIS
Project description
intersystems_pyprod
intersystems_pyprod, short for InterSystems Python Productions, is a library that allows you to create different components for the InterSystems Productions Framework, purely in python. Productions provide the integration engine to connect systems that use different communication protocols and different message formats.
Example
The following is a Business Process written using intersystems_pyprod. It just returns the request it receives, back to the sender.
First follow steps to setup environment variables to connect to a running iris instance.
# save this as HelloWorld.py
from intersystems_pyprod import (BusinessProcess,Status)
class HelloWorldBP(BusinessProcess):
def OnRequest(self, request):
return Status.OK(), request
The following assumes you have set the environment variables.
$ intersystems_pyprod /full/path/to/HelloWorld.py
Loading HelloWorldBP to IRIS...
...
...
Load finished successfully.
Create a production using the UI
This production reads in a file from a defined path and then forwards it to a target business process. We use a pre-existing Business Service called Enslib.File.PassthroughService. We set a path from where it reads in the file. Then we select the Business Process that we created as its target. Note, the Business Process has the name of the script (HelloWorld) appended to it. Read more about package names here.
Start the Production add then add a text file at the file path defined for the business service. Upon refreshing the production page, we can see the messages that were deliverd.
NOTE: EnsLib.File.PassthroughService is an existing Business Service bundled with IRIS Productions. It loads a file from a given location and passes it forward to the desired target.
Reporting Issues
Please report issues via GitHub Issues.
Contributing
Useful links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file intersystems_pyprod-0.1.0.tar.gz.
File metadata
- Download URL: intersystems_pyprod-0.1.0.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
736373c1e8fbe6490a27cfea5abe08e52a719f0a5b0dcc8d2ec7d3a29ff7c539
|
|
| MD5 |
144c7fc2b709cac4b010fc55599688a7
|
|
| BLAKE2b-256 |
f42f28c838fcdcb894d7674673f7878acb8da11690e0f77b8e378fad92b68560
|
File details
Details for the file intersystems_pyprod-0.1.0-py3-none-any.whl.
File metadata
- Download URL: intersystems_pyprod-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18698abfb21294262501e1583d408138c44856a51beca71d3f9f9a223d70b49c
|
|
| MD5 |
e18b87582035f4798fa1a445715207c3
|
|
| BLAKE2b-256 |
c3528d3053786d086e9b9aeac8c4f06af6a751b123a53e4c92a548f40a59cedb
|