Skip to main content

InterSystems IRIS Python SDK Kit

Project description

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("myGlobal", "hello world!") 

# 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

# >>> On a native connection object "conn" <<<

# 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.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.10CPython 3.11CPython 3.12CPython 3.13CPython 3.14CPython 3.8CPython 3.9Windows x86-64

intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-win32.whl (2.9 MB view details)

Uploaded CPython 3.10CPython 3.11CPython 3.12CPython 3.13CPython 3.14CPython 3.8CPython 3.9Windows x86

intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.6 MB view details)

Uploaded CPython 3.10CPython 3.11CPython 3.12CPython 3.13CPython 3.14CPython 3.8CPython 3.9manylinux: glibc 2.17+ x86-64

intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.0 MB view details)

Uploaded CPython 3.10CPython 3.11CPython 3.12CPython 3.13CPython 3.14CPython 3.8CPython 3.9manylinux: glibc 2.17+ ARM64

intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-macosx_10_9_universal2.whl (6.7 MB view details)

Uploaded CPython 3.10CPython 3.11CPython 3.12CPython 3.13CPython 3.14CPython 3.8CPython 3.9macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-win_amd64.whl.

File metadata

File hashes

Hashes for intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-win_amd64.whl
Algorithm Hash digest
SHA256 1d5d40450a0cdeec2a1f48d12d946a8a8ffc7c128576fcae7d58e66e3a127eae
MD5 1630b8f03c8e2e8ffd0bc570a595391b
BLAKE2b-256 689519cc13d09f1b4120bd41b1434509052e1d02afd27f2679266d7ad9cc1750

See more details on using hashes here.

File details

Details for the file intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-win32.whl.

File metadata

File hashes

Hashes for intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-win32.whl
Algorithm Hash digest
SHA256 583e4f17088c1e0530f32efda1c0ccb02993cbc22035bc8b4c71d8693b04ee7e
MD5 c7314542880c1489f5f62a4d45b6c235
BLAKE2b-256 cf47654ccf9c5cca4f5491f070888544165c9e2a6a485e320ea703e4e38d2358

See more details on using hashes here.

File details

Details for the file intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 be5659a6bb57593910f2a2417eddb9f5dc2f93a337ead6ddca778f557b8a359a
MD5 b5ea6464811a870bba8888c2037d0448
BLAKE2b-256 39599bb79d9e32e3e55fc9aed8071a797b4497924cbc6457cea9255bb09320b7

See more details on using hashes here.

File details

Details for the file intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 cf912f30f85e2a42f2c2ea77fbeb98a24154d5ea7428a50382786a684ec4f583
MD5 f25ed240ca70c70e1c777d455ab66878
BLAKE2b-256 ba17bab3e525ffb6711355f7feea18c1b7dced9c2484cecbcdd83f74550398c0

See more details on using hashes here.

File details

Details for the file intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 634c9b4ec620837d830ff49543aeb2797a1ce8d8570a0e868398b85330dfcc4d
MD5 7102cc98b73c1d8d5836b521b604635c
BLAKE2b-256 335b8eac672a6ef26bef6ef79a7c9557096167b50c4d3577d558ae6999c195fe

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