Skip to main content

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.

SystemDiagramOfProductions

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

HelloWorldProductionSetup

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.

HelloWorldResults

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

See Contributing guidelines

Useful links

Installing

Quick Start

Debugging

API Reference

Changelog

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

intersystems_pyprod-0.1.0.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

intersystems_pyprod-0.1.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

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

Hashes for intersystems_pyprod-0.1.0.tar.gz
Algorithm Hash digest
SHA256 736373c1e8fbe6490a27cfea5abe08e52a719f0a5b0dcc8d2ec7d3a29ff7c539
MD5 144c7fc2b709cac4b010fc55599688a7
BLAKE2b-256 f42f28c838fcdcb894d7674673f7878acb8da11690e0f77b8e378fad92b68560

See more details on using hashes here.

File details

Details for the file intersystems_pyprod-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for intersystems_pyprod-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18698abfb21294262501e1583d408138c44856a51beca71d3f9f9a223d70b49c
MD5 e18b87582035f4798fa1a445715207c3
BLAKE2b-256 c3528d3053786d086e9b9aeac8c4f06af6a751b123a53e4c92a548f40a59cedb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page