Skip to main content

Compatibility shim: import intersystems_iris resolves to the iris package from intersystems-irispython. Tracks intersystems-irispython 5.3.x.

Project description

intersystems-iris

Compatibility shim: import intersystems_iris resolves to the iris module from intersystems-irispython.

The problem

The InterSystems IRIS Python client is distributed as intersystems-irispython but imported as iris. This mismatch between package name and import name has led the community to independently converge on intersystems_iris as a more intuitive import name — and several widely-used packages depend on it:

  • sqlalchemy-iris (caretdev) — import intersystems_iris.dbapi._DBAPI in 4 files
  • django-iris (caretdev) — import intersystems_iris.dbapi._DBAPI as Database
  • iris-kafka-python (grongierisc / ISC) — import intersystems_iris + intersystems_iris.IRIS(conn)
  • iris-vector-graph (intersystems-community) — import intersystems_iris in bulk_loader and engine

These packages were not wrong. intersystems_iris was the intended public import name of the legacy intersystems-iris distribution before ISC renamed the package to intersystems-irispython and shortened the import to iris. This shim restores that name so all of the above packages work without modification.

import intersystems_iris          # same as: import iris
intersystems_iris.connect(...)    # works
intersystems_iris.createIRIS(...) # works
intersystems_iris.dbapi           # works
intersystems_iris.IRIS(conn)      # works

Install

pip install intersystems-iris

Pulls in intersystems-irispython automatically.

For new code

Use import iris directly. This package exists for ecosystem compatibility.

import iris
conn = iris.connect("iris://_SYSTEM:SYS@localhost:1972/USER")

Embedded Python (in-process)

When running inside IRIS via irispython, import iris is provided by the IRIS runtime — intersystems-irispython is not installed. The intersystems_iris shim still works because it imports from iris, which is always present.

# Inside irispython — no pip install needed
import intersystems_iris  # resolves to the embedded iris module
intersystems_iris.sql.exec("SELECT 1")

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_iris-5.3.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

intersystems_iris-5.3.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file intersystems_iris-5.3.3.tar.gz.

File metadata

  • Download URL: intersystems_iris-5.3.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for intersystems_iris-5.3.3.tar.gz
Algorithm Hash digest
SHA256 2ab19a34f690da6c79bf9f392fa28f3b4e51f3be5c70b040ff1cadafe1cb5454
MD5 e657ad00efadadd12161fbee54edb69b
BLAKE2b-256 47d3ecc052c8fee32c36128b69c7c55b0f2d8dfb40681a0386ef2451a2435735

See more details on using hashes here.

File details

Details for the file intersystems_iris-5.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for intersystems_iris-5.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9c9a14c72e72ae69e49c8811ccfb74914c44149c787657f0db31a18d05ef2a6a
MD5 b3a54e6b84e817c0b138f59716500154
BLAKE2b-256 a11986661bb151c813c9eb012d59c22c3a1f4834b036f0c92a6bf14e2ac7d951

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