InterSystems IRIS Python SDK Kit
Project description
intersystems-irispython 
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
intinstead of aboolfor a%Booleantype value. - Fixed an issue where an exception would be raised if a stored procedure's
OUTparameter had the value0. - Stream references that were opened with DB-API are now automatically closed when the
Cursorobject 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
featureOptionsconnection parameter to+1. - Fixed an issue with string to integer conversions that resulted in a
Data Errorinstead of returning0for values like+inf,-inforNaN. - 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
sharedmemoryparameter 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
Nonefor an empty string.
Version 5.1.2
- Updated the
rowcountattribute to return-1if theCursorobject 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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
- Download URL: intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-win_amd64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.10, CPython 3.11, CPython 3.12, CPython 3.13, CPython 3.14, CPython 3.8, CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d5d40450a0cdeec2a1f48d12d946a8a8ffc7c128576fcae7d58e66e3a127eae
|
|
| MD5 |
1630b8f03c8e2e8ffd0bc570a595391b
|
|
| BLAKE2b-256 |
689519cc13d09f1b4120bd41b1434509052e1d02afd27f2679266d7ad9cc1750
|
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
- Download URL: intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-win32.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.10, CPython 3.11, CPython 3.12, CPython 3.13, CPython 3.14, CPython 3.8, CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
583e4f17088c1e0530f32efda1c0ccb02993cbc22035bc8b4c71d8693b04ee7e
|
|
| MD5 |
c7314542880c1489f5f62a4d45b6c235
|
|
| BLAKE2b-256 |
cf47654ccf9c5cca4f5491f070888544165c9e2a6a485e320ea703e4e38d2358
|
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
- Download URL: 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
- Upload date:
- Size: 15.6 MB
- Tags: CPython 3.10, CPython 3.11, CPython 3.12, CPython 3.13, CPython 3.14, CPython 3.8, CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be5659a6bb57593910f2a2417eddb9f5dc2f93a337ead6ddca778f557b8a359a
|
|
| MD5 |
b5ea6464811a870bba8888c2037d0448
|
|
| BLAKE2b-256 |
39599bb79d9e32e3e55fc9aed8071a797b4497924cbc6457cea9255bb09320b7
|
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
- Download URL: 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
- Upload date:
- Size: 16.0 MB
- Tags: CPython 3.10, CPython 3.11, CPython 3.12, CPython 3.13, CPython 3.14, CPython 3.8, CPython 3.9, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf912f30f85e2a42f2c2ea77fbeb98a24154d5ea7428a50382786a684ec4f583
|
|
| MD5 |
f25ed240ca70c70e1c777d455ab66878
|
|
| BLAKE2b-256 |
ba17bab3e525ffb6711355f7feea18c1b7dced9c2484cecbcdd83f74550398c0
|
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
- Download URL: intersystems_irispython-5.3.1-cp38.cp39.cp310.cp311.cp312.cp313.cp314-cp38.cp39.cp310.cp311.cp312.cp313.cp314-macosx_10_9_universal2.whl
- Upload date:
- Size: 6.7 MB
- Tags: CPython 3.10, CPython 3.11, CPython 3.12, CPython 3.13, CPython 3.14, CPython 3.8, CPython 3.9, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
634c9b4ec620837d830ff49543aeb2797a1ce8d8570a0e868398b85330dfcc4d
|
|
| MD5 |
7102cc98b73c1d8d5836b521b604635c
|
|
| BLAKE2b-256 |
335b8eac672a6ef26bef6ef79a7c9557096167b50c4d3577d558ae6999c195fe
|