Overview of Python in InterSystems Products (1m)
InterSystems IRIS includes Embedded Python, where you can use ObjectScript and Python side-by-side. pyodbc and the Native API also allow you to interact with the InterSystems IRIS database, or you can call out from an ObjectScript application to call Python code using the External Language Server."
As a Python developer, you have a few options when building applications with InterSystems products:
- Connect existing Python applications using ODBC in the traditional client-server architecture. To do this, you will use pyodbc. This is the most common way to use Python with InterSystems products, as you likely already have existing Python applications. pyodbc uses ODBC to make SQL queries to retrieve data. It implements the DB API 2.0 specification.
- Use Python in-line with ObjectScript. Embedded Python allows you to use the language that works best for the task: Python, ObjectScript, or a combination of both.
- Use Python to enhance your InterSystems IRIS development. Two options are available:
- Use the InterSystems Python Native API to work with InterSystems IRIS classes and globals.
- Use the External Language Server to run Python code outside the InterSystems IRIS kernel. The External Language Server is applicable for Python applications that should run out-of-process or on a separate server from InterSystems IRIS. For example, this may be needed when CPU or memory usage is high, or when you have code stability questions.
Press the back button in your browser to return to the Learning Path.
Last modified: Monday, 29 November 2021, 5:51 PM