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 build components for the InterSystems Productions framework entirely in Python. Productions provide the integration engine to connect systems that use different communication protocols and different message formats.

You can read this introductory article to learn how to use pyprod.

The following image shows all the production components that pyprod enables you to create:

SystemDiagramOfProductions

Example Workflow

Using pyprod is essentially a 3 step process. The following example shows a Production that uses a Business Process written using intersystems_pyprod. This Business Process simply returns the request it receives back to the sender.

Note: Before running the example, make sure you have configured the required environment variables to connect to a running IRIS instance.

Step 1: Create your production components

# save this as HelloWorld.py
from intersystems_pyprod import (BusinessProcess,Status)

class HelloWorldBP(BusinessProcess):
    def OnRequest(self, request):
        return Status.OK(), request

Step 2: Load your components to IRIS

From a command line session where you configured the environment variables, run the intersystems_pyprod command and provide the path to your script as an argument.

$ intersystems_pyprod /full/path/to/HelloWorld.py

    Loading HelloWorldBP to IRIS...
    ...
    ...
    Load finished successfully.

Step 3: Create a production using the UI

Create the production using the Production Configuration page, which you can access in the IRIS UI by navigating to Interoperability > Configure > Productions

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. Configure the service by setting the file path from which it should read. Then select the Business Process you created as its target.

Note: The Business Process name includes the script name (HelloWorld) appended to it. Read more about package names here


Test your Production

Start the Production, then place a text file in the configured file path for the Business Service. After refreshing the Production page, you should see the messages that were delivered.

HelloWorldResults

Note: EnsLib.File.PassthroughService is an existing Business Service bundled with IRIS Productions. It loads a file from a specified location and forwards it to the configured target component.


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.1.tar.gz (25.1 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.1-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file intersystems_pyprod-0.1.1.tar.gz.

File metadata

  • Download URL: intersystems_pyprod-0.1.1.tar.gz
  • Upload date:
  • Size: 25.1 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.1.tar.gz
Algorithm Hash digest
SHA256 32d5aafd2b50dfc65e1a57acc28938416ba1babb41e8da33f2cb63d4863a08a3
MD5 cc8958baa1e617ead70caf9cfd849490
BLAKE2b-256 6381d5ed3877384a04e3e17149eb8f58d5cff394ecb351c5686e72e0774366f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for intersystems_pyprod-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce1af2658236d36d0e436e6cfac81ecfd55b5b0987dc0ad4d1df4a94a1a26fdd
MD5 b1aa8171fc25d933c08945614c733af9
BLAKE2b-256 7dc9ac679d5115c306b8b72b8a0bb4345ba17db28dabb41db5e2cc16c825104e

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