一键导入
iris-embedded-python
Use when the user wants to run Python code inside IRIS, call Python libraries from ObjectScript, or use the IRIS Python native API
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user wants to run Python code inside IRIS, call Python libraries from ObjectScript, or use the IRIS Python native API
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when creating or modifying InterSystems IRIS interoperability production components in Python — Business Services, Business Processes, Business Operations, Adapters, Messages, or Production definitions.
Measure ObjectScript line coverage using %Monitor.System.LineByLine. Wraps a %UnitTest.Manager.RunTest() call, collects per-class hit/total counts, prints a coverage table. Prerequisite: iris-coverage-setup (bbsiz=4096, IRIS restarted).
Measure ObjectScript line coverage using iris_coverage. Use when a user asks about test coverage, coverage reports, or wants to know how well their test suite exercises their code.
InterSystems AI Hub EAP (Early Access Program) — accurate API patterns for builds 158/159/161/162 (current). Covers %AI.Agent declarative Parameters, %AI.Provider.Create, ConfigStore/GetProviderForConfig, @{env/config/wallet} substitution, session management, streaming, tool sets, and known breaking changes from build 141. Load when helping EAP participants set up, build, or debug AI Hub projects.
Use after writing or editing any ObjectScript .cls file, after applying a fix to a compile error, or before declaring a task done — uploads the class to IRIS via Atelier REST, compiles it, and returns structured errors for immediate fixing.
Manage and observe IRIS Interoperability productions — lifecycle, logs, queues, and message tracing
| name | iris-embedded-python |
| description | Use when the user wants to run Python code inside IRIS, call Python libraries from ObjectScript, or use the IRIS Python native API |
| managed_by | iris-agentic-dev |
Project: iris-embedded-python-wrapper
Install: zpm "install iris-embedded-python-wrapper" (or built into IRIS 2021.2+)
Requires: IRIS 2021.2+ (Embedded Python is a built-in feature; the wrapper adds convenience utilities)
Embedded Python lets you write Python methods directly in ObjectScript classes, call any Python library from IRIS, and call IRIS globals/SQL from Python — all in-process, without a separate server.
The iris-embedded-python-wrapper package adds:
ClassMethod RunPython() As %Status
{
Set pyobj = ##class(%SYS.Python).Import("mymodule")
Set result = pyobj.my_function(42)
Return $$$OK
}
import iris
# Open a global
node = iris.gref("^MyGlobal")
node["key"] = "value"
# Run a SQL query
rs = iris.sql.exec("SELECT TOP 5 Name FROM Sample.Person")
for row in rs:
print(row[0])
Method ProcessData(data As %String) As %String [ Language = python ]
{
import json
parsed = json.loads(data)
return str(parsed.get("key", ""))
}
zpm "install iris-embedded-python-wrapper"
Embedded Python itself requires no installation on IRIS 2021.2+. Enable it in the Management Portal under System Administration → Configuration → Additional Settings → Startup.