Skip to main content

intersystems-irispython PyPI version

Installation

Use the package manager pip to install intersystems-irispython.

pip install intersystems-irispython

Usage

Native Connections

import iris

# Open a connection to the server
args = {
	'hostname':'127.0.0.1', 
	'port': 1972,
	'namespace':'USER', 
	'username':'username', 
	'password':'password'
}
conn = iris.connect(**args)

# Create an iris object
irispy = iris.createIRIS(conn)

# Create a global array in the USER namespace on the server
irispy.set("hello world!", "myGlobal") 

# Read the value from the database and print it
print(irispy.get("myGlobal"))

# Delete the global array and terminate
irispy.kill("myGlobal") 
conn.close()

Using DB-API

# Create a DB-API connection using the 'dbapi' module
import iris.dbapi
args = {
	'hostname':'127.0.0.1', 
	'port': 1972,
	'namespace':'USER', 
	'username':'username', 
	'password':'password'
}
conn = iris.dbapi.connect(**args)

# Create a cursor object
cursor = conn.cursor()

# Prepare and execute a SQL
cursor.execute("SELECT * FROM Sample.Person WHERE ID = 1")

# Fetch next row of a query result set
row = cursor.fetchone()

# Retrieve all column values of a row
values = row[:]
print(values)

# Close the cursor object
cursor.close()

More details on how to use DB-API can be found at Using the Python DB-API

Documentation

Full documentation is available at InterSystems Native SDK for Python

Help

For any issues you can contact InterSystems Worldwide Response Center (WRC)

License

This project is licensed under the terms detailed at https://www.intersystems.com/IERTU/.

Release Notes

Version 5.4.2

  • Fixed an encoding issue when fetching data from an 8-bit InterSystems IRIS instance using DB-API.
  • Fixed an issue for some 8-bit locales where ? is mapped to an undefined/unused code.
  • Fixed an issue where the ClientNodeName property of %SYSTEM.Process class contained a trailing null character.

Version 5.4.1

  • Fixed an issue that prevented connections to 8-bit InterSystems IRIS instances.
  • Fixed an issue with importing iris package members when built with cx_Freeze.
  • Fixed an issue where the return type of a value fetched from a CHAR/VARCHAR column would not be a str.

Version 5.4.0

  • Dropped Python 3.8 support.
  • Fixed some memory safety issues and memory leaks.
  • DB-API enhancements and bug fixes:
    • Added support for SQL keywords FETCH, LIMIT, OFFSET, TO_VECTOR to the parser.
    • Added support for the Python uuid.UUID type.
    • Added support for large streams.
    • Added two new methods getQueryTimeout() and setQueryTimeout() to get and set the query timeout, respectively.
    • Added IDE autocomplete/suggestions for DB-API attributes and methods.
    • Added support for ODBC date/time/datetime formatted strings and Python date/time objects as user parameters in queries.
    • Improved performance when fetching data via fetch*() methods.
    • Fixed an issue where float/double values would be returned as strings with SELECT...ORDER BY syntax.
    • Fixed a <READ> error in the xDBC Error Log when a Connection object goes out of scope without being explicitly closed.
    • Fixed an issue where an iris.dbapi.DataRow object is unusable after the associated Cursor object is garbage-collected without being closed explicitly.

Version 5.3.2

  • Fixed an issue where the DB-API parser would raise an exception when executing SQL statements on tables that contain a column named null_value and the statement itself references that column.

Version 5.3.1

  • Fixed an issue where fetching a lot of data would cause DB-API to hang.
  • Fixed an issue where DB-API would return an int instead of a bool for a %Boolean type value.
  • Fixed an issue where an exception would be raised if a stored procedure's OUT parameter had the value 0.
  • Stream references that were opened with DB-API are now automatically closed when the Cursor object is closed.
  • Attempting an operation on a closed connection now raises an exception.
  • Added support for Python 3.14.

Version 5.3.0

  • Improved performance for fetching data with DB-API through the "read ahead" and "fast select" features. "Read ahead" is enabled by default and "fast select" can be enabled by setting the featureOptions connection parameter to +1.
  • Fixed an issue with string to integer conversions that resulted in a Data Error instead of returning 0 for values like +inf, -inf or NaN.
  • Fixed an issue with the precision of doubles/decimals while rounding.
  • Fixed a typo in the error message for invalid port number.

Version 5.2.1

  • Fixed an issue where using the default value for the sharedmemory parameter would prevent connections to remote hosts with SSL/TLS.
  • Fixed an issue that caused a crash with a PEX shared connection.
  • Improved error messages for issues with SSL/TLS connections.

