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.1.2
- Updated rowcount attribute to return -1 if the Cursor object is closed.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-win_amd64.whl
.
File metadata
- Download URL: intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-win_amd64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.10, CPython 3.11, CPython 3.12, CPython 3.13, CPython 3.8, CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1d04be5f2bc9fc458b46aad516c49c8e7999f15036240aaaa4f94965b7f3ce99
|
|
MD5 |
2d4e0a114a2cf87ff1b26453776d6894
|
|
BLAKE2b-256 |
d5a66f615c9af0f7aa85f1791607b077fe28b45455887129cc4c4befe6fac9ed
|
File details
Details for the file intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-win32.whl
.
File metadata
- Download URL: intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-win32.whl
- Upload date:
- Size: 2.8 MB
- Tags: CPython 3.10, CPython 3.11, CPython 3.12, CPython 3.13, CPython 3.8, CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c37e6ce29e6d052b5d0d114291820aaeafceef5472e2d2a33d872f0c6e8089af
|
|
MD5 |
d939f9d7862355b1ca3d82c10b88d347
|
|
BLAKE2b-256 |
d1d0bd3dde51788634f36da75d35529955d67e7ba06fd992e5f4b7a34a1824f0
|
File details
Details for the file intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 13.9 MB
- Tags: CPython 3.10, CPython 3.11, CPython 3.12, CPython 3.13, CPython 3.8, CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
87a947c9e36c1d8fb8e0eadf52123af53de14e1acc2c4c656a7a419921dab43b
|
|
MD5 |
cabedf82e989f643e5f07aef9f9a1774
|
|
BLAKE2b-256 |
737446d3933690b2889c00934d41562f37a03485cea24b36a135f25814ae6710
|
File details
Details for the file intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 14.3 MB
- Tags: CPython 3.10, CPython 3.11, CPython 3.12, CPython 3.13, CPython 3.8, CPython 3.9, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
120cfef761d1a6ecc163245499c648516b61d92c10b4e755ce75212535f2effc
|
|
MD5 |
22d47a3c553b8c8b4774e8f17caceea8
|
|
BLAKE2b-256 |
5b96e3a27a70577029c4e7d37c0123624bc54410485f606120c2f85cd12d89b7
|
File details
Details for the file intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-macosx_10_9_universal2.whl
.
File metadata
- Download URL: intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-macosx_10_9_universal2.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.10, CPython 3.11, CPython 3.12, CPython 3.13, CPython 3.8, CPython 3.9, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3496b66d70f2c088244185ba5e87abcc8ba7842d096ee9573f9efcec30ca77a7
|
|
MD5 |
c25000b0a224dfe9510f897624290d05
|
|
BLAKE2b-256 |
2e833f034e03f3c71db368ab1d100db8732a86a3ce770482db336b3ebc259695
|