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

  1. Updated 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

intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-win_amd64.whl (3.4 MB view details)

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

intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-win32.whl (2.8 MB view details)

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

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 (13.9 MB view details)

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

intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.3 MB view details)

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

intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-macosx_10_9_universal2.whl (6.6 MB view details)

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

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

File hashes

Hashes for intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1d04be5f2bc9fc458b46aad516c49c8e7999f15036240aaaa4f94965b7f3ce99
MD5 2d4e0a114a2cf87ff1b26453776d6894
BLAKE2b-256 d5a66f615c9af0f7aa85f1791607b077fe28b45455887129cc4c4befe6fac9ed

See more details on using hashes here.

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

File hashes

Hashes for intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-win32.whl
Algorithm Hash digest
SHA256 c37e6ce29e6d052b5d0d114291820aaeafceef5472e2d2a33d872f0c6e8089af
MD5 d939f9d7862355b1ca3d82c10b88d347
BLAKE2b-256 d1d0bd3dde51788634f36da75d35529955d67e7ba06fd992e5f4b7a34a1824f0

See more details on using hashes here.

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

File hashes

Hashes for 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
Algorithm Hash digest
SHA256 87a947c9e36c1d8fb8e0eadf52123af53de14e1acc2c4c656a7a419921dab43b
MD5 cabedf82e989f643e5f07aef9f9a1774
BLAKE2b-256 737446d3933690b2889c00934d41562f37a03485cea24b36a135f25814ae6710

See more details on using hashes here.

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

File hashes

Hashes for intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 120cfef761d1a6ecc163245499c648516b61d92c10b4e755ce75212535f2effc
MD5 22d47a3c553b8c8b4774e8f17caceea8
BLAKE2b-256 5b96e3a27a70577029c4e7d37c0123624bc54410485f606120c2f85cd12d89b7

See more details on using hashes here.

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

File hashes

Hashes for intersystems_irispython-5.1.2-cp38.cp39.cp310.cp311.cp312.cp313-cp38.cp39.cp310.cp311.cp312.cp313-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3496b66d70f2c088244185ba5e87abcc8ba7842d096ee9573f9efcec30ca77a7
MD5 c25000b0a224dfe9510f897624290d05
BLAKE2b-256 2e833f034e03f3c71db368ab1d100db8732a86a3ce770482db336b3ebc259695

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page