Version 5.2.0

  • Added support for the following to conform with the DB-API specification in PEP 249:
    • Exceptions
    • Type Objects and Constructors
  • Added support for Common Table Expression (CTE) parsing.
  • executemany(): Fixed an error that did not allow the field value to be in a list or a tuple for an INSERT/UPDATE of multiple rows in a single column.
  • Fixed an issue where executing a SQL statement to insert default values in a table would raise an exception.
  • Fixed an issue where output redirection incorrectly displayed the value None for an empty string.

Version 5.1.2

  • Updated the rowcount attribute to return -1 if the Cursor object is closed.

Metadata

Release files for intersystems-irispython 5.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for intersystems-irispython 5.4.2
File Actions
intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-win_amd64.whl CPython 3.12, CPython 3.9, CPython 3.13, CPython 3.14, CPython 3.10, CPython 3.11 CPython 3.14, CPython 3.13, CPython 3.10, CPython 3.12, CPython 3.9, CPython 3.11 Windows x86-64 Details for intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-win_amd64.whl
intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-win32.whl CPython 3.9, CPython 3.11, CPython 3.10, CPython 3.13, CPython 3.14, CPython 3.12 CPython 3.10, CPython 3.12, CPython 3.14, CPython 3.11, CPython 3.13, CPython 3.9 Windows x86-32 Details for intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-win32.whl
intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14, CPython 3.12, CPython 3.9, CPython 3.10, CPython 3.13, CPython 3.11 CPython 3.14, CPython 3.10, CPython 3.9, CPython 3.13, CPython 3.12, CPython 3.11 Linux glibc 2.17+ x86-64 Details for intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11, CPython 3.12, CPython 3.9, CPython 3.13, CPython 3.14, CPython 3.10 CPython 3.14, CPython 3.11, CPython 3.9, CPython 3.10, CPython 3.13, CPython 3.12 Linux glibc 2.17+ ARM64 Details for intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-macosx_10_9_universal2.whl CPython 3.13, CPython 3.9, CPython 3.14, CPython 3.11, CPython 3.12, CPython 3.10 CPython 3.11, CPython 3.14, CPython 3.9, CPython 3.10, CPython 3.13, CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64) Details for intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-macosx_10_9_universal2.whl

Total release size: 44.4 MB

Release files / intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-win_amd64.whl

Download URL intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-win_amd64.whl
Size 3.6 MB
Tags CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13 CPython 3.14 CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
68e6f543eabb8a2b3098191ef664ad6a3bc6e5874de8317f6561a10582402605
BLAKE2b-256 checksum
How to use checksums
e0f526e7751d9cfe22102ea609755665349c6b942a6766c7624edfd89b0bdc4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-win32.whl

Download URL intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-win32.whl
Size 3.0 MB
Tags CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13 CPython 3.14 CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
490abd77b5c12a742e0705dbebfd5494307172f29e62a99c19cb2d895f99c36f
BLAKE2b-256 checksum
How to use checksums
0c71f07b46d6d012526bff6c4a4b4679e1a913ee941d05c9b932fead8794a678
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 15.1 MB
Tags CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13 CPython 3.14 CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ac2b2fdb14cdaf5daa0742e52e1c1e356ee5a19385fd45b4c244f56eb346a0e8
BLAKE2b-256 checksum
How to use checksums
cc00617c400132daca7a9afb5ba32ae50de5c27fc19ef415122e9d4d8629d0e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 15.5 MB
Tags CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13 CPython 3.14 CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
a169ea8eb552af31366de2515871e0d740998fe15db87489a6447864366bba91
BLAKE2b-256 checksum
How to use checksums
1422cf071fa4895621d7c0a24100e4396b32f414aa91cd68c7c8a9fbff7d45fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-macosx_10_9_universal2.whl

Download URL intersystems_irispython-5.4.2-cp39.cp310.cp311.cp312.cp313.cp314-cp39.cp310.cp311.cp312.cp313.cp314-macosx_10_9_universal2.whl
Size 7.1 MB
Tags CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13 CPython 3.14 CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
0d5cb7c6fb809820d232ce7adf21fbb8021d3878bb0ee9ca9f9bd87a42919be6
BLAKE2b-256 checksum
How to use checksums
40832c0b60d44a2e1477a2ce616c706688479add24a7f978476b921bdd9a622f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for intersystems-irispython 5.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page